Source: gnome-user-share
Version: 3.18.3-2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

gnome-user-share fails to cross build from source, because it fails to
consider $ac_tool_prefix when searching for pkg-config or simply hard
codes the plain pkg-config. Afterin using the right macro
(PKG_PROG_PKG_CONFIG) and making all pkg-config calls subtitutable, it
cross builds successfully. Please consider applying the attached patch.

Helmut
Index: gnome-user-share-3.18.3/configure.ac
===================================================================
--- gnome-user-share-3.18.3.orig/configure.ac
+++ gnome-user-share-3.18.3/configure.ac
@@ -25,7 +25,7 @@
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PATH_XTRA
-AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+PKG_PROG_PKG_CONFIG
 
 # Initialize libtool
 LT_INIT([disable-static])
@@ -131,7 +131,7 @@
 
 PKG_CHECK_MODULES(EXTENSION, libnautilus-extension >= 2.91.7)
 if test "${ac_with_nautilusdir}" = ""; then
-	ac_with_nautilusdir=`pkg-config --variable=extensiondir libnautilus-extension`
+	ac_with_nautilusdir=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
 fi
 AC_SUBST(NAUTILUSDIR)
 AC_MSG_NOTICE([installing nautilus plugin in ${ac_with_nautilusdir}])

Reply via email to