Bug#1147536: adios2: Missing HDF5_PREFER_PARALLEL config flag

Maximiliano Curia maxy at debian.org
Sat Sep 12 21:10:24 BST 2026


Package: src:adios2
Version: 2.12.1+dfsg1-2
User: debian-python at lists.debian.org
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: serious

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version I ran into the adios4dolfinx FTBFS [1], which is reported in
#1145118.

After looking into this, I found that the problem is due to the fact
that with HDF5 version 2, we need to pass an extra flag to enable
parallel (HDF5_PREFER_PARALLEL). So, I've added that in debian/rules,
for the MPI variant.

Additionally, the HDF5_ROOT:PATH variable is different when using the
serial variant or the MPI variant, and the FindHDF5 CMake module doesn't
find it, so I've also added those settings to debian/rules.

I've applied these changes in the sandbox [2] to verify that adios2
builds successfully, and then rebuilt adios4dolfinx against it, which
also built successfully.

Setting the severity as serious, as this misconfiguration triggers a
FTBFS in a different package.

Happy hacking,

[1]: https://buildd.debian.org/status/fetch.php?pkg=adios4dolfinx&arch=all&ver=0.11.0-2&stamp=1789226652&raw=0
[2]: https://debusine.debian.net/debian/r-python-python3.15/

-- 
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
-------------- next part --------------
diff -Nru adios2-2.12.1+dfsg1/debian/changelog adios2-2.12.1+dfsg1/debian/changelog
--- adios2-2.12.1+dfsg1/debian/changelog	2026-06-09 10:12:14.000000000 +0200
+++ adios2-2.12.1+dfsg1/debian/changelog	2026-09-12 21:21:56.000000000 +0200
@@ -1,3 +1,11 @@
+adios2 (2.12.1+dfsg1-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Set HDF5_PREFER_PARALLEL for the parallel build
+  * Set the HDF5_ROOT:PATH explicitly
+
+ -- Maximiliano Curia <maxy at debian.org>  Sat, 12 Sep 2026 21:21:56 +0200
+
 adios2 (2.12.1+dfsg1-2) unstable; urgency=medium
 
   * Upload to unstable, see transition request in Bug #1135890.
diff -Nru adios2-2.12.1+dfsg1/debian/rules adios2-2.12.1+dfsg1/debian/rules
--- adios2-2.12.1+dfsg1/debian/rules	2026-06-09 10:10:37.000000000 +0200
+++ adios2-2.12.1+dfsg1/debian/rules	2026-09-12 21:21:56.000000000 +0200
@@ -59,7 +59,7 @@
 
 ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
     configure_flags_common += -DADIOS2_USE_Blosc2:BOOL=OFF
-else 
+else
     configure_flags_common += -DADIOS2_USE_Blosc2:BOOL=ON
 endif
 
@@ -69,11 +69,13 @@
   -DADIOS2_LIBRARY_SUFFIX:STRING=_serial \
   -DADIOS2_EXECUTABLE_SUFFIX:STRING=.serial \
   -DADIOS2_USE_MPI:BOOL=OFF \
+  -DHDF5_ROOT:PATH=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial \
   -DHDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5cc
 
 configure_flags_mpi_common := $(configure_flags_common) \
   -DADIOS2_USE_MPI:BOOL=ON \
-  -DADIOS2_USE_SSC:BOOL=ON
+  -DADIOS2_USE_SSC:BOOL=ON \
+  -DHDF5_PREFER_PARALLEL:BOOL=ON
 
 configure_flags_mpi := $(configure_flags_mpi_common) \
   -DCMAKE_INSTALL_CMAKEDIR:STRING=lib/$(DEB_HOST_GNU_TYPE)/cmake/adios2/mpi \
@@ -83,6 +85,7 @@
   -DMPI_C_COMPILER:FILEPATH=/usr/bin/mpicc.$(ARCH_DEFAULT_MPI_IMPL) \
   -DMPI_CXX_COMPILER:FILEPATH=/usr/bin/mpic++.$(ARCH_DEFAULT_MPI_IMPL) \
   -DMPI_Fortran_COMPILER:FILEPATH=/usr/bin/mpifort.$(ARCH_DEFAULT_MPI_IMPL) \
+  -DHDF5_ROOT:PATH=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/$(ARCH_DEFAULT_MPI_IMPL) \
   -DHDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5pcc.$(ARCH_DEFAULT_MPI_IMPL)
 
 override_dh_auto_clean:


More information about the debian-science-maintainers mailing list