Source: pax Version: 1:20161031-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
pax fails to cross build from source, because it uses the build architecture compiler. Supplying a triplet-prefixed CC fixes the build. Please consider applying the attached patch. Helmut
diff --minimal -Nru pax-20161031/debian/changelog pax-20161031/debian/changelog --- pax-20161031/debian/changelog 2016-10-31 17:42:24.000000000 +0100 +++ pax-20161031/debian/changelog 2016-11-01 19:12:08.000000000 +0100 @@ -1,3 +1,10 @@ +pax (1:20161031-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use triplet-prefixed compiler (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 01 Nov 2016 19:11:53 +0100 + pax (1:20161031-1) unstable; urgency=high * New upstream version (CVE-2016-6321) diff --minimal -Nru pax-20161031/debian/rules pax-20161031/debian/rules --- pax-20161031/debian/rules 2016-10-31 17:42:17.000000000 +0100 +++ pax-20161031/debian/rules 2016-11-01 19:12:49.000000000 +0100 @@ -2,8 +2,11 @@ DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_ARCH_OS=$(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -CC?= gcc +ifeq ($(origin CC),default) +CC= $(DEB_HOST_GNU_TYPE)-gcc +endif EXTRA_CPPFLAGS= -DPAX_SAFE_PATH=\"/usr/bin:/bin\" EXTRA_CFLAGS= -Wall -Wextra -Wformat -fno-strict-aliasing EXTRA_LDFLAGS= -Wl,--as-needed