[Bug 1352230] Re: PKG_CONFIG_PATH in pkg-config-crosswrapper
Ubuntu Foundations Team Bug Bot
1352230 at bugs.launchpad.net
Thu Oct 29 12:26:23 UTC 2015
The attachment "pkg-config-crosswrapper.patch" seems to be a patch. If
it isn't, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are a member of the ~ubuntu-reviewers,
unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issues please contact him.]
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkg-config in Ubuntu.
https://bugs.launchpad.net/bugs/1352230
Title:
PKG_CONFIG_PATH in pkg-config-crosswrapper
Status in pkg-config package in Ubuntu:
Confirmed
Bug description:
I was wondering, why my Jenkins build failed after upgrade to Ubutnu
14.04, now I see that in pkg-config-crosswrapper my variable
PKG_CONFIG_PATH is brutally overwritten.
How am I supposed to set a PKG_CONFIG_PATH in a cross-compile
environment?
IMHO: PKG_CONFIG_PATH must not be overwritten in pkg-config-
crosswrapper.
I now manually edited /usr/share/pkg-config-crosswrapper (added ":${PKG_CONFIG_PATH}") to become:
{{{
#! /bin/sh
# pkg-config wrapper for cross-building
# Sets pkg-config search path to target arch path only.
triplet=`basename $0 | sed -e 's:-pkg-config::'`
PKG_CONFIG_PATH=/usr/lib/${triplet}/pkgconfig:/usr/${triplet}/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config $@
}}}
My jenkins build script is:
{{{ (added ":${PKG_CONFIG_PATH}")
PKG_CONFIG_PATH=${HOME}/qt-${MINGW}/lib/pkgconfig \
CPPFLAGS="-I${WORKSPACE}/usr/include" \
LDFLAGS="-L${WORKSPACE}/usr/lib" \
./configure --prefix=${WORKSPACE}/usr --host=${MINGW}
make all install
}}}
Manually changing a package-provided file is a dirty hack. So do you change your code or do I have another/better way for providing my additional path?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkg-config/+bug/1352230/+subscriptions
More information about the foundations-bugs
mailing list