I was finally able to reproduce this--I hadn't tried using 10.8 before now. I had thought that people were also able to trigger this issue on other OS X versions, but I might have remembered incorrectly.
I set up a Fink tree with RootMethod: none. If I use "sudo -s" or just "su" to switch to root then tar works. If I use "su -", then tar hangs. There are some significant environment differences, and perhaps one of these accounts for the issue (since this is a test Fink environment the Fink tree isn't being loaded automatically): (su -) # printenv TERM=xterm-256color SHELL=/bin/sh USER=root PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin PWD=/var/root SHLVL=1 HOME=/var/root _=/usr/bin/printenv (su) # printenv TERM_PROGRAM=Apple_Terminal SHELL=/bin/sh TERM=xterm-256color Apple_PubSub_Socket_Render=/tmp/launch-dJX2WZ/Render TERM_PROGRAM_VERSION=309 CVSROOT=:ext:[email protected]/cvsroot/fink TERM_SESSION_ID=3844B088-714E-4F2B-91E1-2B7F0BB970C7 USER=hansen COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-xe0DlR/Listeners Apple_Ubiquity_Message=/tmp/launch-aUhy6G/Apple_Ubiquity_Message __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/hansen/bin _=/usr/bin/printenv PWD=/Users/hansen EDITOR=/usr/local/bin/edit -w LANG=en_US.UTF-8 HOME=/var/root SHLVL=2 LOGNAME=hansen DISPLAY=/tmp/launch-ouKCdA/org.macosforge.xquartz:0 SECURITYSESSIONID=186a4 On 3/28/13 8:09 AM, Alessio Sarti wrote: > you are right, calling fink from my user prompt works... > So I'll do that... > The only thing that does not work is becoming root (su -) and then calling > fink directly... > thanks again for looking into this. > alessio > On 28/mar/2013, at 15:52, Alexander Hansen <[email protected]> > wrote: > >> Thanks again. I'll see what I get out of my own 10.8 system. >> >> Since you have RootMethod set, you might check what happens if you just use >> "fink install " without using su or sudo first so that fink runs su itself. >> >> On 3/28/13 7:42 AM, Alessio Sarti wrote: >>> RootMethod: su >>> Alessio >>> On 28/mar/2013, at 15:33, Alexander Hansen <[email protected]> >>> wrote: >>> >>>> Thanks. What is the value of the RootMethod field in /sw/etc/fink.conf ? >>>> >>>> On 3/28/13 7:27 AM, Alessio Sarti wrote: >>>>> Dear all. >>>>> It seems that I can overcome this problem if instead of loggin as root >>>>> and then running the fink commands, I execute fink trough sudo.... >>>>> So: >>>>> sudo fink install perl5123-core >>>>> do the job >>>>> while >>>>> su - >>>>> followed by >>>>> fink install perl5123-core >>>>> is stuck.... >>>>> alessio >>>>> >>>>> On 28/mar/2013, at 15:11, Alexander Hansen <[email protected]> >>>>> wrote: >>>>> >>>>>> On 3/27/13 11:58 PM, Alessio Sarti wrote: >>>>>>> Dear all. >>>>>>> Yesterday I upgraded my OS to Mountain Lion. >>>>>>> Then I followed the instruction from the fink webpage: >>>>>>> -> fink reinstall fink >>>>>>> -> fink configure >>>>>>> (to check that the build's user was setup properly) >>>>>>> >>>>>>> then i tried a >>>>>>> fink selfupdate >>>>>>> and everything warked without errors. >>>>>>> >>>>>>> Then I tried a >>>>>>> fink install perl5123-core >>>>>>> >>>>>>> The package is downloaded but the tar process goes on forever... >>>>>>> >>>>>>> [output] >>>>>>> canning package description files.......... >>>>>>> Information about 7111 packages read in 2 seconds. >>>>>>> The package 'perl5123-core' will be built and installed. >>>>>>> Reading build dependency for perl5123-5.12.3-2... >>>>>>> Reading dependency for perl5123-5.12.3-2... >>>>>>> Reading dependency for perl5123-core-5.12.3-2... >>>>>>> Reading build dependency for perl5123-core-5.12.3-2... >>>>>>> Reading dependency for perl5123-core-5.12.3-2... >>>>>>> Reading runtime dependency for perl5123-core-5.12.3-2... >>>>>>> Reading build conflict for perl5123-5.12.3-2... >>>>>>> Reading build conflict for perl5123-core-5.12.3-2... >>>>>>> The following package will be installed or updated: >>>>>>> perl5123-core >>>>>>> Setting runtime build-lock... >>>>>>> dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-perl5123-5.12.3-2 >>>>>>> /sw/src/fink.build >>>>>>> dpkg-deb: building package `fink-buildlock-perl5123-5.12.3-2' in >>>>>>> `/sw/src/fink.build/fink-buildlock-perl5123-5.12.3-2_2013.03.28-07.56.01_darwin-x86_64.deb'. >>>>>>> Installing build-lock package... >>>>>>> /sw/bin/dpkg-lockwait -i >>>>>>> /sw/src/fink.build/fink-buildlock-perl5123-5.12.3-2_2013.03.28-07.56.01_darwin-x86_64.deb >>>>>>> Selecting previously deselected package >>>>>>> fink-buildlock-perl5123-5.12.3-2. >>>>>>> (Reading database ... 178586 files and directories currently installed.) >>>>>>> Unpacking fink-buildlock-perl5123-5.12.3-2 (from >>>>>>> .../fink-buildlock-perl5123-5.12.3-2_2013.03.28-07.56.01_darwin-x86_64.deb) >>>>>>> ... >>>>>>> Setting up fink-buildlock-perl5123-5.12.3-2 (2013.03.28-07.56.01) ... >>>>>>> >>>>>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.Op3Bh >>>>>>> /sw/bin/tar --no-same-owner --no-same-permissions -xvf >>>>>>> /sw/src/perl-5.12.3.tar.gz >>>>>>> [output end] >>>>>>> >>>>>>> I have tried to execute the command >>>>>>> /sw/bin/tar --no-same-owner --no-same-permissions -xvf >>>>>>> /sw/src/perl-5.12.3.tar.gz >>>>>>> from command line and it works without problems (as root).... >>>>>>> >>>>>>> If I kill the process by ^C I see: >>>>>>> ^C >>>>>>> ### execution of /sw/bin/tar failed, exit code 2 >>>>>>> >>>>>>> So it really seems that fink is unable to use tar.... >>>>>>> How can i fix this? >>>>>>> >>>>>>> Alessio Sarti >>>>>>> >>>>>>> "Rispondi... livato" (Da "L'uomo che non capiva troppo", 610, Lillo e >>>>>>> Greg) >>>>>>> >>>>>>> >>>>>> >>>>>> This issue has been reported before, but I haven't been able to trigger >>>>>> it on my own machines yet. >>>>>> >>>>>> What method are you using to give fink root access? su? 'su -'? sudo >>>>>> with extra flags? If you can let us know if you did anything special >>>>>> before the "fink install" command that might help us isolate the problem >>>>>> more easily. >>>>>> >>>>>> As a workaround, you can use "fink --no-build-as-nobody " >>>>>> -- >>>>>> Alexander Hansen, Ph.D. >>>>>> Fink User Liaison >>>>>> My package updates: http://finkakh.wordpress.com/ >>>>> >>>>> Alessio Sarti >>>>> >>>>> "Rispondi... livato" (Da "L'uomo che non capiva troppo", 610, Lillo e >>>>> Greg) >>>>> >>>>> >>>>> >>>> >>>> >>> >>> Alessio Sarti >>> >>> "Rispondi... livato" (Da "L'uomo che non capiva troppo", 610, Lillo e Greg) >>> >>> >>> >> >> > > Alessio Sarti > > "Rispondi... livato" (Da "L'uomo che non capiva troppo", 610, Lillo e Greg) > > > ------------------------------------------------------------------------------ Own the Future-Intel® 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://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
