Source: liblouis Version: 3.27.0-1 Tags: patch User: [email protected] Usertags: ftcbfs
liblouis fails to cross build from source. The cause for this is a change in buildflags that dpkg emits. These have become architecture-dependent recently and e.g. amd64 injects -fcf-protection while arm64 injects -mbranch-protection=standard neither of which is understood by the other. Hence, we must tell dh_auto_configure to pass the right ones explicitly when changing the architecture. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru liblouis-3.27.0/debian/changelog liblouis-3.27.0/debian/changelog --- liblouis-3.27.0/debian/changelog 2023-09-12 21:14:18.000000000 +0200 +++ liblouis-3.27.0/debian/changelog 2023-12-01 10:14:01.000000000 +0100 @@ -1,3 +1,10 @@ +liblouis (3.27.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Recompute build flags for native build. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Fri, 01 Dec 2023 10:14:01 +0100 + liblouis (3.27.0-1) unstable; urgency=medium * New upstream release. diff --minimal -Nru liblouis-3.27.0/debian/rules liblouis-3.27.0/debian/rules --- liblouis-3.27.0/debian/rules 2022-07-25 00:52:15.000000000 +0200 +++ liblouis-3.27.0/debian/rules 2023-12-01 10:14:00.000000000 +0100 @@ -24,7 +24,7 @@ override_dh_auto_configure: ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) - dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure -- --enable-ucs4 + dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure --reload-all-buildenv-variables -- --enable-ucs4 dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build dh_auto_clean endif

