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.
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.
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.
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.
stole the patch from smpeg that works around it in the quick and dirty way.