diff options
author | joerg <joerg@pkgsrc.org> | 2016-08-27 18:11:12 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-08-27 18:11:12 +0000 |
commit | 5d10e93fced30713668f0784e67e1e0d8992188c (patch) | |
tree | 32f60d9ef38d107b005dd0cf6a0037de114c28f9 | |
parent | 6be8e12ea91fe7db8772bc1e4a6046405e13a748 (diff) | |
download | pkgsrc-5d10e93fced30713668f0784e67e1e0d8992188c.tar.gz |
Don't depend on PTHREAD_STACK_MIN for NetBSD, use sysconf.
-rw-r--r-- | lang/nodejs4/distinfo | 3 | ||||
-rw-r--r-- | lang/nodejs4/patches/patch-src_node.cc | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/nodejs4/distinfo b/lang/nodejs4/distinfo index 437d1d8ab41..28cbae353ca 100644 --- a/lang/nodejs4/distinfo +++ b/lang/nodejs4/distinfo @@ -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_semaphore.cc) = dd8cafadd2668f069dab8625f5 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 --git a/lang/nodejs4/patches/patch-src_node.cc b/lang/nodejs4/patches/patch-src_node.cc new file mode 100644 index 00000000000..5086e208fdb --- /dev/null +++ b/lang/nodejs4/patches/patch-src_node.cc @@ -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; |