On 28/03/13 18:10, Alexander Hansen wrote:
[]
> 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.

Here is another data point:

I looked where tar is hanging, and it is in the function 
_nl_locale_name_default() from libintl.8.dylib. That function, defined 
in gettext-0.18.1.1/gettext-runtime/intl/localename.c, calls 
CFLocaleCopyCurrent from CoreFoundation and that one goes on and tries 
to read system preferences. I would guess that there is a problem 
reading the system preferences for the root user.

Anyway, when I tried and recompiled libintl.8.dylib with a modified 
_nl_locale_name_default() which simply returns "C" instead of calling 
CoreFoundation, tar did not hang any more.

I am not proposing modifying libintl.8.dylib as a fix for this problem, 
because I have no idea what would be the repercussions, but maybe 
someone else with more insight can propose a real fix.

-- 
Martin



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