[MacPorts] #51812: nawk @20121220_0: parallel build can produce broken program

MacPorts noreply at macports.org
Fri Jul 8 23:50:11 PDT 2016


#51812: nawk @20121220_0: parallel build can produce broken program
----------------------+--------------------
 Reporter:  larryv@…  |      Owner:  toby@…
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.3.99
 Keywords:  haspatch  |       Port:  nawk
----------------------+--------------------
 I installed `nawk` a few hours ago to test an AWK script I’ve been
 writing, but it was completely nonfunctional.
 {{{
 % cat >/tmp/foo.txt <<EOF
 heredoc> a
 heredoc> b
 heredoc> c
 heredoc> EOF
 % /opt/local/bin/nawk '{ print $0 }' </tmp/foo.txt
 /opt/local/bin/nawk: syntax error at source line 1
  context is
         { >>>  print <<<  $0 }
 /opt/local/bin/nawk: illegal statement at source line 1
 %
 }}}
 I rebuilt `nawk` a few times; several but not all of the builds actually
 did produce a working program.
 {{{
 % /opt/local/bin/nawk '{ print $0 }' </tmp/foo.txt
 a
 b
 c
 %
 }}}
 The [[attachment:Portfile-nawk.diff|attached patch]] disables parallel
 builds and seems to circumvent the issue entirely. (It’d be nice to fix
 the makefile, but the build is so quick that it doesn’t seem worth the
 effort.) It also revbumps to make sure broken installations are replaced.

-- 
Ticket URL: <https://trac.macports.org/ticket/51812>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list