Source: axc Version: 0.3.6-1 Tags: patch User: [email protected] Usertags: ftcbfs
axc now cross builds successfully, but the resulting .deb is so broken that we classify it as build failure. It uses build architecture multiarch paths instead of host architecture ones. The reason is rooted in gcc -print-multiarch, which prints the build architecture multiarch. We need to use the host architecture multiarch there. Please consider applying the attached patch. Helmut
diff --minimal -Nru axc-0.3.6/debian/changelog axc-0.3.6/debian/changelog --- axc-0.3.6/debian/changelog 2021-09-17 17:55:04.000000000 +0200 +++ axc-0.3.6/debian/changelog 2021-09-19 09:39:18.000000000 +0200 @@ -1,3 +1,10 @@ +axc (0.3.6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Consistently use the host architecture compiler. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sun, 19 Sep 2021 09:39:18 +0200 + axc (0.3.6-1) unstable; urgency=medium * New upstream version 0.3.6 diff --minimal -Nru axc-0.3.6/debian/patches/cross.patch axc-0.3.6/debian/patches/cross.patch --- axc-0.3.6/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ axc-0.3.6/debian/patches/cross.patch 2021-09-19 09:39:18.000000000 +0200 @@ -0,0 +1,11 @@ +--- axc-0.3.6.orig/Makefile ++++ axc-0.3.6/Makefile +@@ -6,7 +6,7 @@ + MKDIR_P = mkdir -p + CMAKE ?= cmake + CMAKE_FLAGS = -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fPIC +-ARCH := $(shell gcc -print-multiarch) ++ARCH := $(shell $(CC) -print-multiarch) + VER_MAJ = 0 + VERSION = 0.3.6 + diff --minimal -Nru axc-0.3.6/debian/patches/series axc-0.3.6/debian/patches/series --- axc-0.3.6/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ axc-0.3.6/debian/patches/series 2021-09-19 09:39:08.000000000 +0200 @@ -0,0 +1 @@ +cross.patch diff --minimal -Nru axc-0.3.6/debian/rules axc-0.3.6/debian/rules --- axc-0.3.6/debian/rules 2021-08-15 12:37:54.000000000 +0200 +++ axc-0.3.6/debian/rules 2021-09-19 09:39:18.000000000 +0200 @@ -1,6 +1,8 @@ #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS= hardening=+all +DPKG_EXPORT_BUILDTOOLS=1 +-include /usr/share/dpkg/buildtools.mk %: dh $@

