Bug#1139617: freefem++: FTBFS against HDF5 2.1.0
Gilles Filippini
pini at debian.org
Wed Jun 10 10:35:25 BST 2026
Source: freefem++
Version: 4.15+dfsg-2
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, freefem++ 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/+z4MFAmopL9QACgkQ7+hsbH/+
z4PR3Af+IB0ttL+dyPm+TGcxXrSrDtfkT3lT9oNTdUKtpL4zh15i/5aDUSRHFQLA
23JM95yCpe2UVVu+Aozopp/Ebay4RVHBFuMnLTmHqihKZ6jFOBcYRnBBJLKHJiQc
H+wjeO+nKI3XCHSPw5bzBsNPRY/uYObBv8o4KDcKvgDzTE0KqTicOlAbUSKOJdFL
AxuLqRXA6/ivM8uTD5Tko8GKv0n4YxG6FY+cWqrAfSomaUQNumpWPuXRg5txwU26
ftgjnEGL2rye6PA6Is2FXeZ20jL17OiqcEYDqtZJVb4mvtfUGCXf/XGFmSE9jLFx
tHPhWHb/4jQBXNuZY0f6VLhQaa4hyA==
=0a6A
-----END PGP SIGNATURE-----
-------------- next part --------------
diff -Nru freefem++-4.15+dfsg/debian/changelog freefem++-4.15+dfsg/debian/changelog
--- freefem++-4.15+dfsg/debian/changelog 2025-10-05 18:31:30.000000000 +0200
+++ freefem++-4.15+dfsg/debian/changelog 2026-06-06 10:13:03.000000000 +0200
@@ -1,3 +1,10 @@
+freefem++ (4.15+dfsg-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTBFS against HDF5 2.1.0
+
+ -- Gilles Filippini <pini at debian.org> Sat, 06 Jun 2026 10:13:03 +0200
+
freefem++ (4.15+dfsg-2) unstable; urgency=medium
* Team upload.
diff -Nru freefem++-4.15+dfsg/debian/patches/hdf5-2.1.0.patch freefem++-4.15+dfsg/debian/patches/hdf5-2.1.0.patch
--- freefem++-4.15+dfsg/debian/patches/hdf5-2.1.0.patch 1970-01-01 01:00:00.000000000 +0100
+++ freefem++-4.15+dfsg/debian/patches/hdf5-2.1.0.patch 2026-06-06 10:13:03.000000000 +0200
@@ -0,0 +1,42 @@
+Index: freefem++-4.15+dfsg/etc/config/m4/ax_lib_hdf5.m4
+===================================================================
+--- freefem++-4.15+dfsg.orig/etc/config/m4/ax_lib_hdf5.m4
++++ freefem++-4.15+dfsg/etc/config/m4/ax_lib_hdf5.m4
+@@ -239,7 +239,15 @@ HDF5 support is being disabled (equivale
+ esac
+ done
+
+- HDF5_LIBS="-lhdf5 $HDF5_LIBS"
++ HDF5_LIBS="${HDF5_LIBS#"${HDF5_LIBS%%[![:space:]]*}"}"
++ HDF5_INFIX=
++ case "$HDF5_LIBS" in
++ -lhdf5_*)
++ HDF5_INFIX="${HDF5_LIBS#-lhdf5_}"
++ HDF5_INFIX="_${HDF5_INFIX%%_*}"
++ ;;
++ esac
++ HDF5_LIBS="-lhdf5$HDF5_INFIX $HDF5_LIBS"
+ AC_MSG_RESULT([yes (version $[HDF5_VERSION])])
+
+ dnl See if we can compile
+@@ -259,7 +267,7 @@ HDF5 support is being disabled (equivale
+ AC_MSG_WARN([Unable to compile HDF5 test program])
+ fi
+ dnl Look for HDF5's high level library H5PTcreate
+- AC_CHECK_LIB([hdf5_hl],[H5PTcreate], [HDF5_LIBS="-lhdf5_hl $HDF5_LIBS"], [], [])
++ AC_CHECK_LIB([hdf5${HDF5_INFIX}_hl],[H5PTcreate], [HDF5_LIBS="-lhdf5${HDF5_INFIX}_hl $HDF5_LIBS"], [], [])
+
+ CC=$ax_lib_hdf5_save_CC
+ CPPFLAGS=$ax_lib_hdf5_save_CPPFLAGS
+@@ -296,9 +304,9 @@ HDF5 support is being disabled (equivale
+ for arg in $HDF5_LIBS
+ do
+ case "$arg" in #(
+- -lhdf5_hl) HDF5_FLIBS="$HDF5_FLIBS -lhdf5hl_fortran $arg"
++ -lhdf5${HDF5_INFIX}_hl) HDF5_FLIBS="$HDF5_FLIBS -lhdf5${HDF5_INFIX}_hl_fortran $arg"
+ ;; #(
+- -lhdf5) HDF5_FLIBS="$HDF5_FLIBS -lhdf5_fortran $arg"
++ -lhdf5${HDF5_INFIX}) HDF5_FLIBS="$HDF5_FLIBS -lhdf5${HDF5_INFIX}_fortran $arg"
+ ;; #(
+ *) HDF5_FLIBS="$HDF5_FLIBS $arg"
+ ;;
diff -Nru freefem++-4.15+dfsg/debian/patches/series freefem++-4.15+dfsg/debian/patches/series
--- freefem++-4.15+dfsg/debian/patches/series 2025-10-05 18:31:30.000000000 +0200
+++ freefem++-4.15+dfsg/debian/patches/series 2026-06-06 10:13:03.000000000 +0200
@@ -3,3 +3,4 @@
fix_package_name_in_config_h.patch
fix_include_path.patch
ignore_invalid_hdf5_flags.patch
+hdf5-2.1.0.patch
More information about the debian-science-maintainers
mailing list