From: Volker Schlecht Subject: [Maintainer Update] lang/node v22.18.0 To: ports@openbsd.org Date: Fri, 1 Aug 2025 15:01:41 +0200 We've all been waiting for it ... node v22.18.0 Built and tested on arm64 and amd64 - I might spin up a i386 vm when back home, but will spare the others in the hackroom more of the famous Framework fan noise for now :-) Index: Makefile =================================================================== RCS file: /cvs/ports/lang/node/Makefile,v diff -u -p -r1.157 Makefile --- Makefile 12 Jul 2025 16:26:00 -0000 1.157 +++ Makefile 1 Aug 2025 12:00:32 -0000 @@ -5,7 +5,7 @@ USE_WXNEEDED = Yes COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine -NODE_VERSION = v22.17.0 +NODE_VERSION = v22.18.0 DISTFILES = ${DISTNAME}-headers.tar.gz \ ${DISTNAME}.tar.xz DIST_TUPLE = github qbit node-pledge 1.1.3 \ @@ -13,7 +13,6 @@ DIST_TUPLE = github qbit node-pledge 1. DISTNAME = node-${NODE_VERSION} PKGNAME = ${DISTNAME:S/v//g} EPOCH = 0 -REVISION = 0 CATEGORIES = lang devel Index: distinfo =================================================================== RCS file: /cvs/ports/lang/node/distinfo,v diff -u -p -r1.90 distinfo --- distinfo 30 Jun 2025 17:40:05 -0000 1.90 +++ distinfo 1 Aug 2025 12:00:32 -0000 @@ -1,6 +1,6 @@ -SHA256 (node-v22.17.0-headers.tar.gz) = SqhZxBPmyFUAFb4WsKVd+FNYpw5KwfBK0j7kLoVmwTw= -SHA256 (node-v22.17.0.tar.xz) = ej7yrtuQXqeSblIJFXJm4jdqXbYZ2awMujyWf29dtPk= +SHA256 (node-v22.18.0-headers.tar.gz) = yZ/X4KfSt1Y+9SduCaHyNVk4HGAe+AzNzpElnW9tCXE= +SHA256 (node-v22.18.0.tar.xz) = Eg4PdEGQl6n6+uH9gLned5Glh+bxxIwisZMjnM0PcIQ= SHA256 (qbit-node-pledge-1.1.3.tar.gz) = fEaXvLg6hYEJ69K+mgQFizf8DiJY2/DtyFJB/pEanVU= -SIZE (node-v22.17.0-headers.tar.gz) = 8750909 -SIZE (node-v22.17.0.tar.xz) = 48823936 +SIZE (node-v22.18.0-headers.tar.gz) = 8735432 +SIZE (node-v22.18.0.tar.xz) = 48597780 SIZE (qbit-node-pledge-1.1.3.tar.gz) = 3167 Index: patches/patch-common_gypi =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-common_gypi,v diff -u -p -r1.36 patch-common_gypi --- patches/patch-common_gypi 30 Jun 2025 17:40:10 -0000 1.36 +++ patches/patch-common_gypi 1 Aug 2025 12:00:32 -0000 @@ -11,7 +11,7 @@ Index: common.gypi # Turn on SipHash for hash seed generation, addresses HashWick 'v8_use_siphash': 'true', -@@ -195,7 +198,6 @@ +@@ -196,7 +199,6 @@ }], ], }, @@ -19,7 +19,7 @@ Index: common.gypi 'conditions': [ ['enable_lto=="true"', { 'cflags': ['<(lto)'], -@@ -523,8 +525,10 @@ +@@ -524,8 +526,10 @@ 'standalone_static_library': 1, }], ['OS=="openbsd"', { @@ -32,7 +32,7 @@ Index: common.gypi }], ['_toolset=="host"', { 'conditions': [ -@@ -541,7 +545,7 @@ +@@ -542,7 +546,7 @@ 'ldflags': [ '-m32' ], }], [ 'host_arch=="ppc64" and OS not in "aix os400"', { @@ -41,7 +41,7 @@ Index: common.gypi 'ldflags': [ '-m64' ], }], [ 'host_arch=="s390x" and OS=="linux"', { -@@ -565,7 +569,7 @@ +@@ -566,7 +570,7 @@ 'ldflags': [ '-m32' ], }], [ 'target_arch=="ppc64" and OS not in "aix os400"', { Index: patches/patch-include_node_common_gypi =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-include_node_common_gypi,v diff -u -p -r1.10 patch-include_node_common_gypi --- patches/patch-include_node_common_gypi 30 Jun 2025 17:40:10 -0000 1.10 +++ patches/patch-include_node_common_gypi 1 Aug 2025 12:00:32 -0000 @@ -1,7 +1,7 @@ Index: include/node/common.gypi --- include/node/common.gypi.orig +++ include/node/common.gypi -@@ -195,7 +195,6 @@ +@@ -196,7 +196,6 @@ }], ], }, @@ -9,7 +9,7 @@ Index: include/node/common.gypi 'conditions': [ ['enable_lto=="true"', { 'cflags': ['<(lto)'], -@@ -523,7 +522,6 @@ +@@ -524,7 +523,6 @@ 'standalone_static_library': 1, }], ['OS=="openbsd"', { @@ -17,7 +17,7 @@ Index: include/node/common.gypi 'ldflags': [ '-Wl,-z,wxneeded' ], }], ['_toolset=="host"', { -@@ -541,7 +539,7 @@ +@@ -542,7 +540,7 @@ 'ldflags': [ '-m32' ], }], [ 'host_arch=="ppc64" and OS not in "aix os400"', { @@ -26,7 +26,7 @@ Index: include/node/common.gypi 'ldflags': [ '-m64' ], }], [ 'host_arch=="s390x" and OS=="linux"', { -@@ -565,7 +563,7 @@ +@@ -566,7 +564,7 @@ 'ldflags': [ '-m32' ], }], [ 'target_arch=="ppc64" and OS not in "aix os400"', { Index: patches/patch-lib_internal_modules_cjs_loader_js =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-lib_internal_modules_cjs_loader_js,v diff -u -p -r1.19 patch-lib_internal_modules_cjs_loader_js --- patches/patch-lib_internal_modules_cjs_loader_js 15 May 2025 18:33:16 -0000 1.19 +++ patches/patch-lib_internal_modules_cjs_loader_js 1 Aug 2025 12:00:32 -0000 @@ -1,7 +1,7 @@ Index: lib/internal/modules/cjs/loader.js --- lib/internal/modules/cjs/loader.js.orig +++ lib/internal/modules/cjs/loader.js -@@ -2000,7 +2000,10 @@ Module._initPaths = function() { +@@ -1925,7 +1925,10 @@ Module._initPaths = function() { path.resolve(process.execPath, '..') : path.resolve(process.execPath, '..', '..'); Index: patches/patch-tools_v8_gypfiles_abseil_gyp =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-tools_v8_gypfiles_abseil_gyp,v diff -u -p -r1.1 patch-tools_v8_gypfiles_abseil_gyp --- patches/patch-tools_v8_gypfiles_abseil_gyp 10 Jun 2025 06:51:41 -0000 1.1 +++ patches/patch-tools_v8_gypfiles_abseil_gyp 1 Aug 2025 12:00:32 -0000 @@ -3,8 +3,9 @@ https://github.com/nodejs/node/issues/58 Index: tools/v8_gypfiles/abseil.gyp --- tools/v8_gypfiles/abseil.gyp.orig +++ tools/v8_gypfiles/abseil.gyp -@@ -1,4 +1,8 @@ +@@ -1,5 +1,9 @@ { + 'includes': ['toolchain.gypi'], + 'variables': { + 'V8_ROOT': '../../deps/v8', + }, Index: patches/patch-tools_v8_gypfiles_toolchain_gypi =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-tools_v8_gypfiles_toolchain_gypi,v diff -u -p -r1.5 patch-tools_v8_gypfiles_toolchain_gypi --- patches/patch-tools_v8_gypfiles_toolchain_gypi 30 Jun 2025 17:40:10 -0000 1.5 +++ patches/patch-tools_v8_gypfiles_toolchain_gypi 1 Aug 2025 12:00:32 -0000 @@ -1,7 +1,7 @@ Index: tools/v8_gypfiles/toolchain.gypi --- tools/v8_gypfiles/toolchain.gypi.orig +++ tools/v8_gypfiles/toolchain.gypi -@@ -673,7 +673,7 @@ +@@ -675,7 +675,7 @@ 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. }], ['OS=="freebsd" or OS=="openbsd"', { @@ -10,7 +10,7 @@ Index: tools/v8_gypfiles/toolchain.gypi }], ['OS=="netbsd"', { 'cflags': [ '-I/usr/pkg/include' ], -@@ -858,11 +858,9 @@ +@@ -860,11 +860,9 @@ # Don't use -O3 with sanitizers. ['asan==0 and msan==0 and lsan==0 \ and tsan==0 and ubsan==0 and ubsan_vptr==0', { Index: patches/patch-tools_v8_gypfiles_v8_gyp =================================================================== RCS file: /cvs/ports/lang/node/patches/patch-tools_v8_gypfiles_v8_gyp,v diff -u -p -r1.17 patch-tools_v8_gypfiles_v8_gyp --- patches/patch-tools_v8_gypfiles_v8_gyp 30 Jun 2025 17:40:10 -0000 1.17 +++ patches/patch-tools_v8_gypfiles_v8_gyp 1 Aug 2025 12:00:32 -0000 @@ -7,7 +7,7 @@ from "0.0" if llvm (clang) is detected. Index: tools/v8_gypfiles/v8.gyp --- tools/v8_gypfiles/v8.gyp.orig +++ tools/v8_gypfiles/v8.gyp -@@ -294,6 +294,9 @@ +@@ -298,6 +298,9 @@ '<(icu_gyp_path):icuuc', ], }], @@ -17,7 +17,7 @@ Index: tools/v8_gypfiles/v8.gyp ], }, # v8_initializers_slow { -@@ -702,7 +705,7 @@ +@@ -706,7 +709,7 @@ }], ['v8_enable_webassembly==1', { 'conditions': [ @@ -26,7 +26,7 @@ Index: tools/v8_gypfiles/v8.gyp 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.h', ], -@@ -745,7 +748,7 @@ +@@ -749,7 +752,7 @@ }], ['v8_enable_webassembly==1', { 'conditions': [ @@ -35,7 +35,7 @@ Index: tools/v8_gypfiles/v8.gyp 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.h', ], -@@ -1166,7 +1169,7 @@ +@@ -1170,7 +1173,7 @@ }], ['v8_enable_webassembly==1', { 'conditions': [ @@ -44,7 +44,7 @@ Index: tools/v8_gypfiles/v8.gyp 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc', '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc', -@@ -1194,7 +1197,7 @@ +@@ -1198,7 +1201,7 @@ 'conditions': [ ['v8_enable_webassembly==1', { 'conditions': [ @@ -53,7 +53,7 @@ Index: tools/v8_gypfiles/v8.gyp 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc', '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc', -@@ -1247,7 +1250,7 @@ +@@ -1251,7 +1254,7 @@ 'conditions': [ ['v8_enable_webassembly==1', { 'conditions': [ @@ -62,7 +62,7 @@ Index: tools/v8_gypfiles/v8.gyp 'sources': [ '<(V8_ROOT)/src/trap-handler/handler-inside-posix.cc', '<(V8_ROOT)/src/trap-handler/handler-outside-posix.cc', -@@ -1343,7 +1346,7 @@ +@@ -1347,7 +1350,7 @@ }], # Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library # to implement atomic memory access @@ -71,7 +71,7 @@ Index: tools/v8_gypfiles/v8.gyp 'link_settings': { 'libraries': ['-latomic', ], }, -@@ -1809,6 +1812,9 @@ +@@ -1813,6 +1816,9 @@ '