Bug#1125262: dh-fortran: dh_fortran_* commands do not honor the debhelper -O option
Rafael Laboissière
rafael at debian.org
Sun Jan 11 15:27:31 GMT 2026
Package: dh-fortran
Version: 0.62
Severity: normal
Dear Maintainer,
According to the debhelper man page:
-O=option|bundle
This is used by dh(1) when passing user-specified options to
all the commands it runs. If the command supports the specified
option or option bundle, it will take effect. If the command
does not support the option (or any part of an option bundle),
it will be ignored.
Indeed, it seems that the dh_* commands, including those from
debhelper add-on packages (like dh-octave, dh-php and dh-lisp, to name
a few), honor the -O option.
However, this is not the case for the dh_fortran_* commands. So, please fix this.
This is particularly annoying for the plplot package. Currently, I
have to add the following to debian/rules, in order to circumvent the
bug:
override_dh_fortran_lib:
dh_fortran_lib
override_dh_fortran_pkgconf:
dh_fortran_pkgconf
override_dh_fortran_cmake:
dh_fortran_cmake
override_dh_fortran_mod:
dh_fortran_mod
This is necessary, because of the following rule:
%:
dh $@ -Scmake --with python3,ocaml --with fortran_mod --with javahelper
Best,
Rafael
More information about the debian-science-maintainers
mailing list