[MacPorts] #48276: Gimp2 configuration hangs on grep command

MacPorts noreply at macports.org
Tue Jul 7 09:11:42 PDT 2015


#48276: Gimp2 configuration hangs on grep command
----------------------------+----------------------
  Reporter:  drew.mirage@…  |      Owner:  devans@…
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.3
Resolution:                 |   Keywords:
      Port:  gimp2          |
----------------------------+----------------------

Comment (by devans@…):

 I did a rebuild of gimp2 using your configuration as was unable to
 reproduce your results.  My log file is attached.

 However, it appears that your problem is, as you stated with the command
 from your listing

 {{{
 sh -c /usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null
 }}}

 I'm assuming that grep is sleeping waiting for output from the m4 command
 which isn't forthcoming.

 Try executing this command by hand and see what happens. Note that this
 should be considered to be one command executed by sh so some quoting
 is required.


 {{{
 sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state >/dev/null'
 }}}

 On my machine this just returns immediately.  If it hangs for you then I
 would look at the output from m4 and see what's going on there.

 BTW, if I remove the output redirection to /dev/null at the end, I get the
 following result which shows what this test is all about.

 {{{
 $ sh -c '/usr/bin/m4 --help </dev/null 2>&1 | grep reload-state'
   -R, --reload-state=FILE      reload a frozen state from FILE at start
 }}}

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


More information about the macports-tickets mailing list