Bug#1078694: openctm FTCBFS: native build picks up host flags such as -mbranch-protection=standard when cross compiling for arm64 on amd64

Helmut Grohne helmut at subdivi.de
Wed Aug 14 13:10:54 BST 2024


Source: openctm
Version: 1.0.3+dfsg1-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

openctm fails to cross build from source due to a change in default
build flags. We now have more architecture-specific build flags and an
amd64 compiler is no longer happy with arm64 build flags. Therefore, we
must recompute the build flags for the native pass in openctm rather
than reusing the host flags. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/changelog openctm-1.0.3+dfsg1/debian/changelog
--- openctm-1.0.3+dfsg1/debian/changelog	2023-08-12 00:35:47.000000000 +0200
+++ openctm-1.0.3+dfsg1/debian/changelog	2024-08-14 13:53:10.000000000 +0200
@@ -1,3 +1,10 @@
+openctm (1.0.3+dfsg1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Recompute build flags for native pass (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 14 Aug 2024 13:53:10 +0200
+
 openctm (1.0.3+dfsg1-3) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru openctm-1.0.3+dfsg1/debian/rules openctm-1.0.3+dfsg1/debian/rules
--- openctm-1.0.3+dfsg1/debian/rules	2023-08-12 00:35:47.000000000 +0200
+++ openctm-1.0.3+dfsg1/debian/rules	2024-08-14 13:53:09.000000000 +0200
@@ -26,7 +26,7 @@
 	tar -jcf openctm_$(DEBVERSION).orig.tar.bz2 $(TDIR)
 
 override_dh_auto_build:
-	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build --buildsystem=makefile --sourcedirectory=tools -- -f Makefile.linux bin2c
+	dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build --buildsystem=makefile --sourcedirectory=tools --reload-all-buildenv-variables -- -f Makefile.linux bin2c
 	dh_auto_build
 
 override_dh_compress:


More information about the debian-science-maintainers mailing list