diff --git a/lang/node/Makefile b/lang/node/Makefile index 2bf3b86f8dd..08cf594e581 100644 --- a/lang/node/Makefile +++ b/lang/node/Makefile @@ -7,6 +7,7 @@ COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine NODE_VERSION = v22.13.1 PLEDGE_VER = 1.1.3 +REVISION = 0 DISTFILES = ${DISTNAME}-headers.tar.gz \ ${DISTNAME}.tar.xz DISTFILES.pledge = node-pledge-{}${PLEDGE_VER}.tar.gz diff --git a/lang/node/patches/patch-deps_v8_include_v8config_h b/lang/node/patches/patch-deps_v8_include_v8config_h index 6910c14f5f2..085608640c7 100644 --- a/lang/node/patches/patch-deps_v8_include_v8config_h +++ b/lang/node/patches/patch-deps_v8_include_v8config_h @@ -19,12 +19,10 @@ Index: deps/v8/include/v8config.h || defined(V8_TARGET_OS_MACOS) \ || defined(V8_TARGET_OS_WIN) \ || defined(V8_TARGET_OS_CHROMEOS) -@@ -218,6 +222,16 @@ path. Add it with -I to the command line - - #ifdef V8_OS_LINUX +@@ -220,6 +224,16 @@ path. Add it with -I to the command line # define V8_TARGET_OS_LINUX -+#endif -+ + #endif + +#ifdef V8_OS_OPENBSD +# define V8_TARGET_OS_OPENBSD +# define V8_TARGET_OS_BSD @@ -33,6 +31,16 @@ Index: deps/v8/include/v8config.h +#ifdef V8_OS_FREEBSD +# define V8_TARGET_OS_OPENBSD +# define V8_TARGET_OS_BSD - #endif - ++#endif ++ #ifdef V8_OS_MACOS + # define V8_TARGET_OS_MACOS + #endif +@@ -366,6 +380,7 @@ path. Add it with -I to the command line + #if (defined(_M_X64) || defined(__x86_64__) /* x64 (everywhere) */ \ + || ((defined(__AARCH64EL__) || defined(_M_ARM64)) /* arm64, but ... */ \ + && !defined(_WIN32))) /* not on windows */ \ ++ && !defined(__OpenBSD__) /* not on OpenBSD */ \ + && !defined(COMPONENT_BUILD) /* no component build */\ + && __clang_major__ >= 17 /* clang >= 17 */ + # define V8_HAS_ATTRIBUTE_PRESERVE_MOST (__has_attribute(preserve_most))