pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/blosc blosc: use the __STDC_VERSION__ right for ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/87f211c3a446
branches:  trunk
changeset: 380153:87f211c3a446
user:      maya <maya%pkgsrc.org@localhost>
date:      Sat May 12 12:01:26 2018 +0000

description:
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:

 devel/blosc/Makefile                           |   3 ++-
 devel/blosc/distinfo                           |   4 ++--
 devel/blosc/patches/patch-tests_test__common.h |  12 ++++++++++--
 3 files changed, 14 insertions(+), 5 deletions(-)

diffs (50 lines):

diff -r d8b98507d71d -r 87f211c3a446 devel/blosc/Makefile
--- a/devel/blosc/Makefile      Sat May 12 11:30:10 2018 +0000
+++ b/devel/blosc/Makefile      Sat May 12 12:01:26 2018 +0000
@@ -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 -r d8b98507d71d -r 87f211c3a446 devel/blosc/distinfo
--- a/devel/blosc/distinfo      Sat May 12 11:30:10 2018 +0000
+++ b/devel/blosc/distinfo      Sat May 12 12:01:26 2018 +0000
@@ -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 -r d8b98507d71d -r 87f211c3a446 devel/blosc/patches/patch-tests_test__common.h
--- a/devel/blosc/patches/patch-tests_test__common.h    Sat May 12 11:30:10 2018 +0000
+++ b/devel/blosc/patches/patch-tests_test__common.h    Sat May 12 12:01:26 2018 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index