Bug#1018009: coinor-cbc FTCBFS: configures for the build architecture
Helmut Grohne
helmut at subdivi.de
Wed Aug 24 05:11:28 BST 2022
Source: coinor-cbc
Version: 2.10.8+ds1-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
coinor-cbc fails to cross build from source, because it does not pass
--host to ./configure. The easiest way of doing so - using
dh_auto_configure - is unfortunately not applicable, because ./configure
does not understand --runstatedir. That's probably the reason why it
isn't being used. So the next best thing is passing the flag (together
with --build) explicitly. If you happen to switch to dh_auto_configure
later for a newer configure, you can drop them. The other issue is hard
coding the build architecture strip. Once fixing both, coinor-cbc cross
builds. Please consider applying the attached patch.
Helmut
-------------- next part --------------
--- coinor-cbc-2.10.8+ds1/debian/changelog
+++ coinor-cbc-2.10.8+ds1/debian/changelog
@@ -1,3 +1,12 @@
+coinor-cbc (2.10.8+ds1-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Pass --host to ./configure.
+ + Use the host architecture strip.
+
+ -- Helmut Grohne <helmut at subdivi.de> Wed, 24 Aug 2022 06:07:02 +0200
+
coinor-cbc (2.10.8+ds1-1) unstable; urgency=medium
* New upstream release.
--- coinor-cbc-2.10.8+ds1/debian/rules
+++ coinor-cbc-2.10.8+ds1/debian/rules
@@ -2,6 +2,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
%:
@@ -16,12 +17,13 @@
override_dh_auto_configure:
./configure --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
+ --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
--enable-static --enable-cbc-parallel --enable-dot --enable-dependency-linking
override_dh_strip:
dh_strip
find . -name '*.a' \( \! -name '*_g.a' \) \
- -exec strip --strip-debug \
+ -exec $(STRIP) --strip-debug \
--remove-section=.comment \
--remove-section=.note {} \;
More information about the debian-science-maintainers
mailing list