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

Bug 538876

Summary: media-libs/smpeg2 installs /usr/bin/smpeg2-config which is hardcoded to only work with abi_x86_64
Product: Gentoo Linux Reporter: James D. Taylor <james.d.taylor>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=538874
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 538874    
Attachments: Adds multilib capable pkgconfig .pc file for media-libs/smpeg2-2.0.0-r2

Description James D. Taylor 2015-02-05 04:02:28 UTC
When building a multilib abi_x86_[32,64] system, media-libs/sdl2-mixer fails because installed smpeg2.m4 uses /usr/bin/smpeg2-config.  This causes mixing of 32 and 64 bit libs when linking sdl2-mixer.  See bug #538874 :
https://bugs.gentoo.org/show_bug.cgi?id=538874


Reproducible: Always

Steps to Reproduce:
1. Same steps as in #538874
2.
3.




I'm creating this separately because the sdl2-mixer bug can be fixed while this could still be broken.
Comment 1 James D. Taylor 2015-02-06 02:59:24 UTC
Created attachment 395664 [details, diff]
Adds multilib capable pkgconfig .pc file for media-libs/smpeg2-2.0.0-r2

This adds an smpeg2.pc file in the exact same way as libsdl2 to be installed in /usr/lib32/pkgconfig and /usr/lib64/pkgconfig.  I also updated its aclocal smpeg.m4 to pull in these new pc files.  Basically all ripped from sdl2.  Either apply as an epatch or wait until we I hear any response from upstream.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-13 21:39:30 UTC
Installing custom .pc files is against Gentoo rules. So unless upstream is really interested in having it, we need to go the regular way and MULTILIB_CHOST_TOOLS it. The same applies to smpeg-1.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-02-13 21:42:18 UTC
Oh, there's one more alternative -- libsdl patches sdl-config to output libdir only when it's some kind of special root. You could apply a similar patch to smpeg instead of fixing stuff properly.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2015-02-22 07:52:28 UTC
stole the patch from smpeg that works around it in the quick and dirty way.