#1107055 fftw3 FTCBFS: gfortran dependency not satisfiable

Package:
src:fftw3
Source:
src:fftw3
Submitter:
Helmut Grohne
Date:
2025-05-31 20:17:01 UTC
Severity:
normal
Tags:
#1107055#5
Date:
2025-05-31 16:32:21 UTC
From:
To:
fftw3 fails to cross build from source, because its gfortran dependency
is not cross-satisfiable. Generally bare toolchain names cannot be used
for cross compilation, because they do not indicate whether they're
meant for the build or host architecture. In this case,
gfortran-for-host is what is needed.

However, gfortran-for-host cannot provide the bare "gfortran" name.
"${DEB_HOST_GNU_TYPE}-gfortran" must be used instead. We looked for
alternatives and they all regressed some use case. That said using
triplet-prefixed tools is explicit and works reliably even when building
natively.

I'm attaching a patch for your convenience, but I think applying it
should be deferred to forky.

Helmut