[From nobody Tue Aug 18 19:21:05 2026
Received: (at submit) by bugs.debian.org; 10 Jun 2026 09:35:28 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.6 required=4.0 tests=BAYES_00,FOURLA,
 FROMDEVELOPER,FVGT_m_MULTI_ODD,HEADER_FROM_DIFFERENT_DOMAINS,
 PGPSIGNATURE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 55; hammy, 150; neutral, 208; spammy,
 0. spammytokens: hammytokens:0.000-+--HTo:N*Debian,
 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking, 0.000-+--sk:taint_o,
 0.000-+--sk:TAINT_O
Return-path: &lt;SRS0=a6bP=EG=debian.org=pini@bou-fi.net&gt;
Received: from mail.bou-fi.net ([51.255.91.82]:57284)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;SRS0=a6bP=EG=debian.org=pini@bou-fi.net&gt;)
 id 1wXFLM-00Eb6D-1h for submit@bugs.debian.org;
 Wed, 10 Jun 2026 09:35:28 +0000
Content-Type: multipart/mixed; boundary=&quot;===============1208208293454400862==&quot;
Authentication-Results: mail.bou-fi.net;
 auth=pass smtp.mailfrom=pini@debian.org
MIME-Version: 1.0
From: Gilles Filippini &lt;pini@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: freefem++: FTBFS against HDF5 2.1.0
Message-ID: &lt;178108412524.26597.13712017307769075313.reportbug@pinibrem14&gt;
Date: Wed, 10 Jun 2026 11:35:25 +0200
X-Spamd-Bar: --
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============1208208293454400862==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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-----

--===============1208208293454400862==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;freefem++.debdiff&quot;

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 &lt;pini@debian.org&gt;  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=&quot;-lhdf5 $HDF5_LIBS&quot;
++        HDF5_LIBS=&quot;${HDF5_LIBS#&quot;${HDF5_LIBS%%[![:space:]]*}&quot;}&quot;
++        HDF5_INFIX=
++        case &quot;$HDF5_LIBS&quot; in
++            -lhdf5_*)
++                HDF5_INFIX=&quot;${HDF5_LIBS#-lhdf5_}&quot;
++                HDF5_INFIX=&quot;_${HDF5_INFIX%%_*}&quot;
++                ;;
++        esac
++        HDF5_LIBS=&quot;-lhdf5$HDF5_INFIX $HDF5_LIBS&quot;
+         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=&quot;-lhdf5_hl $HDF5_LIBS&quot;], [], [])
++		AC_CHECK_LIB([hdf5${HDF5_INFIX}_hl],[H5PTcreate], [HDF5_LIBS=&quot;-lhdf5${HDF5_INFIX}_hl $HDF5_LIBS&quot;], [], [])
+ 
+         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 &quot;$arg&quot; in #(
+-                -lhdf5_hl) HDF5_FLIBS=&quot;$HDF5_FLIBS -lhdf5hl_fortran $arg&quot;
++                -lhdf5${HDF5_INFIX}_hl) HDF5_FLIBS=&quot;$HDF5_FLIBS -lhdf5${HDF5_INFIX}_hl_fortran $arg&quot;
+                   ;; #(
+-                -lhdf5)    HDF5_FLIBS=&quot;$HDF5_FLIBS -lhdf5_fortran $arg&quot;
++                -lhdf5${HDF5_INFIX})    HDF5_FLIBS=&quot;$HDF5_FLIBS -lhdf5${HDF5_INFIX}_fortran $arg&quot;
+                   ;; #(
+                 *) HDF5_FLIBS=&quot;$HDF5_FLIBS $arg&quot;
+                   ;;
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

--===============1208208293454400862==--
]