Bug#1108101: librsb FTCBFS: unsatisfiable toolchain dependencies

Helmut Grohne helmut at subdivi.de
Fri Jun 20 11:59:25 BST 2025


Source: librsb
Version: 1.3.0.2+dfsg-7
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability

The toolchain dependencies on gcc and gfortran cannot be satisfied
during cross compilation. The gcc one is always satisfied natively,
because gcc is build essential and the version lacks the epoch.
Accounting for the epoch, it would be satisfied in bookworm. Hence I
suggest dropping it. For the gfortran dependency, we need to add a
"-for-host" suffix. At that point, we must prefix the compiler with the
host architecture even for native builds. dpkg's buildtools.mk may be
used to initialize suitable environment variables. Consider applying the
attached patch for forky.

Helmut
-------------- next part --------------
diff -Nru librsb-1.3.0.2+dfsg/debian/changelog librsb-1.3.0.2+dfsg/debian/changelog
--- librsb-1.3.0.2+dfsg/debian/changelog	2024-12-01 20:07:13.000000000 +0100
+++ librsb-1.3.0.2+dfsg/debian/changelog	2025-06-20 11:58:02.000000000 +0200
@@ -1,3 +1,13 @@
+librsb (1.3.0.2+dfsg-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Drop versioned gcc dependency accidentally satisfied in jessie.
+    + Annotate gfortran dependency with -for-host and let dpkg's
+      buildtools.mk export triple-prefixed tool variables.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 20 Jun 2025 11:58:02 +0200
+
 librsb (1.3.0.2+dfsg-7) unstable; urgency=medium
 
   * Acknowledge NMUs. Thanks Steve and Benjamin!
diff -Nru librsb-1.3.0.2+dfsg/debian/control librsb-1.3.0.2+dfsg/debian/control
--- librsb-1.3.0.2+dfsg/debian/control	2024-12-01 20:07:13.000000000 +0100
+++ librsb-1.3.0.2+dfsg/debian/control	2025-06-20 11:57:41.000000000 +0200
@@ -4,8 +4,7 @@
 Uploaders: Rafael Laboissi?re <rafael at debian.org>
 Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 13),
                doxygen-latex,
-               gcc (>= 12),
-               gfortran,
+               gfortran-for-host,
                help2man,
                libhwloc-dev,
                zlib1g-dev
diff -Nru librsb-1.3.0.2+dfsg/debian/rules librsb-1.3.0.2+dfsg/debian/rules
--- librsb-1.3.0.2+dfsg/debian/rules	2024-12-01 20:07:13.000000000 +0100
+++ librsb-1.3.0.2+dfsg/debian/rules	2025-06-20 11:57:59.000000000 +0200
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 
 include /usr/share/dpkg/architecture.mk
+DPKG_EXPORT_BUILDTOOLS := 1
+include /usr/share/dpkg/buildtools.mk
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 armel armhf mips mips64el mipsel hppa kfreebsd-amd64 kfreebsd-i386 sparc64))
   CACHE_FLAG = --with-memhinfo=L2:4/64/512K,L1:8/64/24K


More information about the debian-science-maintainers mailing list