Bug#994109: scilab FTBFS with hdf5 1.10.7

Gilles Filippini pini at debian.org
Sun Sep 12 16:39:57 BST 2021


Adrian Bunk a écrit le 11/09/2021 à 23:35 :
> Source: scilab
> Version: 6.1.0+dfsg1-7
> Severity: serious
> Tags: ftbfs
> 
> https://buildd.debian.org/status/package.php?p=scilab&suite=sid
> 
> ...
> In file included from /usr/include/hdf5/serial/H5public.h:32,
>                   from /usr/include/hdf5/serial/hdf5.h:22,
>                   from src/c/h5_readDataFromFile.c:26:
> /usr/include/hdf5/serial/H5version.h:39:4: error: #error "Can't choose old API versions when deprecated APIs are disabled"
>     39 |   #error "Can't choose old API versions when deprecated APIs are disabled"
>        |    ^~~~~
> make[5]: *** [Makefile:1380: src/c/libscihdf5_algo_la-h5_readDataFromFile.lo] Error 1
> 

Patch proposal attached.

Best,

_g.
-------------- next part --------------
diff -Nru scilab-6.1.1+dfsg2/debian/changelog scilab-6.1.1+dfsg2/debian/changelog
--- scilab-6.1.1+dfsg2/debian/changelog	2021-09-10 07:02:44.000000000 +0200
+++ scilab-6.1.1+dfsg2/debian/changelog	2021-09-12 14:50:46.000000000 +0200
@@ -1,3 +1,11 @@
+scilab (6.1.1+dfsg2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * New patch hdf5-1.10.7.patch to disable H5_NO_DEPRECATED_SYMBOLS which
+    causes FTBFS against HDF5 1.10.7 (Closes: #994109)
+
+ -- Gilles Filippini <pini at debian.org>  Sun, 12 Sep 2021 14:50:46 +0200
+
 scilab (6.1.1+dfsg2-1) unstable; urgency=medium
 
   * Drop even more files from upstream's archive (now dfsg2),
diff -Nru scilab-6.1.1+dfsg2/debian/patches/hdf5-1.10.7.patch scilab-6.1.1+dfsg2/debian/patches/hdf5-1.10.7.patch
--- scilab-6.1.1+dfsg2/debian/patches/hdf5-1.10.7.patch	1970-01-01 01:00:00.000000000 +0100
+++ scilab-6.1.1+dfsg2/debian/patches/hdf5-1.10.7.patch	2021-09-12 14:50:46.000000000 +0200
@@ -0,0 +1,52 @@
+Index: scilab/scilab/modules/hdf5/Makefile.am
+===================================================================
+--- scilab.orig/scilab/modules/hdf5/Makefile.am
++++ scilab/scilab/modules/hdf5/Makefile.am
+@@ -103,8 +103,7 @@ FORCE_HDF_API = \
+     -DH5Gopen_vers=2 \
+     -DH5Tget_array_dims_vers=2 \
+     -DH5Acreate_vers=2 \
+-    -DH5Rdereference_vers=2 \
+-    -DNO_DEPRECATED_SYMBOLS
++    -DH5Rdereference_vers=2
+ 
+ 
+ libscihdf5_la_CPPFLAGS = \
+Index: scilab/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
+===================================================================
+--- scilab.orig/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
++++ scilab/scilab/modules/hdf5/src/c/h5_readDataFromFile.c
+@@ -13,8 +13,6 @@
+ *
+ */
+ 
+-#define H5_NO_DEPRECATED_SYMBOLS
+-
+ #ifndef _MSC_VER
+ #include <sys/time.h>
+ #else
+Index: scilab/scilab/modules/hdf5/includes/HDF5Objects.h
+===================================================================
+--- scilab.orig/scilab/modules/hdf5/includes/HDF5Objects.h
++++ scilab/scilab/modules/hdf5/includes/HDF5Objects.h
+@@ -16,7 +16,6 @@
+ #ifndef __HDF5OBJECTS_H__
+ #define __HDF5OBJECTS_H__
+ 
+-#define H5_NO_DEPRECATED_SYMBOLS
+ #undef H5_USE_16_API
+ 
+ #define H5Eset_auto_vers 2
+Index: scilab/scilab/modules/hdf5/src/c/h5_readDataFromFile_v1.c
+===================================================================
+--- scilab.orig/scilab/modules/hdf5/src/c/h5_readDataFromFile_v1.c
++++ scilab/scilab/modules/hdf5/src/c/h5_readDataFromFile_v1.c
+@@ -13,8 +13,6 @@
+ *
+ */
+ 
+-#define H5_NO_DEPRECATED_SYMBOLS
+-
+ #ifndef _MSC_VER
+ #include <sys/time.h>
+ #else
diff -Nru scilab-6.1.1+dfsg2/debian/patches/series scilab-6.1.1+dfsg2/debian/patches/series
--- scilab-6.1.1+dfsg2/debian/patches/series	2021-09-10 07:02:44.000000000 +0200
+++ scilab-6.1.1+dfsg2/debian/patches/series	2021-09-12 14:50:46.000000000 +0200
@@ -20,3 +20,4 @@
 no-ftbfs-icu.patch
 find_external_libintl_jar.patch
 ocaml_411.patch
+hdf5-1.10.7.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210912/21e4d15b/attachment.sig>


More information about the debian-science-maintainers mailing list