On 3/28/13 10:10 AM, Alexander Hansen wrote:
> On 3/28/13 9:27 AM, Alexander Hansen wrote:
>> On 3/28/13 9:16 AM, Martin Costabel wrote:
>>> On 28/03/13 17:01, Alexander Hansen wrote:
>>>> 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 -)
>>> []
>>>> SHELL=/bin/sh
>>>> USER=root
>>>> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
>>>
>>>> (su)
>>> []
>>>> SHELL=/bin/sh
>>>  > USER=hansen
>>>> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/hansen/bin
>>>>
>>>>
>>>>
>>>> _=/usr/bin/printenv
>>>
>>> How did you set up your Fink environment for the root user? Manually? Or
>>> not at all? With pathsetup.sh it won't work, because it doesn't support
>>> sh as shell.
>>>
>>
>> That would be "not at all" for me.
>>
>> My test case is just to run
>>
>> # /tmp/sw/bin/fink rebuild base-files
>>
>
> One more piece of information to work with here is that if I change my
> /tmp/sw/lib/perl5/Fink/PkgVersion.pm such that Apple's gnutar is used
> instead of Fink's then unpacking works under "su -".
>
> I wouldn't recommend that folks do this as a workaround just yet,
> though, since we've been relying on the fact that our tar can
> automatically unpack tar.xz archives without fink explicitly running xz,
> i.e. just "tar -xf package.tar.xz".  Apple's gnutar doesn't know how to
> do this, even for 10.8.

Following up:

I'll admit to ignorance about what all is different between "su" and "su 
-s" other than the environment, but I wasn't able to get the unpack 
operation using fink's tar to work by setting any of the listed 
environment variables above.

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]

I guess for now we can recommend that people not use "su -" as a root 
access method.
-- 
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-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

Reply via email to