Source: dh-fortran
Version: 0.85
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear Maintainer,
get_fc_flavor_arch() maps "gfortran" to "gfortran-16" before checking
what's installed, so /usr/bin/gfortran is discarded before it's ever
looked at. The fallback then retries the same hardcoded name, so if
gfortran-16 isn't installed there's no way out:
Error: fc compiler gfortran is broken; bad symlink or missing install?
compiler_present() a few lines up does the same lookup the other way
round, which(f) first, table only as a fallback. One of the two is wrong.
For now the table happens to match the default gfortran, so this stays
hidden. It breaks whenever the two drift apart. On Ubuntu, where the
default is still 15, eccodes 2.48.1-1 dies in debian/rules clean. The
same will happen here when the default gfortran moves to 17.
Trying which(f) first fixes it, and the function already has the symlink
and triplet handling to resolve /usr/bin/gfortran correctly:
fullpath = which(f)
if fullpath is None and f in default_compilers:
fullpath = which(default_compilers[f])
if fullpath is None:
fullpath = which(default_compilers['gfortran'])
Thanks,
Nadzeya
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEuVOE/FJ0HcdfWSw//lAdKwFeZPsFAmqYN74ACgkQ/lAdKwFe
ZPsvbQ/9HTkHBwhUREIzb7AQPwRxUuMD9YvFjpQ5m47xfjaZ7dqaxx1vY6EzDizL
WeFiNr1+knk0OqoNe2pyRJgwYN0bJkkkGyLZxCEb05A/kSn14QyxNgyXYKX0Y+Us
7+lOH9QwWyT0IvltGiIKzwXYtvdCezhwMP/YMfmqajoXJ0mAnzZ4C7rNRjj3xOch
wXZQ5DXodkKijAS5x5NSn5/skXgH3+lA5hKkKafOuhhrw29xepcut1pGxPLa17ef
Q43JWqrsvab61VmYuUw3t7xAkLiJdHHQaaAs3oaVgrz9Fu31iSFJ86owkLx6HDs/
pHF5NNcysDrQZcvLqJMPEoIdEf8RiGPyLMRuknRAGU1dRq5jS3TJsJqvUAogooLA
fPJRTQ9Ued0rlKn5KZqgdyy1kO1XGakadgWINfBVfdgUXZ+dJSwFT4KvGY2eFciY
KBF6x9KXC0wMem2YcOuXPUFtZUFvzLJXKwfZYunUhVHn2omjjhILZiuKeDfN3wWb
ZGgdUFwvArec5MUEnuDCmjrEBCo68apdGU9TbK5mPvx67YL3RhRtWLm4jIpLb94X
KMj3JydOiyA/rfYx9BlKlDoMmrz6tOusnIAHiD3GnrwAawUsv+VpO3d6Ef+F15PT
EF6Kv3WX8JiO0wE2nF7HtdspP8GEadMTMXYiIEvTdK2eeQdzxo8=
=Iudq
-----END PGP SIGNATURE-----
--
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers