Source: nemo-fileroller Version: 3.0.0-1~ Tags: patch User: [email protected] Usertags: rebootstrap
nemo-fileroller fails to cross build from source, because it uses the build architecture pkg-config. Its configure.ac uses handcrafted rules for discovering pkg-config and fails to consider ac_tool_prefix. By moving to standard macros, this problem can be avoided and thus nemo-fileroller can be cross built. Please consider applying the attached patch. Helmut
diff --minimal -Nru nemo-fileroller-3.0.0/debian/changelog nemo-fileroller-3.0.0/debian/changelog --- nemo-fileroller-3.0.0/debian/changelog 2016-05-15 12:45:36.000000000 +0200 +++ nemo-fileroller-3.0.0/debian/changelog 2016-11-09 19:08:26.000000000 +0100 @@ -1,3 +1,10 @@ +nemo-fileroller (3.0.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * cross.patch: use a triplet-prefixed pkg-config. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 09 Nov 2016 19:08:26 +0100 + nemo-fileroller (3.0.0-1~) unstable; urgency=medium * New upstream release (3.0.0). diff --minimal -Nru nemo-fileroller-3.0.0/debian/patches/cross.patch nemo-fileroller-3.0.0/debian/patches/cross.patch --- nemo-fileroller-3.0.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ nemo-fileroller-3.0.0/debian/patches/cross.patch 2016-11-09 19:08:25.000000000 +0100 @@ -0,0 +1,18 @@ +Subject: use a triplet-prefixed pkg-config for cross compilation +From: Helmut Grohne <[email protected]> + +--- nemo-fileroller-3.0.0.orig/configure.ac ++++ nemo-fileroller-3.0.0/configure.ac +@@ -20,11 +20,7 @@ AC_PROG_CC + AM_PROG_LIBTOOL + + # Check for pkg-config +-AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) +-AC_PATH_PROG(PKG_CONFIG, pkg-config, no) +-if test "x$HAVE_PKGCONFIG" = "xno"; then +- AC_MSG_ERROR(you need to have pkgconfig installed !) +-fi ++PKG_PROG_PKG_CONFIG + + PKG_CHECK_MODULES(NEMO, libnemo-extension >= $NEMO_REQUIRED) + PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) diff --minimal -Nru nemo-fileroller-3.0.0/debian/patches/series nemo-fileroller-3.0.0/debian/patches/series --- nemo-fileroller-3.0.0/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ nemo-fileroller-3.0.0/debian/patches/series 2016-11-09 19:07:53.000000000 +0100 @@ -0,0 +1 @@ +cross.patch

