pkg-config is unusable for local builds

Bug #907054 reported by Michael Hope
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Toolchain Binaries
Fix Released
Medium
Unassigned

Bug Description

We use a pkg-config wrapper and pkg-config's sysroot mode to relocate the .pc files that come with Ubuntu.

This causes a prefix=/usr/lib to automatically be converted to prefix=$SYSROOT/usr/lib where sysroot is set in the wrapper script and passed to pkg-config itself.

This falls down if you want to have your own local build tree with local .pc files. Taking the binary test scripts as an example:

michaelh@crucis:~/linaro/binary/linaro/contrib/linaro/tests$ arm-linux-gnueabi-pkg-config --cflags libffi
-I/home/michaelh/linaro/binary/check/gcc-linaro-arm-linux-gnueabi-2011.12-20111219+bzr2299~linux/bin/../arm-linux-gnueabi/libc/home/michaelh/linaro/binary/linaro/contrib/linaro/tests/install/lib/libffi-3.0.10/include

Change pkg-config to only insert the sysroot if the prefix starts with /usr or similar?

Michael Hope (michaelh1)
Changed in linaro-toolchain-binaries:
status: New → Triaged
importance: Undecided → Medium
Michael Hope (michaelh1)
summary: - pkg-config is unusalble for local builds
+ pkg-config is unusable for local builds
Michael Hope (michaelh1)
Changed in linaro-toolchain-binaries:
status: Triaged → Fix Committed
Michael Hope (michaelh1)
Changed in linaro-toolchain-binaries:
milestone: none → 2012.01
Michael Hope (michaelh1)
Changed in linaro-toolchain-binaries:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.