Guillaume Yziquel wrote:
[]
> 
> So, I've tried to make a package of usbutils. Can't claim to have met
> big success. I got the following message:
[]
>> Param'etrage de fink-buildlock-usbutils-0.72-1 (2007.04.01-10.36.16) ...
>> Use of uninitialized value in concatenation (.) or string at 
>> /sw/lib/perl5/Fink/Services.pm line 
>> 496.

What version of fink are you running, some 0.24.xx version? In 0.27.1 I 
don't see anything at that line 496 that could give an error message. If 
you try to build packages, you should first update to the latest fink 
version. Unless you are on MacOSX 10.2 or (*gasp*) still using the 
obsolete 10.4-transitional tree, your fink should be at least version 
0.26.4.

>> sudo -u nobody env PERL5LIB= sh -c/var/tmp/tmp.1.3lAn2y
>> Can't locate Fink/Services.pm in @INC 

This might be caused by your too old fink version, too. I don't know 
why, but when your execution hits this line, your PERL5LIB environment 
variable is empty. The code in question reads in the original

sudo -u nobody env PERL5LIB=$PERL5LIB sh -c <name of the temp script>

This "env PERL5LIB=$PERL5LIB" is a trick to work around a new feature of 
recent versions of the sudo command. It doesn't work in your case, and I 
suspect it never worked at that point, which is the reason why it was 
replaced by some other variant in more recent versions of fink.

[]
[]
> I therefore have a few questions:
> 
> 1- How come fink is unable to see the perl distribution it installed?

Combination of old fink and new sudo, as explained above.

> 2- Could someone explain, or point to relevant links, on what this piece
> of code is effectively doing? I would not want to fix this situation too
> brutally.

Just run "fink selfupdate". If you are in fact still using 
10.4-transitional, then something more brutal is indeed on the menu.

> By the way, on
> 
> http://www.finkproject.org/doc/quick-start-pkg/example.php?phpLang=en#build
> 
> it is mentionned that I should execute fink -m --build-as-nobody
> rebuild. But the -m switch does not seem to be a valid argument. Have I
> missed something?

This is another hint that your fink is too old. As it says in 
<http://www.finkproject.org/doc/users-guide/usage.php?phpLang=en#options>, 
the -m or --maintainer flag was introduced in fink-0.25.

-- 
Martin



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to