Source: libexif-gtk
Version: 0.4.0-2
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

libexif-gtk fails to cross build from source, because it uses the build
architecture pkg-config (via AC_PATH_PROG). Switching to AC_PATH_TOOL
fixes that. The attached patch implements that and makes libexif-gtk
cross buildable. A better solution would be replacing GP_PKG_CONFIG with
the upstream macro PKG_PROG_PKG_CONFIG, but they behave subtly
different. Meanwhile please consider fixing the cross build failure
using my patch.

Helmut
--- libexif-gtk-0.4.0.orig/m4m/gp-pkg-config.m4
+++ libexif-gtk-0.4.0/m4m/gp-pkg-config.m4
@@ -19,7 +19,7 @@
 fi
 
 dnl AC_REQUIRE([PKG_CHECK_MODULES])
-AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false])
+AC_PATH_TOOL([PKG_CONFIG],[pkg-config],[false])
 if test "$PKG_CONFIG" = "false"; then
 AC_MSG_ERROR([
 *** Build requires pkg-config

Reply via email to