pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/nodejs4



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Aug 27 18:11:12 UTC 2016

Modified Files:
        pkgsrc/lang/nodejs4: distinfo
Added Files:
        pkgsrc/lang/nodejs4/patches: patch-src_node.cc

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


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/lang/nodejs4/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/nodejs4/patches/patch-src_node.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/nodejs4/distinfo
diff -u pkgsrc/lang/nodejs4/distinfo:1.16 pkgsrc/lang/nodejs4/distinfo:1.17
--- pkgsrc/lang/nodejs4/distinfo:1.16   Fri Aug 19 13:14:37 2016
+++ pkgsrc/lang/nodejs4/distinfo        Sat Aug 27 18:11:12 2016
@@ -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_base_platform_se
 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

Added files:

Index: pkgsrc/lang/nodejs4/patches/patch-src_node.cc
diff -u /dev/null pkgsrc/lang/nodejs4/patches/patch-src_node.cc:1.1
--- /dev/null   Sat Aug 27 18:11:12 2016
+++ pkgsrc/lang/nodejs4/patches/patch-src_node.cc       Sat Aug 27 18:11:12 2016
@@ -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