Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262414 - app-emulation/emul-linux-x86-* should ship with pkg-config files
Summary: app-emulation/emul-linux-x86-* should ship with pkg-config files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 141626 emul-tracker
  Show dependency tree
 
Reported: 2009-03-14 11:39 UTC by Dennis Schridde
Modified: 2011-01-30 17:49 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2009-03-14 11:39:51 UTC
The various app-emulation/emul-linux-x86-* library packages should ship with pkg-config files to allow packages which need to be built in 32bit mode to properly compile/link against them.

One affected package is for example games-emulation/pcsx2 (bug #141626), which fails to link against glib from app-emulation/emul-linux-x86-gtklibs, because it uses the pkg-config file of dev-libs/glib-2.18.4-r1, which references libgio-2.0.so, which is not present in the emul-linux package.

This could be prevented if app-emulation/emul-linux-x86-gtklibs would ship with an own, correct for this version, pkg-config file, which would list the libs which are actually present.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2009-12-27 14:14:08 UTC
(In reply to comment #0)
> One affected package is for example games-emulation/pcsx2 (bug #141626), which
> fails to link against glib from app-emulation/emul-linux-x86-gtklibs, because
> it uses the pkg-config file of dev-libs/glib-2.18.4-r1, which references
> libgio-2.0.so, which is not present in the emul-linux package.

Would this still be required with latest emul packages (gio is provided on them)?
Comment 2 Dennis Schridde 2009-12-27 15:19:37 UTC
(In reply to comment #1)
> Would this still be required with latest emul packages (gio is provided on
> them)?
I generally think that it is advisable to ship correct and matching pkg-config files with the libs. Today it might work in this specific case, but tomorrow there might be another mismatch creating problems.
(It is not predictable what upstream of the libs present in emul-linux-x86-* decides upon. And linking in unnecessary 32bit libraries, only because a version of the 64bit libs needs something, seems dirty, too.)

And putting the pkg-config files into the tarball should be cheap, anyway.
Comment 3 Pacho Ramos gentoo-dev 2009-12-27 18:44:19 UTC
I know that it would be more ideal, the problem is that, currently, the way for creating emul packages is not so flexible , it would require some additional work. Then, this is more like an "enhancement" request
Comment 4 Dennis Schridde 2009-12-27 21:32:01 UTC
I will report back when I tried again to compile pcsx2, which was the package giving the original reason for this bugreport.
Comment 5 Pacho Ramos gentoo-dev 2010-01-22 18:13:38 UTC
The original idea is to try to only provide enough libraries on those packages, also, pkg-config files shouldn't be needed if needed libs are provided with them

Closing this then, if, in the future, you need a library or an updated version in emul packages, simply open a new bug report for it

Thanks a lot and best regards
Comment 6 Dennis Schridde 2010-01-22 18:45:44 UTC
For packages building a 32bit version of themselves on a 64bit (multilib) system and detecting libraries via pkg-config, pkg-config is very well needed.
Comment 7 Pacho Ramos gentoo-dev 2010-01-22 18:56:08 UTC
I could maybe add a "pkgconfig" USE flag for emul packages then for letting users to install /usr/lib32/pkgconfig files if they want I guess

Samuli, what do you think? (since you are a much more experienced developer and would probably know how pkgconfig works and if this is really needed) Thanks a lot :-)
Comment 8 Pacho Ramos gentoo-dev 2011-01-30 11:36:13 UTC
Fixed in 20110129 (behind "development" USE flag)
Comment 9 Dennis Schridde 2011-01-30 17:49:52 UTC
(In reply to comment #8)
> Fixed in 20110129 (behind "development" USE flag)
Thanks a lot!