Package: libgtk-3-dev
Version: 3.22.29-2
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap
Control: affects -1 + src:terminatorx

AM_PATH_GTK_3_0 uses AC_PATH_PROG for finding pkg-config. Unfortunately,
that will find the build architecture pkg-config which in turn will miss
the host architecture gtk+3.0. What must be used here is the host
architecture pkg-config and that is found with AC_PATH_TOOL. Please
consider applying the attached patch.

If AM_PATH_GTK_3_0 was using PKG_PROG_PKG_CONFIG or even
PKG_CHECK_MODULES, this problem would have gone away entirely. Is there
a reason for not using these macros?

Helmut
Index: gtk+3.0-3.22.29/m4macros/gtk-3.0.m4
===================================================================
--- gtk+3.0-3.22.29.orig/m4macros/gtk-3.0.m4
+++ gtk+3.0-3.22.29/m4macros/gtk-3.0.m4
@@ -25,7 +25,7 @@
 
   no_gtk=""
 
-  AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+  AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
 
   if test x$PKG_CONFIG != xno ; then
     if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
@@ -201,7 +201,7 @@
   min_gtk_version=ifelse([$2],,3.0.0,$2)
   pkg_config_args="$pkg_config_args >= $min_gtk_version"
 
-  AC_PATH_PROG(PKG_CONFIG, [pkg-config], [AC_MSG_ERROR([No pkg-config found])])
+  AC_PATH_TOOL(PKG_CONFIG, [pkg-config], [AC_MSG_ERROR([No pkg-config found])])
 
   if $PKG_CONFIG $pkg_config_args ; then
     target_found=yes

Reply via email to