On 9/14/13 7:36 PM, Nelson Araujo wrote:
> It seems there is something wrong with finding the Fink modules
> (especially the Fink/Services.pm) inside the wrappers on 0.35.1 (I had
> an older fink in the same machine working fine). Here is what I found:
>
> 1) If you bootstrap with sudo, during the initial setup it immediately
> fails (with error similar to the one below). Setting env variables does
> not help
> 2) If you bootstrap with su, it also fails. If you set the PERLLIB to
> add the Fink lib/perl5 folder, it completes the install. But a
> subsequent "fink install" fails with the error below. If you run the
> failing command (in bold below) from the command line, it works.
>
> What can one do to mitigate this problem?
>
> Thanks in advance for your help!,
> -- Nelson
>
> =============================
>
> Setting runtime build-lock...
> dpkg-deb -b
> /opt/fink/src/fink.build/root-fink-buildlock-db53-aes-5.3.21-2
> /opt/fink/src/fink.build
> dpkg-deb: building package `fink-buildlock-db53-aes-5.3.21-2' in
> `/opt/fink/src/fink.build/fink-buildlock-db53-aes-5.3.21-2_2013.09.14-19.31.03_darwin-x86_64.deb'.
> Installing build-lock package...
> /opt/fink/bin/dpkg-lockwait -i
> /opt/fink/src/fink.build/fink-buildlock-db53-aes-5.3.21-2_2013.09.14-19.31.03_darwin-x86_64.deb
> Selecting previously deselected package fink-buildlock-db53-aes-5.3.21-2.
> (Reading database ... 4565 files and directories currently installed.)
> Unpacking fink-buildlock-db53-aes-5.3.21-2 (from
> .../fink-buildlock-db53-aes-5.3.21-2_2013.09.14-19.31.03_darwin-x86_64.deb)
> ...
> Setting up fink-buildlock-db53-aes-5.3.21-2 (2013.09.14-19.31.03) ...
>
> sudo -u fink-bld [ENV] *sh -c /tmp/fink.NepUQ*
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
> Can't locate Fink/Services.pm in @INC (@INC contains:
> /opt/fink/lib/perl5 /opt/fink/lib/perl5/darwin
> /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12
> /Network/Library/Perl/5.12/darwin-thread-multi-2level
> /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3
> /System/Library/Perl/5.12/darwin-thread-multi-2level
> /System/Library/Perl/5.12
> /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level
> /System/Library/Perl/Extras/5.12 .) at /tmp/fink.NepUQ line 2.
> BEGIN failed--compilation aborted at /tmp/fink.NepUQ line 2.
> ### execution of /tmp/fink.NepUQ failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /opt/fink/bin/dpkg-lockwait -r fink-buildlock-db53-aes-5.3.21-2
> (Reading database ... 4566 files and directories currently installed.)
> Removing fink-buildlock-db53-aes-5.3.21-2 ...
> Failed: phase unpacking 'db-5.3.21.tar.gz': db53-aes-5.3.21-2 failed
>
> Package manager version: 0.35.1
> Distribution version: selfupdate-rsync Sat Sep 14 19:26:44 2013, 10.7,
> x86_64
> Trees: local/main stable/main
> Xcode.app: 4.6.3
> Xcode command-line tools: 4.6.0.0.1.1365549073
> Max. Fink build jobs:  8
>
>

0.35.1 works here.

I'm not sure why you bootstrapped a new fink rather than just using 
"fink selfupdate", if that's what you did.  A new bootstrap should only 
be required when changing OS versions if there isn't an upgrade path.

Fink, by design, is supposed to _ignore_ user environment settings so 
that it builds packages the same way for everybody, though some su and 
sudo flag settings can override this.

The above indicates that your PERL5LIB is set properly, but it appears 
that the working directory in your shell session isn't present.  First 
try changing that.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
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