[Debian-med-packaging] Bug#1063998: bart FTCBFS: rebuilds during dh_auto_install
Helmut Grohne
helmut at subdivi.de
Thu Feb 15 10:01:45 GMT 2024
Source: bart
Version: 0.9.00-2
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
bart fails to cross build from source, because it repeforms some of the
compilation and link steps during dh_auto_install where debhelper does
not pass cross tools. These steps fail (due to using the wrong
toolchain). Rather than figure out why it is rebuilding during
dh_auto_install, I suggest exporting all the build tools for all targets
as that's easy to do. I'm attaching a patch for your convenience.
Alternatively, you may change the upstream build system to avoid such
rebuilds at make install time.
Helmut
-------------- next part --------------
diff --minimal -Nru bart-0.9.00/debian/changelog bart-0.9.00/debian/changelog
--- bart-0.9.00/debian/changelog 2023-12-11 18:42:37.000000000 +0100
+++ bart-0.9.00/debian/changelog 2024-02-15 09:31:27.000000000 +0100
@@ -1,3 +1,10 @@
+bart (0.9.00-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Also export cross tools for make install. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 15 Feb 2024 09:31:27 +0100
+
bart (0.9.00-2) unstable; urgency=medium
* Turn off other unit tests on i386 but activate ode_bloch for the rest.
diff --minimal -Nru bart-0.9.00/debian/rules bart-0.9.00/debian/rules
--- bart-0.9.00/debian/rules 2023-12-11 18:42:37.000000000 +0100
+++ bart-0.9.00/debian/rules 2024-02-15 09:31:26.000000000 +0100
@@ -2,7 +2,9 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
-DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+include /usr/share/dpkg/architecture.mk
+DPKG_EXPORT_BUILDTOOLS=1
+-include /usr/share/dpkg/buildtools.mk
# set installation prefix
export PREFIX=/usr/
More information about the Debian-med-packaging
mailing list