On 3/30/13 3:07 AM, Martin Costabel wrote: > On 29/03/13 03:47, Alexander Hansen wrote: > [] >> I'm not sure if it's related, but I got a stall on gettext-tools (using >> Apple's gnutar to unpack it) on a configure test for Java (in spite of >> our disabling it via a flag): >> >> checking whether to use Java... no >> checking for Java to native code compiler... none >> checking how to run the C preprocessor... gcc -E >> checking for grep that handles long lines and -e... (cached) >> /usr/bin/grep >> checking for egrep... /usr/bin/grep -E >> checking for Java virtual machine... >> [and it sits] > > While I don't see this one, for me gettext-tools stalls at the end in > the install phase in the line > > /sw/bin/ginstall -c -m 644 ./gettext.info > '/sw/src/fink.build/root-gettext-tools-0.18.1.1-2/sw/share/info' > > Activity Monitor shows that it is /sw/bin/grep that hangs, and it hangs > in the same function of libintl.8.dylib as /sw/bin/gtar did. In fact > (always running as root under "su -"), the following command hangs, too > > sudo -u fink-bld /sw/bin/grep fink /sw/bin/fink > > One can make it work by inserting "env LANG=C". > > If Fink's grep is not installed, then building gettext-tools succeeds. > > The conclusion is that anything that links to libintl.8.dylib will hang > during fink package building if fink is run from root started by "su -". > Inserting "env LANG=C" preventively into all these commands won't be easy. >
After some internal discussion, we've got another option for folks to look at: https://github.com/fink/fink/tree/branch__CFPREFERENCES_AVOID_DAEMON cf. https://trac.macports.org/ticket/34221 This sets __CFPREFERENCES_AVOID_DAEMON=1 when fink drops to a non-root user during builds, and that seems to get rid of any stalls from Fink-built stuff including that from tar (this branch reverts the prior change), the one I saw from Java detection, and the one you saw from grep. Since this does more than just set a couple of environment variables only during unpacking of a source tarball, I won't be proactive and release this change based only on testing by me. :-) -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 _______________________________________________ fink-core mailing list fink-core@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.core Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-core