Source: consolekit Version: 0.4.5-3 Severity: normal User: [email protected] Usertags: cross
consolekit can't find dbus-1 when cross-building: >From the build log: ----------- Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containing dbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' found Error: Couldn't determine the version of your DBUS package. ----------- This turns out to be because a local test in configure.ac used hard-coded 'pkg-config' instead of $PKG_CONFIG which autoconf has set to the correct path (/usr/bin/<triplet>-pkg-config when cross-building) patch attached. This should be upstreamed. (Note that this patch does not solve all the issues of cross-building this package using multiarch mechanisms - there are other issues which will be reported separately). Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/
diff -urN origs/consolekit-0.4.5/debian/patches/cross-pkg-config-fix.patch patched/consolekit-0.4.5/debian/patches/cross-pkg-config-fix.patch --- origs/consolekit-0.4.5/debian/patches/cross-pkg-config-fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ patched/consolekit-0.4.5/debian/patches/cross-pkg-config-fix.patch 2012-04-18 15:24:52.000000000 +0000 @@ -0,0 +1,22 @@ +Description: Ensure cross-pkg-config is used when cross-building + When cross-building pkg-config should use <triplet>-pkg-config in + order to search the correct paths. Autoconf already knows this and + does it right. This patch ensures that local autoconf extra do it + right by using $PKG_CONFIG instead of 'pkg-config'. + +Author: Wookey <[email protected]> + +--- +Last-Update: <2012-04-18> + +--- consolekit-0.4.5.orig/configure.ac ++++ consolekit-0.4.5/configure.ac +@@ -90,7 +90,7 @@ esac + + # Find out the version of DBUS we're using + +-dbus_version=`pkg-config --modversion dbus-1` ++dbus_version=`$PKG_CONFIG --modversion dbus-1` + DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'` + DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'` + DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'` diff -urN origs/consolekit-0.4.5/debian/patches/series patched/consolekit-0.4.5/debian/patches/series --- origs/consolekit-0.4.5/debian/patches/series 2012-02-29 22:05:05.000000000 +0000 +++ patched/consolekit-0.4.5/debian/patches/series 2012-04-18 15:23:25.000000000 +0000 @@ -2,3 +2,4 @@ 00git_truncate_frequent.patch 03-cleanup_console_tags.patch 82-hurd_support.patch +cross-pkg-config-fix.patch

