[Git][haskell-team/DHG_packages][master] hdf5: Fix FTBFS with HDF5 2.1.0
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Tue Aug 11 17:29:03 BST 2026
Scott Talbert pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
2df97a28 by Scott Talbert at 2026-08-11T12:28:10-04:00
hdf5: Fix FTBFS with HDF5 2.1.0
- - - - -
3 changed files:
- p/haskell-hdf5/debian/changelog
- + p/haskell-hdf5/debian/patches/hdf5-2.1.0.patch
- p/haskell-hdf5/debian/patches/series
Changes:
=====================================
p/haskell-hdf5/debian/changelog
=====================================
@@ -1,3 +1,12 @@
+haskell-hdf5 (1.8.15-2) unstable; urgency=medium
+
+ * Team upload.
+
+ [ Gilles Filippini ]
+ * HDF5 2.1.0 support (closes: #1139497)
+
+ -- Scott Talbert <swt at techie.net> Tue, 11 Aug 2026 12:22:35 -0400
+
haskell-hdf5 (1.8.15-1) unstable; urgency=medium
* Build using dh-haskell
=====================================
p/haskell-hdf5/debian/patches/hdf5-2.1.0.patch
=====================================
@@ -0,0 +1,184 @@
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5T.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5T.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5T.hsc
+@@ -694,7 +694,21 @@ h5t_MIPS_F64 = h5t_IEEE_F64BE
+ -- or negative on failure.
+ --
+ -- > hid_t H5Tdecode(const void *buf);
+-#ccall H5Tdecode, InArray a -> IO <hid_t>
++#if defined(H5Tdecode_vers)
++# ccall H5Tdecode1, InArray a -> IO <hid_t>
++# ccall H5Tdecode2, InArray a -> <size_t> -> IO <hid_t>
++# if H5Tdecode_vers == 1
++h5t_decode :: InArray a -> IO HId_t
++h5t_decode = h5t_decode1
++# elif H5Tdecode_vers == 2
++h5t_decode :: InArray a -> Size_t -> IO HId_t
++h5t_decode = h5t_decode2
++# else
++# error TODO
++# endif
++#else
++# ccall H5Tdecode, InArray a -> IO <hid_t>
++#endif
+
+ -- > herr_t H5Tflush(hid_t type_id);
+ #ccall H5Tflush, <hid_t> -> IO <herr_t>
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Core.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/Core.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Core.hsc
+@@ -15,15 +15,17 @@ import Bindings.HDF5.Raw.H5I
+
+ import Foreign.Ptr.Conventions
+
+-#mangle_ident "H5FD_CORE"
++#if defined(H5FD_core_init)
++# mangle_ident "H5FD_CORE"
+ :: HId_t
+-#mangle_ident "H5FD_CORE"
++# mangle_ident "H5FD_CORE"
+ = unsafePerformIO (#mangle_ident "H5FD_core_init")
+
+ -- |Initialize this driver by registering the driver with the library.
+ --
+ -- > hid_t H5FD_core_init(void);x
+-#ccall H5FD_core_init, IO <hid_t>
++# ccall H5FD_core_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+ -- |Shut down the VFD.
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Family.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/Family.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Family.hsc
+@@ -25,15 +25,17 @@ import Bindings.HDF5.Raw.H5
+ import Bindings.HDF5.Raw.H5I
+ import Foreign.Ptr.Conventions
+
+-#mangle_ident "H5FD_FAMILY"
++#if defined(H5FD_family_init)
++# mangle_ident "H5FD_FAMILY"
+ :: HId_t
+-#mangle_ident "H5FD_FAMILY"
++# mangle_ident "H5FD_FAMILY"
+ = unsafePerformIO (#mangle_ident "H5FD_family_init")
+
+ -- |Initialize this driver by registering the driver with the library.
+ --
+ -- > hid_t H5FD_family_init(void);
+-#ccall H5FD_family_init, IO <hid_t>
++# ccall H5FD_family_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+ -- |Shut down the VFD.
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Log.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/Log.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Log.hsc
+@@ -18,10 +18,12 @@ import System.IO.Unsafe (unsafePerformIO
+ import Bindings.HDF5.Raw.H5
+ import Bindings.HDF5.Raw.H5I
+
+-#mangle_ident "H5FD_LOG"
++#if defined(H5FD_family_init)
++# mangle_ident "H5FD_LOG"
+ :: HId_t
+-#mangle_ident "H5FD_LOG"
++# mangle_ident "H5FD_LOG"
+ = unsafePerformIO (#mangle_ident "H5FD_log_init")
++#endif
+
+ -- * Flags for 'h5p_set_fapl_log'
+
+@@ -62,7 +64,9 @@ import Bindings.HDF5.Raw.H5I
+ -- |Initialize this driver by registering the driver with the library.
+ --
+ -- > hid_t H5FD_log_init(void);
+-#ccall H5FD_log_init, IO <hid_t>
++#if defined(H5FD_family_init)
++# ccall H5FD_log_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+ -- |Shut down the VFD.
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Multi.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/Multi.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Multi.hsc
+@@ -16,9 +16,10 @@ import Bindings.HDF5.Raw.H5I
+ import Bindings.HDF5.Raw.H5FD
+ import Foreign.Ptr.Conventions
+
+-#mangle_ident "H5FD_MULTI"
++#if defined(H5FD_multi_init)
++# mangle_ident "H5FD_MULTI"
+ :: HId_t
+-#mangle_ident "H5FD_MULTI"
++# mangle_ident "H5FD_MULTI"
+ = unsafePerformIO (#mangle_ident "H5FD_multi_init")
+
+ -- |Initialize this driver by registering the driver with the library.
+@@ -27,7 +28,8 @@ import Foreign.Ptr.Conventions
+ -- returns a negative value.
+ --
+ -- > hid_t H5FD_multi_init(void);
+-#ccall H5FD_multi_init, IO <hid_t>
++# ccall H5FD_multi_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+ -- Shut down the VFD
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Sec2.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/Sec2.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/Sec2.hsc
+@@ -15,15 +15,17 @@ import System.IO.Unsafe (unsafePerformIO
+ import Bindings.HDF5.Raw.H5
+ import Bindings.HDF5.Raw.H5I
+
+-#mangle_ident "H5FD_SEC2"
++#if defined(H5FD_sec2_init)
++# mangle_ident "H5FD_SEC2"
+ :: HId_t
+-#mangle_ident "H5FD_SEC2"
++# mangle_ident "H5FD_SEC2"
+ = unsafePerformIO (#mangle_ident "H5FD_sec2_init")
+
+ -- |Initialize this driver by registering the driver with the library.
+ --
+ -- > hid_t H5FD_sec2_init(void);
+-#ccall H5FD_sec2_init, IO <hid_t>
++# ccall H5FD_sec2_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+ -- |Shut down the VFD.
+Index: haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/StdIO.hsc
+===================================================================
+--- haskell-hdf5-1.8.15.orig/src/Bindings/HDF5/Raw/H5FD/StdIO.hsc
++++ haskell-hdf5-1.8.15/src/Bindings/HDF5/Raw/H5FD/StdIO.hsc
+@@ -9,15 +9,17 @@ import System.IO.Unsafe (unsafePerformIO
+ import Bindings.HDF5.Raw.H5
+ import Bindings.HDF5.Raw.H5I
+
+-#mangle_ident "H5FD_STDIO"
++#if defined(H5FD_stdio_init)
++# mangle_ident "H5FD_STDIO"
+ :: HId_t
+-#mangle_ident "H5FD_STDIO"
++# mangle_ident "H5FD_STDIO"
+ = unsafePerformIO (#mangle_ident "H5FD_stdio_init")
+
+ -- |Initialize this driver by registering the driver with the library.
+ --
+ -- > hid_t H5FD_stdio_init(void);
+-#ccall H5FD_stdio_init, IO <hid_t>
++# ccall H5FD_stdio_init, IO <hid_t>
++#endif
+
+ #if H5_VERSION_LE(1,8,18)
+
=====================================
p/haskell-hdf5/debian/patches/series
=====================================
@@ -1 +1,2 @@
no-rts-n
+hdf5-2.1.0.patch
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2df97a288860c7639f4aeada94ef2a7140d7ca35
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/2df97a288860c7639f4aeada94ef2a7140d7ca35
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260811/6d498ac8/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list