Alexander Hansen a écrit :

> On 3/26/07, Yziquel Guillaume <[EMAIL PROTECTED]> wrote:
>
>> Alexander Hansen a écrit :
>>
>>> The developers tend to add packages that they use (since they have a
>>> lot to keep up with), and we welcome submissions from our users.  On
>>> the other hand, be warned that some Linux packages don't work at all
>>> on OS X, due to differences in how devices are handled.
>>
>> Well I do not really know that much about how devices are handled in
>> MacOS X, but I'd be glad to create a package if I could. But, does it
>> take a lot of pain to create such a package?
> 
> It depends on the individual package.  Some work automatically, some
> require specific configure flags to work properly, some require
> varying degrees of patching, and some wind up not working at all.
> Usually people just start out by just trying to build the package by
> hand and see if it works.

So, I've tried to make a package of usbutils. Can't claim to have met
big success. I got the following message:

> ibook-g4-de-guillaume:/sw/fink/dists/local/main/finkinfo fsfe-yziquel$ fink 
> --build-as-nobody reb
> uild usbutils
> Password:
> WARNING: --build-as-nobody may produce non-usable binary packages. This 
> safe-mode should only be
> used for package testing and development, not for production builds.
> Information about 5851 packages read in 29 seconds.
> The following package will be rebuilt:
>  usbutils
> dpkg-deb -b /sw/src/fink.build/root-fink-buildlock-usbutils-0.72-1 
> /sw/src/fink.build
> dpkg-deb : construction du paquet << fink-buildlock-usbutils-0.72-1 >> dans 
> << /sw/src/fink.build
> /fink-buildlock-usbutils-0.72-1_2007.04.01-10.36.16_darwin-powerpc.deb >>.
> Setting build lock...
> /sw/bin/dpkg-lockwait -i 
> /sw/src/fink.build/fink-buildlock-usbutils-0.72-1_2007.04.01-10.36.16_da
> rwin-powerpc.deb
> S'election du paquet fink-buildlock-usbutils-0.72-1 pr'ec'edemment 
> d'es'electionn'e.
> (Lecture de la base de donn'ees... 95062 fichiers et r'epertoires d'ej`a 
> install'es.)
> D'epaquetage de fink-buildlock-usbutils-0.72-1 (`a partir de 
> .../fink-buildlock-usbutils-0.72-1_2
> 007.04.01-10.36.16_darwin-powerpc.deb) ...
> 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.
> sudo -u nobody env PERL5LIB= sh -c/var/tmp/tmp.1.3lAn2y
> Can't locate Fink/Services.pm in @INC (@INC contains: 
> /System/Library/Perl/5.8.6/darwin-thread-mu
> lti-2level /System/Library/Perl/5.8.6 
> /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Per
> l/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level 
> /Network/Library/Per
> l/5.8.6 /Network/Library/Perl 
> /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /Syste
> m/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at /var/tmp/tmp.1.3lAn2y 
> line 2.
> BEGIN failed--compilation aborted at /var/tmp/tmp.1.3lAn2y line 2.
> ### execution of /var/tmp/tmp.1.3lAn2y failed, exit code 2
> Unpacking the file usbutils-0.72.tar.gz of package usbutils-0.72-1 failed. 
> The most likely cause
> for this is a corrupted or incomplete download. Do you want to delete the 
> tarball and download
> it again? [Y/n] n
> Removing build lock...
> /sw/bin/dpkg-lockwait -r fink-buildlock-usbutils-0.72-1
> (Lecture de la base de donn'ees... 95063 fichiers et r'epertoires d'ej`a 
> install'es.)
> Suppression de fink-buildlock-usbutils-0.72-1 ...
> Failed: unpacking file usbutils-0.72.tar.gz of package usbutils-0.72-1 failed

So I've had a look at

> ibook-g4-de-guillaume:/sw/fink/dists/local/main/finkinfo fsfe-yziquel$ cat 
> /var/tmp/tmp.1.3lAn2y 
> #!/usr/bin/perl
>                 use Fink::Services qw(execute);
>                 {
>                         local $/;
>                         $script = <DATA>;
>                 }
> exit &execute($script);
> __DATA__
> gzip -dc /sw/src/usbutils-0.72.tar.gz | /sw/bin/tar -xvf -  --no-same-owner 
> --no-same-permissions 

This was a good opportunity for me to start learning Perl. So it seems
that the @INC variable, which is supposed to contain the path to
relevant core modules misses out my /sw/lib/perl5/Fink/Services.pm.

I therefore have a few questions:

1- How come fink is unable to see the perl distribution it installed?

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.

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?

I Thank you for any help.

Sincerely yours,

Guillaume Yziquel.


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