Source: halibut Version: 1.3-3 Tags: patch User: [email protected] Usertags: ftcbfs
halibut fails to cross build from source, because its native build pass reuses the compiler flags earlier determined for the host architecture. When building for arm64, an amd64 compiler does not like e.g. -mbranch-protection=standard. In order to change this, we should pass --reload-all-buildenv-variables to debhelper. While at it, I also suggest using dpkg-architecture to change all of the architecture variables such that e.g. DEB_HOST_ARCH would be consistent with DEB_HOST_GNU_TYPE. Please find a patch attached for your convenience. Helmut
diff -Nru halibut-1.3/debian/changelog halibut-1.3/debian/changelog --- halibut-1.3/debian/changelog 2025-09-01 02:12:53.000000000 +0200 +++ halibut-1.3/debian/changelog 2025-10-01 10:32:11.000000000 +0200 @@ -1,3 +1,10 @@ +halibut (1.3-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Don't mix host flags and build compiler. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 01 Oct 2025 10:32:11 +0200 + halibut (1.3-3) unstable; urgency=medium * Apply X-Style: black. diff -Nru halibut-1.3/debian/rules halibut-1.3/debian/rules --- halibut-1.3/debian/rules 2025-09-01 02:12:53.000000000 +0200 +++ halibut-1.3/debian/rules 2025-10-01 10:31:54.000000000 +0200 @@ -25,16 +25,16 @@ # more awkward.) override_dh_auto_configure: dh_auto_configure -- $(cmakeflags) - DEB_HOST_GNU_TYPE=$(DEB_BUILD_GNU_TYPE) dh_auto_configure -- \ + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_configure --reload-all-buildenv-variables -- \ $(cmakeflags) override_dh_auto_build: dh_auto_build - DEB_HOST_GNU_TYPE=$(DEB_BUILD_GNU_TYPE) dh_auto_build + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build override_dh_auto_clean: dh_auto_clean - DEB_HOST_GNU_TYPE=$(DEB_BUILD_GNU_TYPE) dh_auto_clean + dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_clean override_dh_auto_install: dh_auto_install

