Package: pkg-config
Version: 0.26-1
Severity: wishlist
Hi,
Following discussion in debian-devel, I think the pkg-config-crosswrapper
must be fixed. For now, pkg-config-crosswrapper set PKG_CONFIG_LIBDIR to
/usr/${triplet}/lib/pkgconfig. I see two problems:
- arch-indep package are not searched anymore
$ PKG_CONFIG_LIBDIR="" pkg-config --list-all
$ PKG_CONFIG_LIBDIR="/usr/share/pkgconfig/" pkg-config --list-all
xorg-sgml-doctools xorg-sgml-doctools - Stylesheets and
entities for X.Org documentation
[...]
Looking at the source, this is because /usr/share/pkgconfig is only added
(toghether with /usr/lib/pkgconfig) to the search path (from
PKG_CONFIG_PC_PATH, itself defined from $pc_path from configure.ac) if
PKG_CONFIG_LIBDIR is unset.
- multiarch dir is not search at all
I suggest to rewrite pkg-config-crosswrapper to something like that (not
tested):
#! /bin/sh
# pkg-config wrapper for cross-building
# Sets pkg-config search path to multi arch, target arch and arch independant
# paths.
PKG_CONFIG_LIBDIR=/usr/share/pkgconfig
triplet=`basename $0 | sed -e 's:-pkg-config::'`
PKG_CONFIG_LIBDIR="/usr/${triplet}/lib/pkgconfig:${PKG_CONFIG_LIBDIR}"
MULTIARCH_DIR="$(dpkg-architecture -t"${triplet}" -qDEB_HOST_MULTIARCH
2>/dev/null)"
if [ -n "${MULTIARCH_DIR}" ]; then
PKG_CONFIG_LIBDIR="/usr/lib/${MULTIARCH_DIR}/pkgconfig:${PKG_CONFIG_LIBDIR}"
fi
exec PKG_CONFIG_LIBDIR="${PKG_CONFIG_LIBDIR}" pkg-config "$@"
Regards,
Vincent
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pkg-config depends on:
ii libc6 2.13-21
ii libglib2.0-0 2.28.6-1
ii libpopt0 1.16-1
pkg-config recommends no packages.
pkg-config suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]