Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30195 - Bug in perl-module.eclass
Summary: Bug in perl-module.eclass
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-02 13:58 UTC by Stephan Weber
Modified: 2003-12-21 22:25 UTC (History)
1 user (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 Stephan Weber 2003-10-02 13:58:46 UTC
When emerging certain Perl stuff, I got sandbox errors. Trying to trace it 
down, this is what I found.... 
 
In perl-module.eclass there is: 
 
perl-module_src_prep() { 
.... 
                if [ "${MMSIXELEVEN}" ]; then 
                        perl Makefile.PL ${myconf} \ 
                        PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} 
.... 
 
The definition of PREFIX=/usr causes the sandbox errors, IMHO. Thus a change 
to  
.... 
                if [ "${MMSIXELEVEN}" ]; then 
                        perl Makefile.PL ${myconf} \ 
                        PREFIX=${D}/usr INSTALLDIRS=vendor DESTDIR=${D} 
.... 
fixed the problem for me. 
 

Reproducible: Always
Steps to Reproduce:
See above description.		 
Actual Results:  
See above description. 

Expected Results:  
See above description.
Comment 1 Doug Weimer 2003-10-06 21:18:57 UTC
I don't think this should be changed. Packages that are using MakeMaker correctly
will break with PREFIX=${D}/usr. The typical way the install paths are created
is $DESTDIR/$PREFIX/$INSTALLLOCATION. Changing PREFIX to ${D}/usr will cause
${D} to be repeated in those packages that use MakeMaker properly. Could
you file bugs or post those packages that needed this fix? Most likely they
have custom variables in Makefile.PL that aren't respecting the DESTDIR prefix.
Comment 2 Stephan Weber 2003-10-07 13:43:59 UTC
You are absolutely right!
A bug in an ebuild led me to above conclusion...
Think first then post... sorry.

Kind regards,

Stephan
Comment 3 Robert Coie (RETIRED) gentoo-dev 2003-12-21 22:25:52 UTC
Will fix individual packages affected.