pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/nodejs Avoid PTHREAD_STACK_MIN reference on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1f8516aab0f8
branches:  trunk
changeset: 347716:1f8516aab0f8
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Fri May 27 23:30:51 2016 +0000

description:
Avoid PTHREAD_STACK_MIN reference on NetBSD.

diffstat:

 lang/nodejs/distinfo                  |   3 ++-
 lang/nodejs/patches/patch-src_node.cc |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (36 lines):

diff -r 471b32c44192 -r 1f8516aab0f8 lang/nodejs/distinfo
--- a/lang/nodejs/distinfo      Fri May 27 17:42:46 2016 +0000
+++ b/lang/nodejs/distinfo      Fri May 27 23:30:51 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.66 2016/05/18 13:26:44 fhajny Exp $
+$NetBSD: distinfo,v 1.67 2016/05/27 23:30:51 fhajny Exp $
 
 SHA1 (node-v6.2.0.tar.gz) = 228a0c2ff23294778f226e5d7fc85fc2e80a3cd1
 RMD160 (node-v6.2.0.tar.gz) = c6154b44a1c0786d8d5a3cf961c87d15e159c969
@@ -20,6 +20,7 @@
 SHA1 (patch-deps_v8_src_types.h) = a15d1f13a577135a006e8ef0617c9476eb971fa3
 SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
 SHA1 (patch-src_cares__wrap.cc) = d9510afd0cd4b0156a604d9197d9f97d6e3b291f
+SHA1 (patch-src_node.cc) = 7004baf140e252861494b4fb003beeaa8581be78
 SHA1 (patch-tools_gyp_pylib_gyp_common.py) = 132008f362ea696e43a4d19bf9d8a0ac754ef55c
 SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = be3cc1aaa85c3d59b6f2758df813cb5ad8d8f74e
 SHA1 (patch-tools_install.py) = 5755e67dce5261b84e43acee281c7e8810708bb4
diff -r 471b32c44192 -r 1f8516aab0f8 lang/nodejs/patches/patch-src_node.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/nodejs/patches/patch-src_node.cc     Fri May 27 23:30:51 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_node.cc,v 1.1 2016/05/27 23:30:51 fhajny Exp $
+
+Handle NetBSD the same way as FreeBSD.
+
+--- src/node.cc.orig   2016-05-17 19:53:07.000000000 +0000
++++ src/node.cc
+@@ -3801,7 +3801,7 @@ 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__) && !defined(__NetBSD__)
+   CHECK_EQ(0, pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN));
+ #endif  // __FreeBSD__
+   CHECK_EQ(0, pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED));



Home | Main Index | Thread Index | Old Index