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

2026-09-12 Thread Santiago Vila
affects 1147498 = src:ghmm src:jellyfish src:link-grammar 
src:scikit-bio-binaries
thanks

On Sat, Sep 12, 2026 at 02:26:04PM +0200, Rafael Laboissière wrote:
> Package: d-shlibs
> Version: 0.110
> Severity: serious
> X-Debbugs-Cc: Andreas Tille 
> Control: affects -1 ghmm jellyfish link-grammar
> 
> 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")

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.



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

2026-09-12 Thread Rafael Laboissière
Control: tags -1 + patch

* Rafael Laboissière  [2026-09-12 14:26]:

> Package: d-shlibs
> Version: 0.110
> Severity: serious
> X-Debbugs-Cc: Andreas Tille 
> Control: affects -1 ghmm jellyfish link-grammar
>
> 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

I proposed a patch to fix the issue in the absent-gfortran branch of the 
d-shlibs project on Salsa:
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



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

2026-09-12 Thread Rafael Laboissière
Package: d-shlibs
Version: 0.110
Severity: serious
X-Debbugs-Cc: Andreas Tille 
Control: affects -1 ghmm jellyfish link-grammar

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