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
Created attachment 103767 [details, diff] Ebuild patch
Can I assume you're talking about the values in @INC? If so, this is kinda bogus (sorry).
I doubt it's about @INC as it's not perl-side the problem but compile-side.
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...
*** Bug 180827 has been marked as a duplicate of this bug. ***
Is bumping bugs legal? :) Has anyone decided whether or not the patched ebuild above is the proper fix for this bug?
Diego, would you like to fix this?
libperl is dead. perl itself is bug 134650.