Source: paxtest Version: 1:0.9.15-2 Tags: patch User: [email protected] Usertags: ftcbfs
paxtest fails to cross build from source, because it does not pass cross tools to make. The easiest way of doing so is using dh_auto_build. In addition, it confuses the terms build and host. Please refer to man dpkg-architecture for a definition of these. The attached patch fixes both and makes paxtest cross buildable. Please consider applying it. Helmut
diff --minimal -Nru paxtest-0.9.15/debian/changelog paxtest-0.9.15/debian/changelog --- paxtest-0.9.15/debian/changelog 2020-05-11 13:56:48.000000000 +0200 +++ paxtest-0.9.15/debian/changelog 2020-05-13 06:35:03.000000000 +0200 @@ -1,3 +1,12 @@ +paxtest (1:0.9.15-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + Fix the build/host confusion. + + -- Helmut Grohne <[email protected]> Wed, 13 May 2020 06:35:03 +0200 + paxtest (1:0.9.15-2) unstable; urgency=medium * Remove linux-kernel-headers from dependencies (Closes: #959460) diff --minimal -Nru paxtest-0.9.15/debian/rules paxtest-0.9.15/debian/rules --- paxtest-0.9.15/debian/rules 2016-04-30 16:40:57.000000000 +0200 +++ paxtest-0.9.15/debian/rules 2020-05-13 06:35:01.000000000 +0200 @@ -20,6 +20,8 @@ BINDIR=/usr/bin export BINDIR +include /usr/share/dpkg/architecture.mk + ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif @@ -31,13 +33,13 @@ dh $@ --with quilt override_dh_auto_build: -ifeq ($(DEB_BUILD_ARCH), i386) - $(MAKE) -f Makefile linux32 +ifeq ($(DEB_HOST_ARCH), i386) + dh_auto_build -- linux32 else -ifeq ($(DEB_BUILD_ARCH), amd64) - $(MAKE) -f Makefile linux64 +ifeq ($(DEB_HOST_ARCH), amd64) + dh_auto_build -- linux64 else - $(MAKE) -f Makefile linux + dh_auto_build -- linux endif endif /usr/bin/docbook-to-man debian/paxtest.sgml > paxtest.1

