pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nodejs4 Don't depend on PTHREAD_STACK_MIN for Net...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b15cf200d5c9
branches:  trunk
changeset: 351785:b15cf200d5c9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Aug 27 18:11:12 2016 +0000

description:
Don't depend on PTHREAD_STACK_MIN for NetBSD, use sysconf.

diffstat:

 lang/nodejs4/distinfo                  |   3 ++-
 lang/nodejs4/patches/patch-src_node.cc |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r fbec53278e99 -r b15cf200d5c9 lang/nodejs4/distinfo
--- a/lang/nodejs4/distinfo     Sat Aug 27 18:09:16 2016 +0000
+++ b/lang/nodejs4/distinfo     Sat Aug 27 18:11:12 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2016/08/19 13:14:37 fhajny Exp $
+$NetBSD: distinfo,v 1.17 2016/08/27 18:11:12 joerg Exp $
 
 SHA1 (node-v4.5.0.tar.gz) = e50ce4b67025be8361bbcf6fbdbef86fdec8ad8f
 RMD160 (node-v4.5.0.tar.gz) = f31d3440578c322ca8c1bf2ba4e0e74d5629e60f
@@ -18,6 +18,7 @@
 SHA1 (patch-deps_v8_src_types.h) = 1c122245079b3ce0c6fe3f1644d28102fb2eb456
 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
 SHA1 (patch-src_cares__wrap.cc) = d9510afd0cd4b0156a604d9197d9f97d6e3b291f
+SHA1 (patch-src_node.cc) = 41149d788120a8992058869a011b4f3d52b44d08
 SHA1 (patch-tools_gyp_pylib_gyp_common.py) = 132008f362ea696e43a4d19bf9d8a0ac754ef55c
 SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = be3cc1aaa85c3d59b6f2758df813cb5ad8d8f74e
 SHA1 (patch-tools_install.py) = c94305596fc7961cab00a147317350954bdbf547
diff -r fbec53278e99 -r b15cf200d5c9 lang/nodejs4/patches/patch-src_node.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs4/patches/patch-src_node.cc    Sat Aug 27 18:11:12 2016 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_node.cc,v 1.1 2016/08/27 18:11:12 joerg Exp $
+
+--- src/node.cc.orig   2016-08-26 20:21:02.722620766 +0000
++++ src/node.cc
+@@ -3626,8 +3626,10 @@ static int RegisterDebugSignalHandler() 
+   // Don't shrink the thread's stack on FreeBSD.  Said platform decided to
+   // follow the pthreads specification to the letter rather than in spirit:
+   // https://lists.freebsd.org/pipermail/freebsd-current/2014-March/048885.html
+-#ifndef __FreeBSD__
++#if defined(__FreeBSD__)
+   CHECK_EQ(0, pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN));
++#elif defined(__NetBSD__)
++  CHECK_EQ(0, pthread_attr_setstacksize(&attr, sysconf(_SC_THREAD_STACK_MIN)));
+ #endif  // __FreeBSD__
+   CHECK_EQ(0, pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));
+   sigset_t sigmask;



Home | Main Index | Thread Index | Old Index