Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9082 - perl 5.6.1-r8 fails to install without perl installed
Summary: perl 5.6.1-r8 fails to install without perl installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Highest blocker (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
: 9092 9099 9105 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-13 14:11 UTC by Bart Lauwers (RETIRED)
Modified: 2002-10-16 23:09 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Lauwers (RETIRED) gentoo-dev 2002-10-13 14:11:11 UTC
The perl 5.6.1-r8 craps out when building a system from scratch with:   
[... rest snipped...]  
  /var/tmp/portage/perl-5.6.1-r8/image//usr/share/man/man1/xsubpp.1   
make[1]: Leaving directory `/var/tmp/portage/perl-5.6.1-r8/work/perl-5.6.1'   
Can't locate lib.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux   
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux   
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at installhtml line   
5.   
BEGIN failed--compilation aborted at installhtml line 5.   
Can't locate lib.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux   
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux   
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at Makefile.PL line   
10.   
BEGIN failed--compilation aborted at Makefile.PL line 10.   
make: *** No rule to make target `install'.  Stop.   
   
!!! ERROR: The ebuild did not complete successfully.   
!!! Function src_install, Line -136, Exitcode 2   
!!! (no error message)   
   
myhost portage #    
   
maybe this could be fixed by adding a "-I${D}/usr/lib/perl5/${PV}" directive 
to ./perl installhtml and the rest but I didn't have time to play around with 
it. A better way IMHO would be to defer these actions to the pkg_postinst
Comment 1 Bart Lauwers (RETIRED) gentoo-dev 2002-10-13 14:52:17 UTC
Actually thinking about it pkg_postinst won't be too easy to pull off maybe a 
chrooted command will work? 
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2002-10-13 15:42:21 UTC
Wondering if this isn't the MakeMaker fix breaking - maybe if we exported
${D}/usr/bin into the path and ${D}/usr/lib into the lib path...? that way perl
and it's files could be seen by the makemaker build...not sure about the
chrooted command in pkg_postinstall - just don't know anything about those
mechanics, too bad we can't force an emerge afterwards for MakeMaker (pipe dream)
Comment 3 SpanKY gentoo-dev 2002-10-13 17:42:42 UTC
*** Bug 9092 has been marked as a duplicate of this bug. ***
Comment 4 J Robert Ray 2002-10-14 01:12:19 UTC
Changing the command to this:

./perl -I${D}/usr/lib/perl5/${PV} -I${D}/usr/lib/perl5/${PV}/${CHOST%%-*}-linux
installhtml --recurse --htmldir=${D}/usr/share/doc/${PF}/html

makes the command succeed, although there are a tremendous amount of warnings
about unresolvable pages.

After this change, the following command that tries to build MakeMaker fails
with the same bad @INC issue.  I commented every line after the installhtml line
out and the ebuild will then succesfully install.

I browsed the html files a bit and they seem okay.
Comment 5 SpanKY gentoo-dev 2002-10-14 19:57:32 UTC
*** Bug 9105 has been marked as a duplicate of this bug. ***
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 05:33:43 UTC
*** Bug 9099 has been marked as a duplicate of this bug. ***
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 05:34:26 UTC
*** Bug 9067 has been marked as a duplicate of this bug. ***
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 05:37:11 UTC
OK, so attention everyone.

mcummings informs me that ExtUtils-MakeMaker is absolutely required so that all
the previous perl libinc woes were solved (previous == before -r8).  So, with
-r8 we tried making MakeMaker a part of perl.  That obviously failed.   Instead,
what I have done is make MakeMaker a part of the required gentoo basic system
along with perl.  So, please emerge rsync, emerge -u system.  That should pull
in perl's -r7 again, along with MakeMaker, and we should hopefully all be happy.
 Please test and report here.
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-15 09:49:54 UTC
*** Bug 9067 has been marked as a duplicate of this bug. ***
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-16 14:00:21 UTC
so people. success stories? failure stories?  someone say something!
Comment 11 Adam Mercer 2002-10-16 16:45:22 UTC
In the process of testing now...

perl has built fine along with ExtUtils-MakeMaker

Cheers, looks like thats fixed it.
Comment 12 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-16 17:38:15 UTC
closing this report, as users in #gentoo have stopped complaining of perl
issues, and the only feedback in this report has been positive.  Please re-open
if the problem persists.
Comment 13 Joshua Kinard gentoo-dev 2002-10-16 22:52:37 UTC
I just tried emerging perl-5.6.1-r8 on sparc64 again, and it still fails on the
same error.

I have perl-5.6.1-r7 already installed, along with
dev-perl/ExtUtils-MakeMaker-6.05, any ideas?
Comment 14 SpanKY gentoo-dev 2002-10-16 22:57:33 UTC
you shouldnt be installing -r8 ... 
 
see comment #8 ... basically if you already have -r7 installed and you never 
made it to -r8, then just `emerge perl` to force a re-install of it 
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2002-10-16 22:58:50 UTC
in fact, I have just removed -r8 from the portage tree
Comment 16 Joshua Kinard gentoo-dev 2002-10-16 23:09:20 UTC
Alright, duly noted.