summaryrefslogtreecommitdiff
path: root/devel/blosc
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-05-12 12:01:26 +0000
committermaya <maya@pkgsrc.org>2018-05-12 12:01:26 +0000
commit2f0758ccf1ce2b4a020ed45e9a4d3187d85dc6e6 (patch)
tree8c6435d7a431840fe7bf2764eac33a1f36d71af0 /devel/blosc
parent70b5f11a1e6504a56fe70cb7442b1f4ce14cd74e (diff)
downloadpkgsrc-2f0758ccf1ce2b4a020ed45e9a4d3187d85dc6e6.tar.gz
blosc: use the __STDC_VERSION__ right for everyone, not just freebsd.
(we can probably drop the _ISO_C11 feature test thing for glibc then). bump PKGREVISION, this likely changes the binary for SunOS.
Diffstat (limited to 'devel/blosc')
-rw-r--r--devel/blosc/Makefile3
-rw-r--r--devel/blosc/distinfo4
-rw-r--r--devel/blosc/patches/patch-tests_test__common.h12
3 files changed, 14 insertions, 5 deletions
diff --git a/devel/blosc/Makefile b/devel/blosc/Makefile
index c76134da147..85b3839d5a4 100644
--- a/devel/blosc/Makefile
+++ b/devel/blosc/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2018/04/05 15:26:08 minskim Exp $
+# $NetBSD: Makefile,v 1.4 2018/05/12 12:01:26 maya Exp $
DISTNAME= blosc-1.14.2
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=Blosc/}
GITHUB_PROJECT= c-blosc
diff --git a/devel/blosc/distinfo b/devel/blosc/distinfo
index 3738c4f246a..60901b30c21 100644
--- a/devel/blosc/distinfo
+++ b/devel/blosc/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2018/04/05 15:26:08 minskim Exp $
+$NetBSD: distinfo,v 1.4 2018/05/12 12:01:26 maya Exp $
SHA1 (blosc-1.14.2.tar.gz) = ba8bc63c2f0cdc62077a45b5e44216abd098020a
RMD160 (blosc-1.14.2.tar.gz) = 4e75ba5f5cee49410cde42e0bef75d2f7e3d78d8
SHA512 (blosc-1.14.2.tar.gz) = fb0346e3c2c6101d17963771643a114302034a5389e2ffd9498c6b6367fe6f138ec59edbf039f89a57ce44a63e1f70324ad3906a39884ecc9d54ee2987a1b39c
Size (blosc-1.14.2.tar.gz) = 759731 bytes
SHA1 (patch-CMakeLists.txt) = 70dfc44c1541b1fccd200905acbd16e17a9313e1
-SHA1 (patch-tests_test__common.h) = 2dabaec2dd7dc23a5fd56fd01647670845145675
+SHA1 (patch-tests_test__common.h) = 84e330c5b269ef80ad827f39dc7f4a9470faa36f
diff --git a/devel/blosc/patches/patch-tests_test__common.h b/devel/blosc/patches/patch-tests_test__common.h
index 4c942fcf331..3215db1df84 100644
--- a/devel/blosc/patches/patch-tests_test__common.h
+++ b/devel/blosc/patches/patch-tests_test__common.h
@@ -1,10 +1,18 @@
-$NetBSD: patch-tests_test__common.h,v 1.1 2018/04/05 09:33:48 jperkin Exp $
+$NetBSD: patch-tests_test__common.h,v 1.2 2018/05/12 12:01:26 maya Exp $
Use posix_memalign on SunOS with __EXTENSIONS__.
+Try the __STDC_VERSION__ check for C11 for everyone, not just freebsd.
--- tests/test_common.h.orig 2017-07-19 08:08:12.000000000 +0000
+++ tests/test_common.h
-@@ -68,7 +68,7 @@ static void* blosc_test_malloc(const siz
+@@ -62,13 +62,13 @@ static void* blosc_test_malloc(const siz
+ void *block = NULL;
+ int32_t res = 0;
+
+-#if defined(_ISOC11_SOURCE) || (defined(__FreeBSD__) && __STDC_VERSION__ >= 201112L)
++#if defined(_ISOC11_SOURCE) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L)
+ /* C11 aligned allocation. 'size' must be a multiple of the alignment. */
+ block = aligned_alloc(alignment, size);
#elif defined(_WIN32)
/* A (void *) cast needed for avoiding a warning with MINGW :-/ */
block = (void *)_aligned_malloc(size, alignment);