Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268847 - dev-util/pkgconfig support for cross build broken: PKG_CONFIG_SYSROOT_DIR mishandled
Summary: dev-util/pkgconfig support for cross build broken: PKG_CONFIG_SYSROOT_DIR mis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://lists.freedesktop.org/archives...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 19:50 UTC by Luca Barbato
Modified: 2010-06-17 13:04 UTC (History)
2 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 Luca Barbato gentoo-dev 2009-05-06 19:50:15 UTC
It has been fixed in the current bzr tree, would be possible provide a snapshot?

To reproduce try to pass a value to PKG_CONFIG_SYSROOT_DIR env var, issue a pkg-config --libs and see the -L part being replaced and the -l part being wiped
Comment 1 Luca Barbato gentoo-dev 2009-05-06 20:24:48 UTC
minimal patch to fix the behaviour http://lists.freedesktop.org/archives/pkg-config/attachments/20080122/424351fe/attachment.ksh
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-05-07 09:37:34 UTC
doesn't sound too crazy and upstream included it.
Comment 3 Mart Raudsepp gentoo-dev 2009-05-07 16:22:47 UTC
I'll look at this and other pkg-config bugs this weekend
Comment 4 Maksim 'max_posedon' Melnikau 2009-05-07 16:39:15 UTC
Patch works for me,

# PKG_CONFIG_SYSROOT_DIR=/usr/armv4tl-softfloat-linux-gnueabi PKG_CONFIG_PATH=/usr/armv4tl-softfloat-linux-gnueabi/usr/lib/pkgconfig PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 pkg-config --libs openssl
-L/usr/armv4tl-softfloat-linux-gnueabi/usr/lib -lssl -lcrypto -ldl

# PKG_CONFIG_SYSROOT_DIR=/usr/armv4tl-softfloat-linux-gnueabi PKG_CONFIG_PATH=/usr/armv4tl-softfloat-linux-gnueabi/usr/lib/pkgconfig pkg-config --libs openssl
-lssl -lcrypto -ldl

ebuild can be taken here:
http://gentoo.mindzoo.de/index.cgi/browser/openmoko/trunk/openmoko-target/dev-util/pkgconfig

basically just simple, epatch fix.
Comment 5 Luca Barbato gentoo-dev 2009-05-27 00:43:52 UTC
In order to get cross build working always I had to update locally to the last commit in their bzr repo, looks like a snapshot could be a nicer solution...
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-06-17 13:04:13 UTC
The fix appears to be in pkgconfig-0.25.