Subject: [alpine-aports] [PATCH] testing/hdf5: update to 1.8.16

From: Isaac Dunham <[email-masked]>
Date: Mon, 8 Feb 2016 23:20:58 -0800

Hello,
The attached patch updates testing/hdf5 to 1.8.16.
This version seems to pass all tests on x86, and is reported to also pass
all tests on x86_64.
To test, you can run this:
 abuild fetch unpack prepare build
 cd src/hdf5*/
 make test

It also re-enables build on non-x86 platforms (because I'm hoping that
the new version fixes whatever was causing the segfault on armhf). If
there's a build failure there, please contact me.

Thank you,
Isaac Dunham

From 1d18a64c2e27bc5540c3dc375ce9dfc5a669fae5 Mon Sep 17 00:00:00 2001
From: Isaac Dunham <[email-masked]>
Date: Mon, 8 Feb 2016 22:44:05 -0800
Subject: [PATCH] testing/hdf5: update to 1.8.16

* Apparently the old version, built with our current toolchain,
failed a few tests. This passes all tests.

* Delete obsolete reference to timezone bug; this may have been fixed
by the tm_gmtoff change in musl.

* Try building on ARM again, since we have a new version.
---
 testing/hdf5/APKBUILD | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/testing/hdf5/APKBUILD b/testing/hdf5/APKBUILD
index 8d80482..e882824 100644
--- a/testing/hdf5/APKBUILD
+++ b/testing/hdf5/APKBUILD
@@ -1,26 +1,21 @@
 # Contributor: Isaac Dunham <[email-masked]>
 # Maintainer:
 #
-# make test does not complete without error on all systems;
-# the bug is somewhere in src/H5Omtime.c, unless the test is wrong.
-# Essentially, when the timezone is not UTC, it adjusts the ctime it
-# reads one way and the "known" datestamp the other way.
-# I'm not sure if this is musl-specific or not.
-# With TZ=UTC, all tests pass.
-#
 # HDF5 depends on zlib and provides a C interface by default.
 # Optionally, it can be built with szip (which has limitations on
 # commercial use and thus is non-free), MPI, and C++ and Fortran bindings.
 # C++ and Fortran bindings may not be thread-safe:
 # building either and passing --enable-threadsafe is unsupported.
+# Additionally, the 'high-level' bindings are incompatible with threadsafe
+# builds, due to inadequate locking.
 
 pkgname=hdf5
-_pkgver=1.8.15-patch1
-pkgver=1.8.15.1
+pkgver=1.8.16
+_pkgver=$pkgver
 pkgrel=0
 pkgdesc="HDF5 is a data model, library, and file format for storing and managing data"
 url="http://www.hdfgroup.org/HDF5/"
-arch="x86 x86_64"
+arch="all"
 license="custom"
 depends=""
 depends_dev="zlib-dev"
@@ -51,7 +46,7 @@ build() {
 		--mandir=/usr/share/man \
 		--infodir=/usr/share/info \
 		--localstatedir=/var \
-		--enable-threadsafe \
+		--disable-threadsafe \
 		--enable-direct-vfd \
 		|| return 1
 	make || return 1
@@ -64,6 +59,6 @@ package() {
 	install -c -m 0644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
 }
 
-md5sums="3c0d7a8c38d1abc7b40fc12c1d5f2bb8  hdf5-1.8.15-patch1.tar.bz2"
-sha256sums="a5afc630c4443547fff15e9637b5b10404adbed4c00206d89517d32d6668fb32  hdf5-1.8.15-patch1.tar.bz2"
-sha512sums="380c06f3cab469351d6ddc940c7cdffd5bd20a74e69cb4d549989bec5f130dadae11c04928ead7eea0200a175fc45a042d068a752d8a9c19a35c3a6912a147bd  hdf5-1.8.15-patch1.tar.bz2"
+md5sums="79c1593573ebddf734eee8d43ecfe483  hdf5-1.8.16.tar.bz2"
+sha256sums="13aaae5ba10b70749ee1718816a4b4bfead897c2fcb72c24176e759aec4598c6  hdf5-1.8.16.tar.bz2"
+sha512sums="f3ca50ca50bb51057818165fcc36f199a7bd7a9b7c42e299314381a269c4d882f60a780b0005fc2443596e06535ff40019b3483763d926e462a90bea4fe84033  hdf5-1.8.16.tar.bz2"
-- 
2.7.0