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>


-- System Information:
Debian Release: 12.14
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable-proposed-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-48-amd64 (SMP w/64 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to