Package: libhdf4-dev Version: 4.4.0-1 Severity: wishlist X-Debbugs-Cc: [email protected]
The package builds the HDF4 C libraries but not the Fortran interface -- debian/rules configures the "netcdf compatible flavor, without fortran functions" -- so libhdf4-dev ships libhdf/libmfhdf and the C headers but no Fortran includes (hdf.f90, *.inc), no .mod/entry points, and no Fortran libraries. Fortran programs that use the HDF4 SD API -- for example the TM5 atmospheric transport model, via `include "hdf.f90"` and the sf* calls -- cannot build against the Debian package as a result. Since 4.4.0 is CMake-only and builds the Fortran interface in the same pass as the shared C libraries (HDF4_BUILD_FORTRAN defaults to ON, and upstream applies -fallow-argument-mismatch itself for gfortran >= 10), enabling it looks small: - add a Fortran compiler to Build-Depends (gfortran); - pass -DHDF4_BUILD_FORTRAN=ON in override_dh_auto_configure; - ship the resulting Fortran libraries (lib*_fortran, lib*_fcstub), the free-form includes (hdf.f90, dffunc.f90, mffunc.f90) and the fixed-form .inc, in libhdf4-dev or a dedicated package. I realise this builds the netcdf-compatible flavor; if enabling Fortran in that build is awkward, a separate Fortran-enabled package would still help. conda-forge has just enabled the HDF4 Fortran interface the same way (conda-forge/hdf4-feedstock#53), for reference. Thanks for maintaining this.

