Package: libfast5-dev
Version: 0~20150918-1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Subject says it all.
This bug doesn't affect unstable currently because hid_t = int in hdf5 1.8.x.
But it breaks with hdf5 1.10 in experimental, where hid_t = long long.

PLease see the attached patch.

Thank,

_g.

- -- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libfast5-dev depends on:
ii  libhdf5-dev          1.8.16+docs-8
ii  libhdf5-openmpi-dev  1.8.16+docs-8

libfast5-dev recommends no packages.

libfast5-dev suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJXkOv3AAoJEO/obGx//s+DkRsIAII7dK3+nhtTfCAwwMr7Wsd8
sM5ZXNX7CUkb5BzC1ip65Cx0S+njh7qQLHeOTBFhSqFX4AeXuo9gIePl1kL96uUy
vX2yEC54tsnu0WnblufvHIlkw40Rbbuw/YZsiMcboBg6doYcPzvy670YDsBhssF0
wkWHBFmsDotNRM0loQq2YVVe5JLRabTefsVGwGHw4RksGlQ6SnSJikUqckNZEfy2
cuXfcUs0lpyJNiXJuMxsUd7svzj8CfLZWFT1VcNVB6h9Ymm+njcbZZYFySPmlWLv
9N+gT0sJai0M7wt2584yRmJPTUojUw8w2uxFjWggMwlVrUk/5mqPvaclIkrpgDc=
=o3u1
-----END PGP SIGNATURE-----
diff -Nru fast5-0~20150918/debian/changelog fast5-0~20150918/debian/changelog
--- fast5-0~20150918/debian/changelog	2016-01-20 11:11:22.000000000 +0100
+++ fast5-0~20150918/debian/changelog	2016-07-21 17:12:12.000000000 +0200
@@ -1,3 +1,11 @@
+fast5 (0~20150918-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix wrong id type: should be hid_t instead of int, for hdf5 1.10
+    compatibility.
+
+ -- Gilles Filippini <p...@debian.org>  Thu, 21 Jul 2016 17:06:57 +0200
+
 fast5 (0~20150918-1) unstable; urgency=low
 
   * Initial release - upstream git revision 0639cc5 (Closes: #811460)
diff -Nru fast5-0~20150918/debian/patches/fix-id-type.patch fast5-0~20150918/debian/patches/fix-id-type.patch
--- fast5-0~20150918/debian/patches/fix-id-type.patch	1970-01-01 01:00:00.000000000 +0100
+++ fast5-0~20150918/debian/patches/fix-id-type.patch	2016-07-21 17:09:43.000000000 +0200
@@ -0,0 +1,13 @@
+Index: fast5-0~20150918/src/hdf5_tools.hpp
+===================================================================
+--- fast5-0~20150918.orig/src/hdf5_tools.hpp
++++ fast5-0~20150918/src/hdf5_tools.hpp
+@@ -218,7 +218,7 @@ struct Extent_Atomic_Reader< std::string
+                       const std::string& read_fcn_name, std::function< herr_t(hid_t, hid_t, void*) > read_fcn)
+     {
+         int status;
+-        int file_type_id = get_type_fcn(obj_id);
++        hid_t file_type_id = get_type_fcn(obj_id);
+         if (file_type_id < 0) throw Exception(loc_full_name + ": error in " + get_type_fcn_name);
+         int is_vlen_str = H5Tis_variable_str(file_type_id);
+         if (is_vlen_str < 0) throw Exception(loc_full_name + ": error in H5Tis_variable_str");
diff -Nru fast5-0~20150918/debian/patches/series fast5-0~20150918/debian/patches/series
--- fast5-0~20150918/debian/patches/series	2016-01-20 11:11:22.000000000 +0100
+++ fast5-0~20150918/debian/patches/series	2016-07-21 17:09:09.000000000 +0200
@@ -1,2 +1,3 @@
 relative-paths.patch
 revise-example.patch
+fix-id-type.patch

Reply via email to