Ingo Thies wrote:
> On Sun, 5 Apr 2009, Alexander Hansen wrote:
>
>>> Hmm, but how can I force psync to use Fink's Perl instead of Leopard's?
>> We don't have a 5.10.0 version of macosx-file-pm yet; so until that
>> happens (the maintainer is no longer active) you could try the Perl-586
>> version.
>
> It tried it - no difference, same errors :-(
>
> But fortunately, the Carbon Copy Clone.app seems to work well; I tried
> it with dummy images (that I made accept user rights via sudo vsdbutil
> -a <Volumename>), and it conserves the user rights. CCC is also
> described as providing bootable copies. Maybe I should say goodbye to
> psync and use CCC instead.
>
> But still I wonder how to fix this bug.
>
> Best wishes,
>
> Ingo
Having seen the command, I can now reproduce it.

This is now a standard issue with perl scripts run under sudo.   When
one runs just as an ordinary user, Perl will use Fink's additional
library directories:

  @INC:
    /sw/lib/perl5/5.8.8/darwin-thread-multi-2level
    /sw/lib/perl5/5.8.8
    /sw/lib/perl5/darwin-thread-multi-2level
    /sw/lib/perl5
    /sw/lib/perl5/darwin
    /System/Library/Perl/5.8.8/darwin-thread-multi-2level
    /System/Library/Perl/5.8.8
    /Library/Perl/5.8.8/darwin-thread-multi-2level
    /Library/Perl/5.8.8
    /Library/Perl
    /Network/Library/Perl/5.8.8/darwin-thread-multi-2level
    /Network/Library/Perl/5.8.8
    /Network/Library/Perl
    /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.8.8
    /Library/Perl/5.8.6
    /Library/Perl/5.8.1
    .

But when run under sudo, it does not:

  @INC:
    /System/Library/Perl/5.8.8/darwin-thread-multi-2level
    /System/Library/Perl/5.8.8
    /Library/Perl/5.8.8/darwin-thread-multi-2level
    /Library/Perl/5.8.8
    /Library/Perl
    /Network/Library/Perl/5.8.8/darwin-thread-multi-2level
    /Network/Library/Perl/5.8.8
    /Network/Library/Perl
    /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.8.8
    /Library/Perl/5.8.6
    /Library/Perl/5.8.1

The issue isn't directly with fink's perl, or the system's perl, but
with sudo having become less forgiving (as of OS 10.4.10 and later).

Using

sudo env PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin psync

should allow psync to work properly.

-- 
Alexander Hansen
Fink User Liaison


------------------------------------------------------------------------------
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to