Bug#1086688: coinutils FTCBFS: gfortran dependency not satisfiable
Helmut Grohne
helmut at subdivi.de
Sun Nov 3 20:33:12 GMT 2024
Source: coinutils
Version: 2.11.11+ds-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability
coinutils cannot be cross built from source, because its gfortran
dependency is not satisfiable. It needs "toolchain dependency cross
translation" which has been an unsolved problem for a long time, but
since earlier this year, we may write "gfortran-for-host". Once doing
so, coinutils fails building natively, because gfortran-for-host only
provides an architecture-qualified gfortran. Thus exporting F77 is
required for using this dependency. I'm attaching a patch for your
convenience.
Helmut
-------------- next part --------------
diff --minimal -Nru coinutils-2.11.11+ds/debian/changelog coinutils-2.11.11+ds/debian/changelog
--- coinutils-2.11.11+ds/debian/changelog 2024-10-26 08:07:17.000000000 +0200
+++ coinutils-2.11.11+ds/debian/changelog 2024-11-03 21:24:25.000000000 +0100
@@ -1,3 +1,10 @@
+coinutils (2.11.11+ds-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Translate gfortran dependency to gfortran-for-host. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 03 Nov 2024 21:24:25 +0100
+
coinutils (2.11.11+ds-1) unstable; urgency=medium
* Move from experimental to unstable.
diff --minimal -Nru coinutils-2.11.11+ds/debian/control coinutils-2.11.11+ds/debian/control
--- coinutils-2.11.11+ds/debian/control 2024-10-26 08:07:17.000000000 +0200
+++ coinutils-2.11.11+ds/debian/control 2024-11-03 21:19:17.000000000 +0100
@@ -4,7 +4,7 @@
Section: science
Priority: optional
Build-Depends: debhelper-compat (= 13),
- gfortran,
+ gfortran-for-host,
libbz2-dev,
liblapack-dev,
zlib1g-dev,
diff --minimal -Nru coinutils-2.11.11+ds/debian/rules coinutils-2.11.11+ds/debian/rules
--- coinutils-2.11.11+ds/debian/rules 2024-10-26 08:07:17.000000000 +0200
+++ coinutils-2.11.11+ds/debian/rules 2024-11-03 21:24:25.000000000 +0100
@@ -4,10 +4,15 @@
include /usr/share/dpkg/architecture.mk
+ifeq ($(origin F77),default)
+F77 := $(DEB_HOST_GNU_TYPE)-gfortran
+endif
+
%:
dh $@ --without autoreconf
override_dh_auto_configure:
+ F77='$(F77)' \
./configure --prefix=/usr --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \
--enable-static --enable-dot --enable-dependency-linking
More information about the debian-science-maintainers
mailing list