Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 110453

Summary: Perl minimal doesn't leave correct libs
Product: Gentoo Linux Reporter: Nathan Toone <nathan>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: critical CC: natanael.copa
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 95038    
Attachments: Fix for perl minimal build
Modified fix
perl-5.8.7-r3.ebuild.patch

Description Nathan Toone 2005-10-25 09:29:35 UTC
When compiling perl with the "minimal" use flag, some needed libraries (ex 
Data::Dumper") are not left intact.  The reason comes down to lines ~450 in 
the ebuild (for 5.8.7-r1) which read similar to this: 
${prVA}/auto/Cwd/Cwd.$(get_libname) 
 
$(get_libname) returns a dot with the extension - so the files being masked 
contain two dots... 
 
remove the preceding "." before $(get_libname) and all works fine 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




You cannot compile lots of stuff without data::dumper.  So this is pretty 
important to get fixed.
Comment 1 Nathan Toone 2005-10-25 09:38:30 UTC
Created attachment 71420 [details, diff]
Fix for perl minimal build

This patch fixes the perl minimal build
Comment 2 René Rhéaume (a.k.a. repzilon, rener) 2005-10-30 11:53:39 UTC
Created attachment 71750 [details, diff]
Modified fix

I confirm the issue. The proposed fix is OK and I modified it to cache the
result to a local variable (saves a little bit of CPU time and space and less
error-prone).

Changing OS from Linux to All as get_libname, used to get the dynamic library
file extension, returns a different string depending on the operating system
(for now OSX vs Linux/FreeBSD).
Comment 3 René Rhéaume (a.k.a. repzilon, rener) 2005-10-30 11:55:17 UTC
Oops, I cannot change the OS field.
Comment 4 Natanael Copa 2005-12-07 00:45:05 UTC
Created attachment 74213 [details, diff]
perl-5.8.7-r3.ebuild.patch

Same as "Modified patch" but for perl-5.8.7-r3.

As mentioned, this bug prevents alot of important packages. It actually
prevents the system to be (re)built so it would be nice if someone could check
it out and commit it to portage.
Comment 5 Michael Cummings (RETIRED) gentoo-dev 2006-01-15 09:18:35 UTC
fixed!