Hi Markus,

Please refrain from filing bugs against packages in experimental. They are in this suite for a good reason :)

Markus Blatt a écrit le 18/05/2026 à 19:46 :
Source: hdf5
Version: 2.1.0+repack-1~exp6
Severity: important

Dear Maintainer,

I am trying to build my package opm-simulators [1] in experimental. The package
uses CMake to find hdf5 and build-depends on libhdf5-mpi-dev.
The last successful build was on May 1, 2026. Back then hdf5 version used was
1.14.6. Recently there was an upload of a new version
2.1.0 and with this version hdf5 is not found anymore. Somehow another
dependency must pull in the hdf5 version from experimental and the build
fails because of this.

You can reproduce the problem with a simple CMakeLists.txt that just search
hdf5 and with the hdf5 version from experimental installed:

apt-get -t=experimental install libhdf5-mpi-dev
apt-get install cmake
cat > CMakeLists.txt <<EOF
cmake_minimum_required(VERSION 3.23)
project(hdf5-test)

find_package(HDF5)
EOF
mkdir build && cd build && cmake --debug-find-pkg=HDF5 ..

This should find hdf5 but exists with the error message:

...
-- Found HDF5: /usr/lib/x86_64-linux-gnu/libhdf5_openmpi.so (found version
"2.1.0")
CMake Error at /usr/share/cmake-4.3/Modules/FindHDF5.cmake:1257 (message):
   HDF5 was found, but a different variable was set which contains the
   location of the `hdf5::hdf5` library.
Call Stack (most recent call first):
   CMakeLists.txt:4 (find_package)


CMake Debug Log at CMakeLists.txt:4 (find_package):
   find_package considered the following paths for FindHDF5.cmake:

   The file was found at

     /usr/share/cmake-4.3/Modules/FindHDF5.cmake



-- Configuring incomplete, errors occurred!

I am a bit clueless whether I am doing something wrong or how I can fix this on
my side. Everything works as expected with the version from unstable.

[1] <https://tracker.debian.org/pkg/opm-simulators>
[2] <https://buildd.debian.org/status/fetch.php?pkg=opm-
simulators&arch=amd64&ver=2026.04%7Erc4%2Bds-1&stamp=1777640462&raw=0>

The cmake tooling installed with HDF5 2.1.0 is currently broken and I am in contact with the devs at HDF Group to solve this.

Unfortunately I can't tell when and how it will be solved as I understand very little about their current tooling and I don't have very much spare time at the moment. Please bear with me.

Best,
_g.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to