Source: aumix Version: 2.9.1-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
aumix fails to cross build from source, because it uses the build architecture pkg-config and thus fails finding gtk. By using the PKG_PROG_PKG_CONFIG macro, $ac_tool_prefix is properly considered and the cross build succeeds. Please consider applying the attached patch. Helmut
diff --minimal -Nru aumix-2.9.1/debian/changelog aumix-2.9.1/debian/changelog --- aumix-2.9.1/debian/changelog 2016-07-19 23:15:12.000000000 +0200 +++ aumix-2.9.1/debian/changelog 2017-01-23 21:50:38.000000000 +0100 @@ -1,3 +1,10 @@ +aumix (2.9.1-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: 19_cross.patch (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 23 Jan 2017 21:50:38 +0100 + aumix (2.9.1-4) unstable; urgency=medium * QA upload. diff --minimal -Nru aumix-2.9.1/debian/patches/19_cross.patch aumix-2.9.1/debian/patches/19_cross.patch --- aumix-2.9.1/debian/patches/19_cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ aumix-2.9.1/debian/patches/19_cross.patch 2017-01-23 21:50:38.000000000 +0100 @@ -0,0 +1,27 @@ +From: Helmut Grohne <hel...@subdivi.de> +Subject: use triplet-prefixed pkg-config + +Index: aumix-2.9.1/configure.ac +=================================================================== +--- aumix-2.9.1.orig/configure.ac ++++ aumix-2.9.1/configure.ac +@@ -155,8 +155,8 @@ + gtk_must=off, gtk_must=on) + if test $gtk_must = on; then + dnl from gftp +- AC_CHECK_PROG(PKG_CONFIG, pkg-config, yes, no) +- if test "$PKG_CONFIG" = "no"; then ++ PKG_PROG_PKG_CONFIG ++ if test -z "$PKG_CONFIG"; then + echo "pkg-config not found--compiling without GTK+ 2.0." ; + else + echo "pkg-config found--compiling with GTK+ 2.0." ; +@@ -181,7 +181,7 @@ + else + AC_MSG_RESULT([Compiling without GTK+ 2.0.]) + fi +-AM_CONDITIONAL(GTK, test "$gtk_must" = on && test "$PKG_CONFIG" != "no") ++AM_CONDITIONAL(GTK, test "$gtk_must" = on && test -n "$PKG_CONFIG") + + AC_MSG_CHECKING([whether dummy mixer is requested]) + AC_ARG_ENABLE(dummy-mixer, diff --minimal -Nru aumix-2.9.1/debian/patches/series aumix-2.9.1/debian/patches/series --- aumix-2.9.1/debian/patches/series 2014-04-30 01:07:31.000000000 +0200 +++ aumix-2.9.1/debian/patches/series 2017-01-23 21:49:12.000000000 +0100 @@ -7,3 +7,4 @@ 16_potfiles.patch 17_zh-tw-po.patch 18_ncursesw.patch +19_cross.patch