Bug#1051366: liblouisutdml FTCBFS: passes host cflags to native build

Helmut Grohne helmut at subdivi.de
Wed Sep 6 09:11:40 BST 2023


Source: liblouisutdml
Version: 2.11.0-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

liblouisutdml started failing to cross build from source as dpkg
introduced arm64-specific compiler flags. The packaging passes the
host's cflags to the native build, which may not understand them. This
can easily avoided by asking debhelper to recompute the flags after
changing the architecture. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff --minimal -Nru liblouisutdml-2.11.0/debian/changelog liblouisutdml-2.11.0/debian/changelog
--- liblouisutdml-2.11.0/debian/changelog	2023-06-21 10:04:56.000000000 +0200
+++ liblouisutdml-2.11.0/debian/changelog	2023-09-06 10:07:26.000000000 +0200
@@ -1,3 +1,10 @@
+liblouisutdml (2.11.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not pass host cflags to native build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 06 Sep 2023 10:07:26 +0200
+
 liblouisutdml (2.11.0-3) unstable; urgency=medium
 
   * control, rules: Support hurd-amd64.
diff --minimal -Nru liblouisutdml-2.11.0/debian/rules liblouisutdml-2.11.0/debian/rules
--- liblouisutdml-2.11.0/debian/rules	2023-05-06 17:51:50.000000000 +0200
+++ liblouisutdml-2.11.0/debian/rules	2023-09-06 10:07:25.000000000 +0200
@@ -19,7 +19,7 @@
 
 override_dh_auto_configure:
 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
-	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure -- --disable-java-bindings
+	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure --reload-all-buildenv-variables -- --disable-java-bindings
 	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build
 	dh_auto_clean
 endif


More information about the Pkg-a11y-devel mailing list