pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libuv libuv: don't call pthread_condattr_setcloc...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b1b876fa1676
branches: trunk
changeset: 360189:b1b876fa1676
user: maya <maya%pkgsrc.org@localhost>
date: Mon Mar 27 15:34:00 2017 +0000
description:
libuv: don't call pthread_condattr_setclock on netbsd.
it is effectively a no-op, and doesn't exist on netbsd<7, leading to
undefined references in building cmake later on.
this fixes the build of cmake on NetBSD 6.1.5.
diffstat:
devel/libuv/distinfo | 3 ++-
devel/libuv/patches/patch-src_unix_thread.c | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r c5c2e2c2c3a0 -r b1b876fa1676 devel/libuv/distinfo
--- a/devel/libuv/distinfo Mon Mar 27 13:52:27 2017 +0000
+++ b/devel/libuv/distinfo Mon Mar 27 15:34:00 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2017/03/22 01:45:07 taca Exp $
+$NetBSD: distinfo,v 1.13 2017/03/27 15:34:00 maya Exp $
SHA1 (libuv-1.11.0.tar.gz) = 54f0972aa0d3f6a6036d477b381c01f030f9a2b5
RMD160 (libuv-1.11.0.tar.gz) = f2ed5e5c457a66625875d9fcd56584feebc94268
@@ -6,3 +6,4 @@
Size (libuv-1.11.0.tar.gz) = 1083067 bytes
SHA1 (patch-autogen.sh) = a5f48189bfb17624c545a80626ea311b7755d232
SHA1 (patch-src_unix_fs.c) = 21fffa99df9528aedee0c6fe299d28ff5110d2ba
+SHA1 (patch-src_unix_thread.c) = 8f7aeb216cef32648c70df7abc7bba2bade9b1b8
diff -r c5c2e2c2c3a0 -r b1b876fa1676 devel/libuv/patches/patch-src_unix_thread.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuv/patches/patch-src_unix_thread.c Mon Mar 27 15:34:00 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_unix_thread.c,v 1.1 2017/03/27 15:34:00 maya Exp $
+
+Don't use pthread_condattr_setclock on NetBSD. It's effectively
+a no-op, and doesn't exist on NetBSD<7 leading to undefined refs
+in building cmake.
+
+--- src/unix/thread.c.orig 2017-02-01 00:38:56.000000000 +0000
++++ src/unix/thread.c
+@@ -424,7 +424,8 @@ int uv_cond_init(uv_cond_t* cond) {
+ if (err)
+ return -err;
+
+-#if !(defined(__ANDROID__) && defined(HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC))
++#if !(defined(__ANDROID__) && defined(HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC)) && \
++ !(defined(__NetBSD__))
+ err = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
+ if (err)
+ goto error2;
Home |
Main Index |
Thread Index |
Old Index