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.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
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

Reply via email to