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

Bug 416339

Summary: dev-perl/Net-SSLeay: does not respect multilib systems
Product: Gentoo Linux Reporter: Anthony Basile <blueness>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: mips
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 306835    
Attachments: Replace lib with $(get_libdir) everywhere
Modify libpath in Module-Install extension

Description Anthony Basile gentoo-dev 2012-05-17 00:18:20 UTC
I hit this while building on a mipsel64 system (the loongsoon lemote) but it effects all multilib systems.  Linkage is done against /lib and /usr/lib rather than using $(get_libdir).

The fix is a little hackish because it is better to patch Makefile.PL during src_prepare() rather than the generated Makefile during src_configure(), but the perl build systems (use inc::Module::Install) doesn't easily allow you do edit EXTRALIBS and LDLOADLIBS as does ExtUtils::MakeMaker, if someone wants to pursue that path upstream.

Reproducible: Always
Comment 2 Anthony Basile gentoo-dev 2012-05-17 00:24:15 UTC
Created attachment 312069 [details]
Replace lib with $(get_libdir) everywhere
Comment 3 Matt Turner gentoo-dev 2012-07-10 02:27:43 UTC
So.. uh. Perl devs?
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2012-07-10 03:53:36 UTC
Matt?
Comment 5 Matt Turner gentoo-dev 2012-07-10 23:31:54 UTC
(In reply to comment #4)
> Matt?

Can we commit this fix?
Comment 6 Torsten Veller (RETIRED) gentoo-dev 2012-07-14 07:12:07 UTC
Created attachment 318120 [details]
Modify libpath in Module-Install extension

Patch hardcodes $(get_libdir) result in the extension.
It also removes the optimize overwrite.
Comment 7 Anthony Basile gentoo-dev 2012-07-15 12:53:41 UTC
(In reply to comment #6)
> Created attachment 318120 [details]
> Modify libpath in Module-Install extension
> 
> Patch hardcodes $(get_libdir) result in the extension.
> It also removes the optimize overwrite.

I test and this works.  To be honest, I don't like either solution because the fix means patching in lib32 without the build system being able to either detect or be told via an environment variable to use lib32.

Anyhow, please commit this.
Comment 8 Torsten Veller (RETIRED) gentoo-dev 2012-07-15 17:43:02 UTC
I agree.

Fixed in 0.480.0-r1.

Thanks