nodejs: updated to 16.15.0 Version 16.15.0 'Gallium' Notable changes Add fetch API Adds experimental support to the fetch API. This adds the --experimental-fetch flag that installs the fetch, Request, Response, Headers, and FormData globals. (SEMVER-MINOR) add fetch (Micha谷l Zasso) (SEMVER-MINOR) add FormData global when fetch is enabled (Micha谷l Zasso) Other notable changes build: remove broken x32 arch support (Ben Noordhuis) crypto: (SEMVER-MINOR) add KeyObject.prototype.equals method (Filip Skokan) doc: add @ShogunPanda to collaborators (Paolo Insogna) add JakobJingleheimer to collaborators list (Jacob Smith) add joesepi to collaborators (Joe Sepi) add marsonya to collaborators (Akhil Marsonya) deprecate string coercion in fs.write, fs.writeFileSync (Livia Medeiros) deprecate notice for process methods (Yash Ladha) esm: (SEMVER-MINOR) support https remotely and http locally under flag (Bradley Farias) module: (SEMVER-MINOR) unflag esm json modules (Geoffrey Booth) node-api: (SEMVER-MINOR) add node_api_symbol_for() (Darshan Sen) process: deprecate multipleResolves (Benjamin Gruenbaum) stream: (SEMVER-MINOR) support some and every (Benjamin Gruenbaum) (SEMVER-MINOR) add toArray (Benjamin Gruenbaum) (SEMVER-MINOR) add forEach method (Benjamin Gruenbaum)diff -r1.231 -r1.232 pkgsrc/lang/nodejs/Makefile
(adam)
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.231 2022/04/19 12:42:38 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.232 2022/05/02 18:59:24 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= node-v16.14.2 | 3 | DISTNAME= node-v16.15.0 | |
4 | PKGREVISION= 2 | |||
5 | EXTRACT_SUFX= .tar.xz | 4 | EXTRACT_SUFX= .tar.xz | |
6 | 5 | |||
7 | USE_LANGUAGES= c gnu++14 | 6 | USE_LANGUAGES= c gnu++14 | |
8 | 7 | |||
9 | BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat | 8 | BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat | |
10 | 9 | |||
11 | .include "../../mk/bsd.prefs.mk" | 10 | .include "../../mk/bsd.prefs.mk" | |
12 | 11 | |||
13 | # XXX: figure out a way to add rpaths to torque | 12 | # XXX: figure out a way to add rpaths to torque | |
14 | MAKE_ENV+= LD_LIBRARY_PATH=${PREFIX}/lib | 13 | MAKE_ENV+= LD_LIBRARY_PATH=${PREFIX}/lib | |
15 | 14 | |||
16 | CONFIGURE_ARGS+= --shared-brotli | 15 | CONFIGURE_ARGS+= --shared-brotli | |
17 | CONFIGURE_ARGS+= --shared-nghttp2 | 16 | CONFIGURE_ARGS+= --shared-nghttp2 |
@@ -1,27 +1,26 @@ | @@ -1,27 +1,26 @@ | |||
1 | $NetBSD: distinfo,v 1.210 2022/04/01 18:41:02 tnn Exp $ | 1 | $NetBSD: distinfo,v 1.211 2022/05/02 18:59:24 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (node-v16.14.2.tar.xz) = e32e3e3de0c413fa7d67a2dd5fe89268c0283c47e632274889b6fc82aaea031c | 3 | BLAKE2s (node-v16.15.0.tar.xz) = 69bb0e911ecb0f1abc5e2bcc0ce402be4e6ceb6b66febb9ed10d0339f874078f | |
4 | SHA512 (node-v16.14.2.tar.xz) = b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be | 4 | SHA512 (node-v16.15.0.tar.xz) = c85cf4a94a0dccdcf358a3e0383499fe1fd74ac0e7b6aa888e9524c070ae8be68b9f718c8c0940d51115bbc908202cd7819e370507b7191facd375a5be231c69 | |
5 | Size (node-v16.14.2.tar.xz) = 34332624 bytes | 5 | Size (node-v16.15.0.tar.xz) = 34615112 bytes | |
6 | SHA1 (patch-common.gypi) = 15393846d9dce28f963ef66faa504d5bb3e92018 | 6 | SHA1 (patch-common.gypi) = 15393846d9dce28f963ef66faa504d5bb3e92018 | |
7 | SHA1 (patch-deps_cares_cares.gyp) = 22b44f2ac59963f694dfe4f4585e08960b3dec32 | 7 | SHA1 (patch-deps_cares_cares.gyp) = 22b44f2ac59963f694dfe4f4585e08960b3dec32 | |
8 | SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3 | 8 | SHA1 (patch-deps_uv_common.gypi) = d38a9c8d9e3522f15812aec2f5b1e1e636d4bab3 | |
9 | SHA1 (patch-deps_uvwasi_include_wasi__serdes.h) = 32b85ef5824b96b35aba9280bbe7aa7899d9e5cf | 9 | SHA1 (patch-deps_uvwasi_include_wasi__serdes.h) = 32b85ef5824b96b35aba9280bbe7aa7899d9e5cf | |
10 | SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = b47025f33d2991275bbcd15dbabb28900afab0e1 | 10 | SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = b47025f33d2991275bbcd15dbabb28900afab0e1 | |
11 | SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8 | 11 | SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8 | |
12 | SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = f99d9bee3ce452dda41c9b2943ee16cebcbd0af3 | 12 | SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = fb0ac6f40233ef3ae03143a97ea7628be00245a8 | |
13 | SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6 | 13 | SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6 | |
14 | SHA1 (patch-deps_v8_src_base_strings.h) = 4d2b37491f2f74f1a573f8c1942790204e23a8bb | 14 | SHA1 (patch-deps_v8_src_base_strings.h) = 4d2b37491f2f74f1a573f8c1942790204e23a8bb | |
15 | SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b | 15 | SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b | |
16 | SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc | 16 | SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc | |
17 | SHA1 (patch-deps_v8_src_compiler_types.h) = 2a212282ab9d71e98ae56827fdb1d9778a6047a5 | 17 | SHA1 (patch-deps_v8_src_compiler_types.h) = 2a212282ab9d71e98ae56827fdb1d9778a6047a5 | |
18 | SHA1 (patch-deps_v8_src_heap_code-range.cc) = dd240fd2f884bca7753d107919fd7d1e162235f0 | 18 | SHA1 (patch-deps_v8_src_heap_code-range.cc) = 60a6049ac33b0b60c998da09b2d272bec669214f | |
19 | SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3 | 19 | SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3 | |
20 | SHA1 (patch-node.gyp) = 0c2e5ccae623a7b730490baf8d509fa550b63e03 | |||
21 | SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa | 20 | SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa | |
22 | SHA1 (patch-src_inspector__agent.cc) = 2ec2a7be459648700488096f467a4ae6af5a9d91 | 21 | SHA1 (patch-src_inspector__agent.cc) = 2ec2a7be459648700488096f467a4ae6af5a9d91 | |
23 | SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff | 22 | SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff | |
24 | SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = 570fe9889767c555468a225cd7f0b398ea6a193c | 23 | SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = 570fe9889767c555468a225cd7f0b398ea6a193c | |
25 | SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 4ee24115f5e97ffbd23aaa6dc62f408d381d4e22 | 24 | SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 4ee24115f5e97ffbd23aaa6dc62f408d381d4e22 | |
26 | SHA1 (patch-tools_install.py) = c01515e3001bebd50f12bcada548f1cc0c25a49f | 25 | SHA1 (patch-tools_install.py) = c01515e3001bebd50f12bcada548f1cc0c25a49f | |
27 | SHA1 (patch-tools_v8_gypfiles_v8.gyp) = a1a40e77ee2f28d9d3dec11d6d73f2deff0d4701 | 26 | SHA1 (patch-tools_v8_gypfiles_v8.gyp) = a1a40e77ee2f28d9d3dec11d6d73f2deff0d4701 |
@@ -1,29 +1,29 @@ | @@ -1,29 +1,29 @@ | |||
1 | $NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.7 2021/04/24 06:30:28 rin Exp $ | 1 | $NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.8 2022/05/02 18:59:24 adam Exp $ | |
2 | 2 | |||
3 | Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN. | 3 | Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN. | |
4 | Cast explicitly. | 4 | Cast explicitly. | |
5 | 5 | |||
6 | Avoid using a random hint, some low numbers cause spurious ENOMEM on netbsd | 6 | Avoid using a random hint, some low numbers cause spurious ENOMEM on netbsd | |
7 | (PR port-arm/55533) | 7 | (PR port-arm/55533) | |
8 | 8 | |||
9 | --- deps/v8/src/base/platform/platform-posix.cc.orig 2021-04-07 04:42:14.000000000 +0900 | 9 | --- deps/v8/src/base/platform/platform-posix.cc.orig 2021-04-07 04:42:14.000000000 +0900 | |
10 | +++ deps/v8/src/base/platform/platform-posix.cc 2021-04-24 07:39:15.080548801 +0900 | 10 | +++ deps/v8/src/base/platform/platform-posix.cc 2021-04-24 07:39:15.080548801 +0900 | |
11 | @@ -323,6 +323,10 @@ void* OS::GetRandomMmapAddr() { | 11 | @@ -323,6 +323,10 @@ void* OS::GetRandomMmapAddr() { | |
12 | #endif | 12 | #endif | |
13 | #endif | 13 | #endif | |
14 | #endif | 14 | #endif | |
15 | + | 15 | + | |
16 | +#if V8_OS_NETBSD && V8_TARGET_ARCH_ARM64 | 16 | +#if V8_OS_NETBSD | |
17 | + raw_addr = 0; | 17 | + raw_addr = 0; | |
18 | +#endif | 18 | +#endif | |
19 | return reinterpret_cast<void*>(raw_addr); | 19 | return reinterpret_cast<void*>(raw_addr); | |
20 | } | 20 | } | |
21 | 21 | |||
22 | @@ -564,6 +568,8 @@ int OS::GetCurrentThreadId() { | 22 | @@ -564,6 +568,8 @@ int OS::GetCurrentThreadId() { | |
23 | return static_cast<int>(syscall(__NR_gettid)); | 23 | return static_cast<int>(syscall(__NR_gettid)); | |
24 | #elif V8_OS_ANDROID | 24 | #elif V8_OS_ANDROID | |
25 | return static_cast<int>(gettid()); | 25 | return static_cast<int>(gettid()); | |
26 | +#elif V8_OS_NETBSD || V8_OS_FREEBSD | 26 | +#elif V8_OS_NETBSD || V8_OS_FREEBSD | |
27 | + return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); | 27 | + return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); | |
28 | #elif V8_OS_AIX | 28 | #elif V8_OS_AIX | |
29 | return static_cast<int>(thread_self()); | 29 | return static_cast<int>(thread_self()); |
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | $NetBSD: patch-deps_v8_src_heap_code-range.cc,v 1.1 2022/04/01 18:41:02 tnn Exp $ | 1 | $NetBSD: patch-deps_v8_src_heap_code-range.cc,v 1.2 2022/05/02 18:59:24 adam Exp $ | |
2 | 2 | |||
3 | nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now. | 3 | nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now. | |
4 | It results in mmap(2) errors of the PR kern/55533 variety. | 4 | It results in mmap(2) errors of the PR kern/55533 variety. | |
5 | 5 | |||
6 | --- deps/v8/src/heap/code-range.cc.orig 2022-03-17 21:59:26.000000000 +0000 | 6 | --- deps/v8/src/heap/code-range.cc.orig 2022-03-17 21:59:26.000000000 +0000 | |
7 | +++ deps/v8/src/heap/code-range.cc | 7 | +++ deps/v8/src/heap/code-range.cc | |
8 | @@ -33,7 +33,11 @@ Address CodeRangeAddressHint::GetAddress | 8 | @@ -33,7 +33,11 @@ Address CodeRangeAddressHint::GetAddress | |
9 | base::MutexGuard guard(&mutex_); | 9 | base::MutexGuard guard(&mutex_); | |
10 | auto it = recently_freed_.find(code_range_size); | 10 | auto it = recently_freed_.find(code_range_size); | |
11 | if (it == recently_freed_.end() || it->second.empty()) { | 11 | if (it == recently_freed_.end() || it->second.empty()) { | |
12 | +#if V8_OS_NETBSD && V8_TARGET_ARCH_ARM64 | 12 | +#if V8_OS_NETBSD | |
13 | + return 0; | 13 | + return 0; | |
14 | +#else | 14 | +#else | |
15 | return FUNCTION_ADDR(&FunctionInStaticBinaryForAddressHint); | 15 | return FUNCTION_ADDR(&FunctionInStaticBinaryForAddressHint); | |
16 | +#endif | 16 | +#endif | |
17 | } | 17 | } | |
18 | Address result = it->second.back(); | 18 | Address result = it->second.back(); | |
19 | it->second.pop_back(); | 19 | it->second.pop_back(); |