Source: gphotofs
Version: 0.5-4
Tags: upstream patch
User: helm...@debian.org
Usertags: rebootstrap

gphotofs fails to cross build from source, because it uses the build
architecture pkg-config and thus fails finding required packages that
are only requested for the host architecture. Its own m4 macros set up
the PKG_CONFIG environment variable to point to the build architecture
pkg-config and thus make the standard PKG_* macros use the wrong
pkg-config. Calling back into PKG_PROG_PKG_CONFIG fixes the issue as the
latter takes $ac_tool_prefix into account.  Please consider applying the
attached patch.

Helmut
Index: gphotofs-0.5/m4m/gp-pkg-config.m4
===================================================================
--- gphotofs-0.5.orig/m4m/gp-pkg-config.m4
+++ gphotofs-0.5/m4m/gp-pkg-config.m4
@@ -19,8 +19,8 @@
 fi
 
 dnl AC_REQUIRE([PKG_CHECK_MODULES])
-AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false])
-if test "$PKG_CONFIG" = "false"; then
+PKG_PROG_PKG_CONFIG
+if test "x$PKG_CONFIG" = "x"; then
 AC_MSG_ERROR([
 *** Build requires pkg-config
 ***
_______________________________________________
Pkg-phototools-devel mailing list
Pkg-phototools-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel

Reply via email to