Source: xarchiver Version: 1:0.5.4-4 Tags: patch User: helm...@debian.org Usertags: rebootstrap
xarchiver fails to cross build from source, because it uses the build architecture pkg-config and thus fails to find gtk. The method for detecting pkg-config is kinda ancient and recent autoconf macros would just find the right pkg-config. Instead of modernizing the build system, I opted for the simple way and override it via the corresponding environment variable. The attached patch makes xarchiver cross build just fine. Please consider applying it. Helmut
diff --minimal -Nru xarchiver-0.5.4/debian/changelog xarchiver-0.5.4/debian/changelog --- xarchiver-0.5.4/debian/changelog 2016-04-25 20:29:23.000000000 +0200 +++ xarchiver-0.5.4/debian/changelog 2016-09-25 22:46:16.000000000 +0200 @@ -1,3 +1,10 @@ +xarchiver (1:0.5.4-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: export triplet-prefixed PKG_CONFIG. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 25 Sep 2016 22:45:57 +0200 + xarchiver (1:0.5.4-4) unstable; urgency=medium * No change rebuild. diff --minimal -Nru xarchiver-0.5.4/debian/rules xarchiver-0.5.4/debian/rules --- xarchiver-0.5.4/debian/rules 2016-04-25 20:29:23.000000000 +0200 +++ xarchiver-0.5.4/debian/rules 2016-09-25 22:45:54.000000000 +0200 @@ -1,6 +1,8 @@ #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +include /usr/share/dpkg/architecture.mk +export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config %: dh $@ --parallel --with autotools_dev