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 posix_memalign on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a35e34b67b5e
branches:  trunk
changeset: 378312:a35e34b67b5e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Apr 05 09:33:48 2018 +0000

description:
blosc: Use posix_memalign on SunOS.

diffstat:

 devel/blosc/Makefile                           |   4 +++-
 devel/blosc/distinfo                           |   3 ++-
 devel/blosc/patches/patch-tests_test__common.h |  15 +++++++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r f7dcf8d93fc1 -r a35e34b67b5e devel/blosc/Makefile
--- a/devel/blosc/Makefile      Thu Apr 05 09:21:02 2018 +0000
+++ b/devel/blosc/Makefile      Thu Apr 05 09:33:48 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2017/09/26 17:38:22 minskim Exp $
+# $NetBSD: Makefile,v 1.2 2018/04/05 09:33:48 jperkin Exp $
 
 DISTNAME=      blosc-1.12.1
 CATEGORIES=    devel
@@ -20,6 +20,8 @@
 CMAKE_ARGS+=   -DPREFER_EXTERNAL_ZLIB=ON
 CMAKE_ARGS+=   -DPREFER_EXTERNAL_ZSTD=ON
 
+CFLAGS.SunOS+= -D__EXTENSIONS__
+
 TEST_TARGET=   test
 
 PKGCONFIG_OVERRIDE+=   blosc.pc.in
diff -r f7dcf8d93fc1 -r a35e34b67b5e devel/blosc/distinfo
--- a/devel/blosc/distinfo      Thu Apr 05 09:21:02 2018 +0000
+++ b/devel/blosc/distinfo      Thu Apr 05 09:33:48 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2017/09/26 17:38:22 minskim Exp $
+$NetBSD: distinfo,v 1.2 2018/04/05 09:33:48 jperkin Exp $
 
 SHA1 (blosc-1.12.1.tar.gz) = 234ca85e3602cceee4d8b106c27fda526bbd733d
 RMD160 (blosc-1.12.1.tar.gz) = b04b93363b90015b79964dc4615699fa897e5273
 SHA512 (blosc-1.12.1.tar.gz) = f65bbbfce6fc59d0c5a0889d5771dd78cae2796244c6ee69edf15b27c4563c28ce789fded9104a8626d12be3e46418d596dfdb204c43e33abae8dca40debfd92
 Size (blosc-1.12.1.tar.gz) = 683510 bytes
 SHA1 (patch-CMakeLists.txt) = 70dfc44c1541b1fccd200905acbd16e17a9313e1
+SHA1 (patch-tests_test__common.h) = 2dabaec2dd7dc23a5fd56fd01647670845145675
diff -r f7dcf8d93fc1 -r a35e34b67b5e devel/blosc/patches/patch-tests_test__common.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/blosc/patches/patch-tests_test__common.h    Thu Apr 05 09:33:48 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-tests_test__common.h,v 1.1 2018/04/05 09:33:48 jperkin Exp $
+
+Use posix_memalign on SunOS with __EXTENSIONS__.
+
+--- 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
+ #elif defined(_WIN32)
+   /* A (void *) cast needed for avoiding a warning with MINGW :-/ */
+   block = (void *)_aligned_malloc(size, alignment);
+-#elif _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600
++#elif _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600 || defined(__EXTENSIONS__)
+   /* Platform does have an implementation of posix_memalign */
+   res = posix_memalign(&block, alignment, size);
+ #elif defined(__APPLE__)



Home | Main Index | Thread Index | Old Index