summaryrefslogtreecommitdiff
path: root/lang/nodejs
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-01 18:41:02 +0000
committertnn <tnn@pkgsrc.org>2022-04-01 18:41:02 +0000
commit4dcc8097cb5bddef935f9c29eb7edbfffcf871e5 (patch)
tree543761d2231cce7ba3c1dcd19a8432f81db13d6f /lang/nodejs
parent4656510df8a91bb34755105f0d725fcc12f3f233 (diff)
downloadpkgsrc-4dcc8097cb5bddef935f9c29eb7edbfffcf871e5.tar.gz
nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now
It results in mmap(2) errors of the PR kern/55533 variety.
Diffstat (limited to 'lang/nodejs')
-rw-r--r--lang/nodejs/Makefile3
-rw-r--r--lang/nodejs/distinfo3
-rw-r--r--lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc19
3 files changed, 23 insertions, 2 deletions
diff --git a/lang/nodejs/Makefile b/lang/nodejs/Makefile
index fe7fc4b47a3..200d8ab79bc 100644
--- a/lang/nodejs/Makefile
+++ b/lang/nodejs/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.228 2022/04/01 15:40:09 tnn Exp $
+# $NetBSD: Makefile,v 1.229 2022/04/01 18:41:02 tnn Exp $
DISTNAME= node-v16.14.2
+PKGREVISION= 1
EXTRACT_SUFX= .tar.xz
USE_LANGUAGES= c gnu++14
diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo
index 3e468745fb5..ee154e1db81 100644
--- a/lang/nodejs/distinfo
+++ b/lang/nodejs/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.209 2022/03/30 06:52:33 adam Exp $
+$NetBSD: distinfo,v 1.210 2022/04/01 18:41:02 tnn Exp $
BLAKE2s (node-v16.14.2.tar.xz) = e32e3e3de0c413fa7d67a2dd5fe89268c0283c47e632274889b6fc82aaea031c
SHA512 (node-v16.14.2.tar.xz) = b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
@@ -15,6 +15,7 @@ SHA1 (patch-deps_v8_src_base_strings.h) = 4d2b37491f2f74f1a573f8c1942790204e23a8
SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc
SHA1 (patch-deps_v8_src_compiler_types.h) = 2a212282ab9d71e98ae56827fdb1d9778a6047a5
+SHA1 (patch-deps_v8_src_heap_code-range.cc) = dd240fd2f884bca7753d107919fd7d1e162235f0
SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3
SHA1 (patch-node.gyp) = 0c2e5ccae623a7b730490baf8d509fa550b63e03
SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa
diff --git a/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc b/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc
new file mode 100644
index 00000000000..be1f8126822
--- /dev/null
+++ b/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc
@@ -0,0 +1,19 @@
+$NetBSD: patch-deps_v8_src_heap_code-range.cc,v 1.1 2022/04/01 18:41:02 tnn Exp $
+
+nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now.
+It results in mmap(2) errors of the PR kern/55533 variety.
+
+--- deps/v8/src/heap/code-range.cc.orig 2022-03-17 21:59:26.000000000 +0000
++++ deps/v8/src/heap/code-range.cc
+@@ -33,7 +33,11 @@ Address CodeRangeAddressHint::GetAddress
+ base::MutexGuard guard(&mutex_);
+ auto it = recently_freed_.find(code_range_size);
+ if (it == recently_freed_.end() || it->second.empty()) {
++#if V8_OS_NETBSD && V8_TARGET_ARCH_ARM64
++ return 0;
++#else
+ return FUNCTION_ADDR(&FunctionInStaticBinaryForAddressHint);
++#endif
+ }
+ Address result = it->second.back();
+ it->second.pop_back();