#1147498 d-shlibs: d-devlibdeps fails when gfortran is not installed

Package:
d-shlibs
Source:
d-shlibs
Submitter:
Rafael Laboissière
Date:
2026-09-12 21:05:02 UTC
Severity:
normal
Tags:
#1147498#5
Date:
2026-09-12 12:26:04 UTC
From:
To:
Dear Maintainer,

A recent change to the package (commit c23225c5 [1]) seems to be causing FTBFS for gmhh, jellyfish, an link-grammar, at least. These packages invoke d-shlibmove in their debian/rules.

I believe that the culprit is this line in the d-devlibdeps script:

    GFORTRAN_DEV=$(command -v gfortran > /dev/null 2>&1 \
        && echo "libgfortran-$(gfortran -dumpversion | cut -d. -f1)-dev")

Although the existence of the gfortran command is asserted (via the "command" command), the script runs under "set -e" and the failure in the command substitution above appears to cause the entire script to fail silently. I am not 100% sure of this diagnosis, because d-shlibs scripts are too convoluted for easy debugging.

In any case, the problem disappears when gfortran is installed.

Best,

Rafael Laboissière

[1] https://salsa.debian.org/debian/d-shlibs/-/commit/c23225c5eba289587a3f709a30f0b32cefacb28f

#1147498#12
Date:
2026-09-12 13:18:38 UTC
From:
To:
* Rafael Laboissière <rafael@debian.org> [2026-09-12 14:26]:
https://salsa.debian.org/debian/d-shlibs/-/tree/absent-gfortran?ref_type=heads

I would gladly submit a merge request, but they are currently disabled for this project.

Best,

Rafael Laboissière

#1147498#19
Date:
2026-09-12 16:00:43 UTC
From:
To:
affects 1147498 = src:ghmm src:jellyfish src:link-grammar src:scikit-bio-binaries
thanks

Thanks a lot for looking at this!

I'm adding "scikit-bio-binaries" to affects as it looks very similar.

[ Also, I'm using "src:" for affects, the idea is that a build failure
  is a bug in the source package as a whole, not a bug in any of its
  individual binary packages ]

Thanks.

#1147498#26
Date:
2026-09-12 21:04:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
d-shlibs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1147498@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated d-shlibs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 12 Sep 2026 22:33:47 +0200
Source: d-shlibs
Architecture: source
Version: 0.111
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Andreas Tille <tille@debian.org>
Closes: 1147498
Changes:
 d-shlibs (0.111) unstable; urgency=medium
 .
   [ Rafael Laboissière ]
   * Avoid failure of d-devlibdeps when gfortran is not installed.
     Closes: #1147498
 .
   [ Andreas Tille ]
   * debhelper-compat (= 14)
Checksums-Sha1:
 9451d000986f76b675cbc70f531774637588c34a 1778 d-shlibs_0.111.dsc
 9ae9634406c8f2842feb097773711101553269af 26120 d-shlibs_0.111.tar.xz
 165b5afcbd97f320a0c16ac6a5d16383b40e3420 5683 d-shlibs_0.111_amd64.buildinfo
Checksums-Sha256:
 3ccde217120f3fdc1e19d0ea6e4e5ed8f4db304ec50ef9b7de77f5de31dc9290 1778 d-shlibs_0.111.dsc
 413c9a5a8dbaa4a7d025f77991829abbd3d9f9c882d1f1838517142a2b254913 26120 d-shlibs_0.111.tar.xz
 34ed41242b9480b2c21e3c3eb1a9dc03e36506cf537455a3af784e8a1b2bd515 5683 d-shlibs_0.111_amd64.buildinfo
Files:
 9c6078bd2b14900dff022b3965b64ebf 1778 utils optional d-shlibs_0.111.dsc
 67e4117aed17b0f94809b6f3c78110bd 26120 utils optional d-shlibs_0.111.tar.xz
 ee0994011d1b046fb0c9c0bdd45083ad 5683 utils optional d-shlibs_0.111_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmqlt28RHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFTsA//STx+uEZq5D9KxW3+HWjmYoh2rK5xFYmG
VI0AR0kl2QlxCmAD1g2AEMjHOuHvPUI+fwbDuhD1cLCZple9YKh0zE4v4Ujn+Et7
jSTqlvQ3o/UUVe0mMWy5TgBkQjUJpOQt7MP7FI4ONpc0c2P90yAfWZTkRiMFWcqf
jovQ5jRxEwI3gacyZHQVv36GAaRoKEoTIaU8i/KlBaJGukD08tia+utGk+dtV/wN
QHJbhsvzlY6SlkLRKNpPdPFaLAcRDmZlS+xxeY4PkcR7Zx2OlUtZfhga3J7Lzm1n
ny7R0tkt5hUt5BLfBXBgEk1W+knHchDa0MpIttwUFDG2VIxJL45nUhHekuARRRW1
6Pv3EnODoVrSyC806xwSRFTv5Mv2OKuzRWEbITXypZxjuLY0h+OUjKreEEwFiIhx
puPcek6lWol02S+nk2tnE1w7t4fgG3kRj3PTlmO9KFfUYxYQkC29lXwiWpT0YMdO
eBnjlp4Bt0dHv0y3n7JshaRNBaFPzPY2gKwc1+fuMU7zqYZUfLxfrEs3nNf43cUk
9sFfgOCoOyfk3KPvLbXssR4Yvi16rFLk68V3m6Cq1cK37tzgsaFL/Bi7dEKeWNDx
3ssZten7bCWSVeE66+LVVVDaMB0KlHjI3qSdSwOLLMd7aaQwkCGJBJ1/iHVmhAU4
QlDNrtHdspM=
=EFct
-----END PGP SIGNATURE-----