Source: phasex Version: 0.14.97-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
phasex fails to cross build from source, because it confuses build and host architecture. For instance, when cross building from amd64 to ppc64el, it passes --enable-amd64. The attached patch fixes that and makes phasex cross build successfully. Please consider applying it. Helmut
diff --minimal -Nru phasex-0.14.97/debian/changelog phasex-0.14.97/debian/changelog --- phasex-0.14.97/debian/changelog 2013-05-27 05:23:10.000000000 +0200 +++ phasex-0.14.97/debian/changelog 2018-06-28 07:11:10.000000000 +0200 @@ -1,3 +1,10 @@ +phasex (0.14.97-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: fix build/host confusion. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 28 Jun 2018 07:11:10 +0200 + phasex (0.14.97-2) unstable; urgency=low * Upload to unstable. diff --minimal -Nru phasex-0.14.97/debian/rules phasex-0.14.97/debian/rules --- phasex-0.14.97/debian/rules 2013-01-13 18:15:10.000000000 +0100 +++ phasex-0.14.97/debian/rules 2018-06-28 07:11:08.000000000 +0200 @@ -1,8 +1,8 @@ #!/usr/bin/make -f -DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +include /usr/share/dpkg/architecture.mk -ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH))) +ifneq (,$(findstring amd64,$(DEB_HOST_ARCH))) DEB_CONFIGURE_FLAGS_EXTRA=--enable-arch=amd64 endif