#1152290 hdf5-helpers, libhdf5-{openmpi,mpich}-dev: compiler wrappers need pkg-config but don't depend on it

Package:
hdf5-helpers
Source:
hdf5-helpers
Description:
HDF5 - Helper tools
Submitter:
Scot Breitenfeld
Date:
2026-10-29 15:46:03 UTC
Severity:
normal
Tags:
#1152290#5
Date:
2026-10-27 14:35:51 UTC
From:
To:
Dear Maintainer,

In HDF5 2.x the compiler wrappers are shell scripts that run pkg-config
to get the compile and link flags. These are h5cc, h5fc and h5c++ in
hdf5-helpers, and h5pcc.<flavor> and h5pfc.<flavor> in
libhdf5-openmpi-dev and libhdf5-mpich-dev. None of these packages
depends on pkg-config, and neither does libhdf5-dev, so on a system
where nothing else has installed it the wrappers fail:

 $ h5cc test.c
 /usr/bin/h5cc: 1: pkg-config: not found
 pkg-config failed with arguments: --define-variable=prefix=/usr --cflags --libs hdf5_serial hdf5_serial_hl

I saw this after installing libhdf5-dev 2.2.0 in a minimal Ubuntu 24.04
container (our rebuild of 2.2.0+repack-5 on the openSUSE Build
Service). The same happens on any system without pkgconf.

The attached patch adds "pkgconf | pkg-config" to Depends of
hdf5-helpers, libhdf5-openmpi-dev and libhdf5-mpich-dev, in both
debian/control and debian/control.in.

Thanks,
Scot Breitenfeld
The HDF Group

#1152290#10
Date:
2026-10-29 15:44:35 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hdf5, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1152290@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gilles Filippini <pini@debian.org> (supplier of updated hdf5 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 29 Oct 2026 15:13:05 +0100
Source: hdf5
Architecture: source
Version: 2.2.0+repack-6
Distribution: unstable
Urgency: medium
Maintainer: Gilles Filippini <pini@debian.org>
Changed-By: Gilles Filippini <pini@debian.org>
Closes: 1040862 1149918 1152290 1152291 1152292
Changes:
 hdf5 (2.2.0+repack-6) unstable; urgency=medium
 .
   * Drop build-dependency on libcurl4-openssl-dev, unneeded as we don't
     enable ROS3 VFD which depends on aws-c-s3 (not in Debian yet)
     (closes: #1040862, #1149918)
   * Build-Depends on pkgconf, required by the hdf5 helper scripts
     (closes: #1152291)
   * hdf5-helper, libhdf5-{openmpi,mpich}-dev: Depends: pkgconf
     (requested bu h5cc et al; closes: #1152290)
   * New path from upstream PR 6794 to fix testhdf5_fortran link failure
     with LTO (closes: #1152292)
Checksums-Sha1:
 28d002a09aeaa47025841a8d91170f0209b61db1 3889 hdf5_2.2.0+repack-6.dsc
 bece325ed210bcf200c8238b41eac08018e2602e 167976 hdf5_2.2.0+repack-6.debian.tar.xz
 75f3ec95d2d6a37c3ddc8a03525410868b2829c6 33451 hdf5_2.2.0+repack-6_amd64.buildinfo
Checksums-Sha256:
 4043d8d7fcccaba1afc92b6eca9b67be4bfbf3919e6a5459dc96084fdb00653d 3889 hdf5_2.2.0+repack-6.dsc
 7d5098c8f2f8cd9b2126fc8cf407827c92a844d6d9f92c5384403677e02ef1cf 167976 hdf5_2.2.0+repack-6.debian.tar.xz
 056137a83489e339c7e062d14ddeeef8a138e0117c28de689190fff71ac9ebe8 33451 hdf5_2.2.0+repack-6_amd64.buildinfo
Files:
 f80206bfb05c4e324a41e32e4f02e6b9 3889 science optional hdf5_2.2.0+repack-6.dsc
 0b6565dfb48ed5c72ee12fc509964c6b 167976 science optional hdf5_2.2.0+repack-6.debian.tar.xz
 13072630c89aeb78c6d09410d588b7d5 33451 science optional hdf5_2.2.0+repack-6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQFEBAEBCgAuFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmrjW1MQHHBpbmlAZGVi
aWFuLm9yZwAKCRDv6Gxsf/7Pgx3jCACGgTCkc30/tUqHCmORQhp/umJ+Xl/rsbcS
yDAr/jcZmBre22yNGi+PP/iu2GsdU3Pze0ZBb2LNxRequEBtdz6cIQ30D6oJhc/1
sXE+RX896elWsC1zFlrSCJBf2hwm7drVuXqN8DolM3JEsjDlF7PFdz4/SFlUHKVB
ymJeqznpLC/gmghxRPu/4CpTMSHYoFkRydv1nwUP0Fli0EWh78IXNav94f1n88cS
QP2du5nJm2BZzvS2vID16TCxu/NG3JEQZp/jTxp9SwdEv2KGQBMerbag7URBpmBH
n+qCv7KoW2Zc3qgyIhOV0Stbzusg+7hCnsF2UXIHBdg52HxCqCy2
=XIyj
-----END PGP SIGNATURE-----