Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538876 - media-libs/smpeg2 installs /usr/bin/smpeg2-config which is hardcoded to only work with abi_x86_64
Summary: media-libs/smpeg2 installs /usr/bin/smpeg2-config which is hardcoded to only ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 538874
  Show dependency tree
 
Reported: 2015-02-05 04:02 UTC by James D. Taylor
Modified: 2015-02-22 07:52 UTC (History)
0 users

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


Attachments
Adds multilib capable pkgconfig .pc file for media-libs/smpeg2-2.0.0-r2 (smpeg2-2.0.0-smpeg2-pkgconf.patch,9.73 KB, patch)
2015-02-06 02:59 UTC, James D. Taylor
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.