Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110453 - Perl minimal doesn't leave correct libs
Summary: Perl minimal doesn't leave correct libs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 95038
  Show dependency tree
 
Reported: 2005-10-25 09:29 UTC by Nathan Toone
Modified: 2006-01-15 09:18 UTC (History)
1 user (show)

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


Attachments
Fix for perl minimal build (patch,1.44 KB, patch)
2005-10-25 09:38 UTC, Nathan Toone
Details | Diff
Modified fix (perl-5.8.7-r1.ebuild-libname.patch,1.88 KB, patch)
2005-10-30 11:53 UTC, René Rhéaume (a.k.a. repzilon, rener)
Details | Diff
perl-5.8.7-r3.ebuild.patch (perl-5.8.7-r3.ebuild.patch,1.83 KB, patch)
2005-12-07 00:45 UTC, Natanael Copa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!