Source: h5py
Version: 3.16.0-3
Severity: important
Tags: ftbfs patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

During a test rebuild of HDF5's reverse dependencies against HDF5 2.1.0
currently in experimental, h5py FTBFS because its build toolchain
doesn't support this new major release.

The attached patch is a workaround for this issue and supports both
HDF5 1.14.6 in unstable and HDF5 2.1.0 in experimental.

Best,
_g.

- -- System Information:
Debian Release: 12.0
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-44-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEoJObzArDE05WtIyR7+hsbH/+z4MFAmopGvgACgkQ7+hsbH/+
z4PR8Af/Yl59BbDPCA6G5hL6OT2ShYhNq7Bxfqd+/uiCh5ztokiJyGZH+KrYtUFQ
KjGR8oDSXEsRj1T68/R1RgCAOv41G6p0mFYzbQ5Qx2DXUjM6EB1sYbQofWNbFdkj
qm0g/DepvxBUssgvZnx6sb168G1oTWdSsooe5QrBuAQcjqmIV+ag7VRT6bQTSOoM
LO7lWlElPOaQq2bKO8UmiKq7farY5JaQ2cPmZ/Pd3fcc/lZXfYKlOTvILxTliu2O
wv+lF4vJpF3GeUhh5qaSPhNf2wf+okmWrZRl2RBUQDxAf3tp3+ttA7JxLHAsI0w7
qsx4UnfH62a+GWiZwRf5lCxxhSf3Ng==
=dUUm
-----END PGP SIGNATURE-----
diff -Nru h5py-3.16.0/debian/changelog h5py-3.16.0/debian/changelog
--- h5py-3.16.0/debian/changelog        2026-05-13 13:25:13.000000000 +0200
+++ h5py-3.16.0/debian/changelog        2026-05-28 15:58:55.000000000 +0200
@@ -1,3 +1,10 @@
+h5py (3.16.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS against HDF5 2.1.0
+
+ -- Gilles Filippini <[email protected]>  Thu, 28 May 2026 15:58:55 +0200
+
 h5py (3.16.0-3) unstable; urgency=medium
 
   * update python3-mpi in debian/tests
diff -Nru h5py-3.16.0/debian/rules h5py-3.16.0/debian/rules
--- h5py-3.16.0/debian/rules    2026-05-13 13:25:13.000000000 +0200
+++ h5py-3.16.0/debian/rules    2026-05-28 15:58:42.000000000 +0200
@@ -6,6 +6,7 @@
 include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/buildflags.mk
 include /usr/share/dpkg/buildtools.mk
+include /usr/share/mpi-default-dev/debian_defaults
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
@@ -92,7 +93,7 @@
 override_dh_auto_build: export http_proxy=127.0.0.1:9
 override_dh_auto_build: export https_proxy=127.0.0.1:9
 override_dh_auto_build:
-       PYBUILD_NAME=$(PYBUILD_NAME_MPI) CC=h5pcc HDF5_USE_SHLIB=yes 
HDF5_MPI=ON HDF5_PKGCONFIG_NAME=hdf5-mpi H5PY_SYSTEM_LZF=1 dh_auto_build -D 
$(BUILD_DIR_MPI)
+       PYBUILD_NAME=$(PYBUILD_NAME_MPI) CC=h5pcc HDF5_USE_SHLIB=yes 
HDF5_MPI=ON HDF5_INCLUDEDIR=/usr/include/hdf5/$(ARCH_DEFAULT_MPI_IMPL) 
HDF5_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/$(ARCH_DEFAULT_MPI_IMPL) 
H5PY_SYSTEM_LZF=1 dh_auto_build -D $(BUILD_DIR_MPI)
        for DIR in $$(find .pybuild/cpython3*mpi -name build); do \
                cp -r $(CURDIR)/debian/wrapper_module/h5py/* $$DIR/h5py/; \
        done
@@ -103,7 +104,7 @@
 execute_after_dh_auto_build-arch: export http_proxy=127.0.0.1:9
 execute_after_dh_auto_build-arch: export https_proxy=127.0.0.1:9
 execute_after_dh_auto_build-arch:
-       PYBUILD_NAME=$(PYBUILD_NAME_SERIAL) HDF5_PKGCONFIG_NAME=hdf5-serial 
HDF5_USE_SHLIB=yes H5PY_SYSTEM_LZF=1 dh_auto_build -a -D $(BUILD_DIR_SERIAL)
+       PYBUILD_NAME=$(PYBUILD_NAME_SERIAL) 
HDF5_INCLUDEDIR=/usr/include/hdf5/serial 
HDF5_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial HDF5_USE_SHLIB=yes 
H5PY_SYSTEM_LZF=1 dh_auto_build -a -D $(BUILD_DIR_SERIAL)
        for DIR in $$(find .pybuild/cpython3*serial -name build); do \
                cp -r $(CURDIR)/debian/wrapper_module/h5py/* $$DIR/h5py/; \
        done

Reply via email to