Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157778 - sys-devel/libperl crosscompile fails due to hardcoded library path
Summary: sys-devel/libperl crosscompile fails due to hardcoded library path
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 180827 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-10 16:29 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2013-05-06 02:33 UTC (History)
4 users (show)

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


Attachments
Ebuild patch (libperl-libpath-ebuild.patch,766 bytes, patch)
2006-12-10 16:30 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-10 16:29:20 UTC
The libperl (and probably perl) ebuilds hardcodes the library path, leaving the default /usr/local/lib /usr/lib and /lib for non-multilib systems and the corresponding $(get_libdir) for other systems.
Unfortunately this does not work as intended when crosscompiling, as those paths are actually not used.

The attached patch to libperl ebuild make use of the paths reported by gcc itself, that should be safer; it also removes the usage of /usr/local/lib as that might pollute the environment with user-installed libraries that often cause unexpected trouble.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-10 16:30:51 UTC
Created attachment 103767 [details, diff]
Ebuild patch
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2007-01-02 14:22:07 UTC
Can I assume you're talking about the values in @INC? If so, this is kinda bogus (sorry).
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-02 14:30:37 UTC
I doubt it's about @INC as it's not perl-side the problem but compile-side.
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2007-03-03 15:38:00 UTC
Diego,

I know you've tossed the hat in, so I feel bad only getting to this now. But just in case....is:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib/x86_64-pc-linux-gnu/4.1.2/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib/../lib64/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../x86_64-pc-linux-gnu/4.1.2/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/ /lib/x86_64-pc-linux-gnu/4.1.2/ /lib/../lib64/ /usr/lib/x86_64-pc-linux-gnu/4.1.2/ /usr/lib/../lib64/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib/ /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../ /lib/ /usr/lib/


really better than /usr/$(get_libdir) /$(get_libdir)? Seems bloaty to me too...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-02-27 18:33:54 UTC
*** Bug 180827 has been marked as a duplicate of this bug. ***
Comment 6 Jacob Godserv 2009-03-05 15:15:42 UTC
Is bumping bugs legal? :)

Has anyone decided whether or not the patched ebuild above is the proper fix for this bug?
Comment 7 David Abbott (RETIRED) gentoo-dev 2009-10-17 00:54:47 UTC
Diego, would you like to fix this?
Comment 8 SpanKY gentoo-dev 2013-05-06 02:33:59 UTC
libperl is dead.  perl itself is bug 134650.