[Debian-med-packaging] Bug#978059: spaln FTCBFS: builds for the build architecture
Helmut Grohne
helmut at subdivi.de
Thu Dec 24 13:51:18 GMT 2020
Source: spaln
Version: 2.4.1+dfsg-2
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
spaln fails to cross build from source, because it builds for the build
architecture. The build system expects a user to export cross tools at
configure time to use them. We can mostly leverage dpkg's buildtools.mk
for that except for the AR variable which has non-standard content. Even
then, it cannot be cross built, because it needs to run a ./makmdm. I
haven't investigated this yet, but maybe it can be skipped in an
arch-only build? In the mean time, please consider applying the attached
patch and close this bug when doing so.
Helmut
-------------- next part --------------
diff --minimal -Nru spaln-2.4.1+dfsg/debian/changelog spaln-2.4.1+dfsg/debian/changelog
--- spaln-2.4.1+dfsg/debian/changelog 2020-12-09 11:37:48.000000000 +0100
+++ spaln-2.4.1+dfsg/debian/changelog 2020-12-24 13:44:57.000000000 +0100
@@ -1,3 +1,10 @@
+spaln (2.4.1+dfsg-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Improve cross building: Supply cross tools. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 24 Dec 2020 13:44:57 +0100
+
spaln (2.4.1+dfsg-2) unstable; urgency=medium
* Team upload.
diff --minimal -Nru spaln-2.4.1+dfsg/debian/rules spaln-2.4.1+dfsg/debian/rules
--- spaln-2.4.1+dfsg/debian/rules 2020-12-09 11:37:48.000000000 +0100
+++ spaln-2.4.1+dfsg/debian/rules 2020-12-24 13:44:57.000000000 +0100
@@ -2,6 +2,9 @@
export DH_VERBOSE = 1
include /usr/share/dpkg/default.mk
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
+
datapkg=$(DEB_SOURCE)-data
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -17,7 +20,7 @@
dh $@
override_dh_auto_configure:
- cd src && ./configure --exec_prefix=$(exec_prefix)
+ cd src && AR="${AR} rc" ./configure --exec_prefix=$(exec_prefix)
override_dh_auto_build:
$(MAKE) table_dir=$(table_dir) alndbs_dir=$(alndbs_dir) exec_prefix=$(exec_prefix) -C src
More information about the Debian-med-packaging
mailing list