pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/nodejs



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Nov  2 13:18:16 UTC 2023

Modified Files:
        pkgsrc/lang/nodejs: Makefile Makefile.common PLIST buildlink3.mk
            distinfo nodeversion.mk
        pkgsrc/lang/nodejs/patches:
            patch-deps_v8_src_base_platform_platform-posix.cc

Log Message:
nodejs: updated to 21.1.0

Version 21.1.0 (Current)

Notable Changes

Automatically detect and run ESM syntax

The new flag --experimental-detect-module can be used to automatically run ES modules when their syntax can be detected. For “ambiguous” files, which are .js or extensionless files with no 
package.json with a type field, Node.js will parse the file to detect ES module syntax; if found, it will run the file as an ES module, otherwise it will run the file as a CommonJS module. The same 
applies to string input via --eval or STDIN.

We hope to make detection enabled by default in a future version of Node.js. Detection increases startup time, so we encourage everyone — especially package authors — to add a type field to 
package.json, even for the default "type": "commonjs". The presence of a type field, or explicit extensions such as .mjs or .cjs, will opt out of detection.

vm: fix V8 compilation cache support for vm.Script

Previously repeated compilation of the same source code using vm.Script stopped hitting the V8 compilation cache after v16.x when support for importModuleDynamically was added to vm.Script, resulting 
in a performance regression that blocked users (in particular Jest users) from upgrading from v16.x.

The recent fixes landed in v21.1.0 allow the compilation cache to be hit again for vm.Script when --experimental-vm-modules is not used even in the presence of the importModuleDynamically option, so 
that users affected by the performance regression can now upgrade. Ongoing work is also being done to enable compilation cache support for vm.CompileFunction.


To generate a diff of this commit:
cvs rdiff -u -r1.277 -r1.278 pkgsrc/lang/nodejs/Makefile
cvs rdiff -u -r1.51 -r1.52 pkgsrc/lang/nodejs/Makefile.common
cvs rdiff -u -r1.77 -r1.78 pkgsrc/lang/nodejs/PLIST
cvs rdiff -u -r1.24 -r1.25 pkgsrc/lang/nodejs/buildlink3.mk
cvs rdiff -u -r1.248 -r1.249 pkgsrc/lang/nodejs/distinfo
cvs rdiff -u -r1.15 -r1.16 pkgsrc/lang/nodejs/nodeversion.mk
cvs rdiff -u -r1.12 -r1.13 \
    pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/nodejs/Makefile
diff -u pkgsrc/lang/nodejs/Makefile:1.277 pkgsrc/lang/nodejs/Makefile:1.278
--- pkgsrc/lang/nodejs/Makefile:1.277   Tue Oct 24 22:09:37 2023
+++ pkgsrc/lang/nodejs/Makefile Thu Nov  2 13:18:15 2023
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.277 2023/10/24 22:09:37 wiz Exp $
+# $NetBSD: Makefile,v 1.278 2023/11/02 13:18:15 adam Exp $
 
-DISTNAME=      node-v20.8.1
-PKGREVISION=   2
+DISTNAME=      node-v21.1.0
 EXTRACT_SUFX=  .tar.xz
 
 USE_LANGUAGES= c gnu++17

Index: pkgsrc/lang/nodejs/Makefile.common
diff -u pkgsrc/lang/nodejs/Makefile.common:1.51 pkgsrc/lang/nodejs/Makefile.common:1.52
--- pkgsrc/lang/nodejs/Makefile.common:1.51     Thu Jul 27 08:43:16 2023
+++ pkgsrc/lang/nodejs/Makefile.common  Thu Nov  2 13:18:15 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.51 2023/07/27 08:43:16 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.52 2023/11/02 13:18:15 adam Exp $
 # used by lang/nodejs/Makefile
 # used by lang/nodejs14/Makefile
 # used by lang/nodejs16/Makefile
@@ -44,6 +44,9 @@ CONFIGURE_ARGS+=      --dest-cpu=ppc
 CONFIGURE_ENV+=                GYP_DEFINES="linux_use_gold_flags=0"
 .endif
 
+# see patch-configure.py and patch-tools_gyp_pylib_gyp_input.py
+TOOL_DEPENDS+=         ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
+
 REPLACE_NODEJS+=       deps/corepack/dist/*.js
 REPLACE_NODEJS+=       deps/npm/bin/*.js
 REPLACE_PYTHON+=       configure

Index: pkgsrc/lang/nodejs/PLIST
diff -u pkgsrc/lang/nodejs/PLIST:1.77 pkgsrc/lang/nodejs/PLIST:1.78
--- pkgsrc/lang/nodejs/PLIST:1.77       Wed Sep 20 11:21:59 2023
+++ pkgsrc/lang/nodejs/PLIST    Thu Nov  2 13:18:15 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.77 2023/09/20 11:21:59 adam Exp $
+@comment $NetBSD: PLIST,v 1.78 2023/11/02 13:18:15 adam Exp $
 bin/corepack
 bin/node
 bin/npm
@@ -74,6 +74,7 @@ include/node/v8-external.h
 include/node/v8-forward.h
 include/node/v8-function-callback.h
 include/node/v8-function.h
+include/node/v8-handle-base.h
 include/node/v8-initialization.h
 include/node/v8-internal.h
 include/node/v8-isolate.h
@@ -96,6 +97,7 @@ include/node/v8-proxy.h
 include/node/v8-regexp.h
 include/node/v8-script.h
 include/node/v8-snapshot.h
+include/node/v8-source-location.h
 include/node/v8-statistics.h
 include/node/v8-template.h
 include/node/v8-traced-handle.h
@@ -221,6 +223,7 @@ lib/node_modules/npm/docs/content/comman
 lib/node_modules/npm/docs/content/commands/npm-restart.md
 lib/node_modules/npm/docs/content/commands/npm-root.md
 lib/node_modules/npm/docs/content/commands/npm-run-script.md
+lib/node_modules/npm/docs/content/commands/npm-sbom.md
 lib/node_modules/npm/docs/content/commands/npm-search.md
 lib/node_modules/npm/docs/content/commands/npm-shrinkwrap.md
 lib/node_modules/npm/docs/content/commands/npm-star.md
@@ -303,6 +306,7 @@ lib/node_modules/npm/docs/output/command
 lib/node_modules/npm/docs/output/commands/npm-restart.html
 lib/node_modules/npm/docs/output/commands/npm-root.html
 lib/node_modules/npm/docs/output/commands/npm-run-script.html
+lib/node_modules/npm/docs/output/commands/npm-sbom.html
 lib/node_modules/npm/docs/output/commands/npm-search.html
 lib/node_modules/npm/docs/output/commands/npm-shrinkwrap.html
 lib/node_modules/npm/docs/output/commands/npm-star.html
@@ -392,6 +396,7 @@ lib/node_modules/npm/lib/commands/repo.j
 lib/node_modules/npm/lib/commands/restart.js
 lib/node_modules/npm/lib/commands/root.js
 lib/node_modules/npm/lib/commands/run-script.js
+lib/node_modules/npm/lib/commands/sbom.js
 lib/node_modules/npm/lib/commands/search.js
 lib/node_modules/npm/lib/commands/set.js
 lib/node_modules/npm/lib/commands/shrinkwrap.js
@@ -413,7 +418,6 @@ lib/node_modules/npm/lib/es6/validate-en
 lib/node_modules/npm/lib/lifecycle-cmd.js
 lib/node_modules/npm/lib/npm.js
 lib/node_modules/npm/lib/package-url-cmd.js
-lib/node_modules/npm/lib/utils/ansi-trim.js
 lib/node_modules/npm/lib/utils/audit-error.js
 lib/node_modules/npm/lib/utils/auth.js
 lib/node_modules/npm/lib/utils/cmd-list.js
@@ -444,6 +448,8 @@ lib/node_modules/npm/lib/utils/read-user
 lib/node_modules/npm/lib/utils/reify-finish.js
 lib/node_modules/npm/lib/utils/reify-output.js
 lib/node_modules/npm/lib/utils/replace-info.js
+lib/node_modules/npm/lib/utils/sbom-cyclonedx.js
+lib/node_modules/npm/lib/utils/sbom-spdx.js
 lib/node_modules/npm/lib/utils/tar.js
 lib/node_modules/npm/lib/utils/timers.js
 lib/node_modules/npm/lib/utils/update-notifier.js
@@ -498,6 +504,7 @@ lib/node_modules/npm/man/man1/npm-repo.1
 lib/node_modules/npm/man/man1/npm-restart.1
 lib/node_modules/npm/man/man1/npm-root.1
 lib/node_modules/npm/man/man1/npm-run-script.1
+lib/node_modules/npm/man/man1/npm-sbom.1
 lib/node_modules/npm/man/man1/npm-search.1
 lib/node_modules/npm/man/man1/npm-shrinkwrap.1
 lib/node_modules/npm/man/man1/npm-star.1
@@ -585,7 +592,6 @@ lib/node_modules/npm/node_modules/@npmcl
 lib/node_modules/npm/node_modules/@npmcli/agent/lib/index.js
 lib/node_modules/npm/node_modules/@npmcli/agent/lib/options.js
 lib/node_modules/npm/node_modules/@npmcli/agent/lib/proxy.js
-lib/node_modules/npm/node_modules/@npmcli/agent/lib/util.js
 lib/node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base/dist/helpers.js
 lib/node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base/dist/index.js
 lib/node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base/package.json
@@ -1211,68 +1217,68 @@ lib/node_modules/npm/node_modules/gauge/
 lib/node_modules/npm/node_modules/gauge/package.json
 lib/node_modules/npm/node_modules/glob/LICENSE
 lib/node_modules/npm/node_modules/glob/README.md
-lib/node_modules/npm/node_modules/glob/dist/cjs/package.json
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/bin.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/bin.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/bin.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/bin.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/glob.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/glob.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/glob.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/glob.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/has-magic.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/has-magic.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/has-magic.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/has-magic.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/ignore.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/ignore.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/ignore.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/ignore.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/index.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/index.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/index.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/index.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/pattern.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/pattern.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/pattern.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/pattern.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/processor.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/processor.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/processor.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/processor.js.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/walker.d.ts
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/walker.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/walker.js
-lib/node_modules/npm/node_modules/glob/dist/cjs/src/walker.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/glob.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/glob.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/glob.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/glob.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/has-magic.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/has-magic.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/has-magic.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/has-magic.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/ignore.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/ignore.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/ignore.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/ignore.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/index.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/index.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/index.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/index.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/package.json
-lib/node_modules/npm/node_modules/glob/dist/mjs/pattern.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/pattern.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/pattern.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/pattern.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/processor.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/processor.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/processor.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/processor.js.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/walker.d.ts
-lib/node_modules/npm/node_modules/glob/dist/mjs/walker.d.ts.map
-lib/node_modules/npm/node_modules/glob/dist/mjs/walker.js
-lib/node_modules/npm/node_modules/glob/dist/mjs/walker.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/glob.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/glob.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/glob.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/glob.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/has-magic.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/has-magic.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/has-magic.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/has-magic.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/ignore.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/ignore.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/ignore.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/ignore.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/index.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/index.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/index.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/index.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/package.json
+lib/node_modules/npm/node_modules/glob/dist/commonjs/pattern.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/pattern.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/pattern.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/pattern.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/processor.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/processor.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/processor.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/processor.js.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/walker.d.ts
+lib/node_modules/npm/node_modules/glob/dist/commonjs/walker.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/commonjs/walker.js
+lib/node_modules/npm/node_modules/glob/dist/commonjs/walker.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/bin.d.mts
+lib/node_modules/npm/node_modules/glob/dist/esm/bin.d.mts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/bin.mjs
+lib/node_modules/npm/node_modules/glob/dist/esm/bin.mjs.map
+lib/node_modules/npm/node_modules/glob/dist/esm/glob.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/glob.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/glob.js
+lib/node_modules/npm/node_modules/glob/dist/esm/glob.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/has-magic.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/has-magic.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/has-magic.js
+lib/node_modules/npm/node_modules/glob/dist/esm/has-magic.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/ignore.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/ignore.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/ignore.js
+lib/node_modules/npm/node_modules/glob/dist/esm/ignore.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/index.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/index.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/index.js
+lib/node_modules/npm/node_modules/glob/dist/esm/index.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/package.json
+lib/node_modules/npm/node_modules/glob/dist/esm/pattern.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/pattern.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/pattern.js
+lib/node_modules/npm/node_modules/glob/dist/esm/pattern.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/processor.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/processor.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/processor.js
+lib/node_modules/npm/node_modules/glob/dist/esm/processor.js.map
+lib/node_modules/npm/node_modules/glob/dist/esm/walker.d.ts
+lib/node_modules/npm/node_modules/glob/dist/esm/walker.d.ts.map
+lib/node_modules/npm/node_modules/glob/dist/esm/walker.js
+lib/node_modules/npm/node_modules/glob/dist/esm/walker.js.map
 lib/node_modules/npm/node_modules/glob/package.json
 lib/node_modules/npm/node_modules/graceful-fs/LICENSE
 lib/node_modules/npm/node_modules/graceful-fs/clone.js
@@ -1379,12 +1385,12 @@ lib/node_modules/npm/node_modules/isexe/
 lib/node_modules/npm/node_modules/isexe/package.json
 lib/node_modules/npm/node_modules/isexe/windows.js
 lib/node_modules/npm/node_modules/jackspeak/LICENSE.md
-lib/node_modules/npm/node_modules/jackspeak/dist/cjs/index.js
-lib/node_modules/npm/node_modules/jackspeak/dist/cjs/package.json
-lib/node_modules/npm/node_modules/jackspeak/dist/cjs/parse-args.js
-lib/node_modules/npm/node_modules/jackspeak/dist/mjs/index.js
-lib/node_modules/npm/node_modules/jackspeak/dist/mjs/package.json
-lib/node_modules/npm/node_modules/jackspeak/dist/mjs/parse-args.js
+lib/node_modules/npm/node_modules/jackspeak/dist/commonjs/index.js
+lib/node_modules/npm/node_modules/jackspeak/dist/commonjs/package.json
+lib/node_modules/npm/node_modules/jackspeak/dist/commonjs/parse-args.js
+lib/node_modules/npm/node_modules/jackspeak/dist/esm/index.js
+lib/node_modules/npm/node_modules/jackspeak/dist/esm/package.json
+lib/node_modules/npm/node_modules/jackspeak/dist/esm/parse-args.js
 lib/node_modules/npm/node_modules/jackspeak/package.json
 lib/node_modules/npm/node_modules/json-parse-even-better-errors/LICENSE.md
 lib/node_modules/npm/node_modules/json-parse-even-better-errors/lib/index.js
@@ -1549,10 +1555,10 @@ lib/node_modules/npm/node_modules/minipa
 lib/node_modules/npm/node_modules/minipass-sized/node_modules/minipass/package.json
 lib/node_modules/npm/node_modules/minipass-sized/package.json
 lib/node_modules/npm/node_modules/minipass/LICENSE
-lib/node_modules/npm/node_modules/minipass/dist/cjs/index.js
-lib/node_modules/npm/node_modules/minipass/dist/cjs/package.json
-lib/node_modules/npm/node_modules/minipass/dist/mjs/index.js
-lib/node_modules/npm/node_modules/minipass/dist/mjs/package.json
+lib/node_modules/npm/node_modules/minipass/dist/commonjs/index.js
+lib/node_modules/npm/node_modules/minipass/dist/commonjs/package.json
+lib/node_modules/npm/node_modules/minipass/dist/esm/index.js
+lib/node_modules/npm/node_modules/minipass/dist/esm/package.json
 lib/node_modules/npm/node_modules/minipass/package.json
 lib/node_modules/npm/node_modules/minizlib/LICENSE
 lib/node_modules/npm/node_modules/minizlib/constants.js

Index: pkgsrc/lang/nodejs/buildlink3.mk
diff -u pkgsrc/lang/nodejs/buildlink3.mk:1.24 pkgsrc/lang/nodejs/buildlink3.mk:1.25
--- pkgsrc/lang/nodejs/buildlink3.mk:1.24       Tue Oct 24 22:09:37 2023
+++ pkgsrc/lang/nodejs/buildlink3.mk    Thu Nov  2 13:18:15 2023
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.24 2023/10/24 22:09:37 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.25 2023/11/02 13:18:15 adam Exp $
 
 BUILDLINK_TREE+=       nodejs
 
@@ -6,7 +6,7 @@ BUILDLINK_TREE+=        nodejs
 NODEJS_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.nodejs+= nodejs>=10
-BUILDLINK_ABI_DEPENDS.nodejs+= nodejs>=20.8.1nb2
+BUILDLINK_ABI_DEPENDS.nodejs+= nodejs>=21.1.0
 BUILDLINK_PKGSRCDIR.nodejs?=   ../../lang/nodejs
 
 .include "../../mk/bsd.fast.prefs.mk"

Index: pkgsrc/lang/nodejs/distinfo
diff -u pkgsrc/lang/nodejs/distinfo:1.248 pkgsrc/lang/nodejs/distinfo:1.249
--- pkgsrc/lang/nodejs/distinfo:1.248   Sun Oct 29 13:44:04 2023
+++ pkgsrc/lang/nodejs/distinfo Thu Nov  2 13:18:15 2023
@@ -1,17 +1,18 @@
-$NetBSD: distinfo,v 1.248 2023/10/29 13:44:04 ryoon Exp $
+$NetBSD: distinfo,v 1.249 2023/11/02 13:18:15 adam Exp $
 
-BLAKE2s (node-v20.8.1.tar.xz) = 2fedcaa70f6e4017469e0513e035ee2159c24b6d6f7cdf450413b9c6d5d99165
-SHA512 (node-v20.8.1.tar.xz) = d76245a8ec35fdb481e898efc457d3804d425a0d8e2da9175cdcc41036c57b5a6c23a5c2e84b7b417d3f48be631bff86708b2cae9e65ca3a22908caa3190ed1b
-Size (node-v20.8.1.tar.xz) = 41863408 bytes
+BLAKE2s (node-v21.1.0.tar.xz) = 10f4410a658f182bb6aaf5eab8e35d8304b844a693d3f4f81723fceef09312be
+SHA512 (node-v21.1.0.tar.xz) = 7d1ae1372fba341bf45dbcfc51e8253b99ea85b63dab569914d948f1a1da6c97ba163588182fa55a78185e31b731428b0e2f8ee4336c94d4b6aa6e62362ab48b
+Size (node-v21.1.0.tar.xz) = 42651096 bytes
 SHA1 (patch-common.gypi) = f50615affd26c2c7902d2112c8e9f2704c057b9c
 SHA1 (patch-configure) = e59589e138ecaf1c36a9809b70c426ef5446543a
+SHA1 (patch-configure.py) = 2c9abb8231a8d7e9950998cc90a3db75a22a74b5
 SHA1 (patch-deps_cares_cares.gyp) = 22b44f2ac59963f694dfe4f4585e08960b3dec32
 SHA1 (patch-deps_uv_common.gypi) = 29f0c382b68f77749a71ce39fa2ca37338ca18ec
 SHA1 (patch-deps_uvwasi_include_wasi__serdes.h) = 32b85ef5824b96b35aba9280bbe7aa7899d9e5cf
 SHA1 (patch-deps_v8_src_base_platform_memory.h) = 0921b5eeecfe03b774f85a15628c559901e7fea8
 SHA1 (patch-deps_v8_src_base_platform_platform-freebsd.cc) = b47025f33d2991275bbcd15dbabb28900afab0e1
 SHA1 (patch-deps_v8_src_base_platform_platform-openbsd.cc) = 5e593879dbab095f99e82593272a0de91043f9a8
-SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = e797043e7fa1379f086ffe3a919e140260b0632e
+SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = bfe8972371ed0c4039bf3bf025d83b64ec508721
 SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 802a95f1b1d131e0d85c1f99c659cc68b31ba2f6
 SHA1 (patch-deps_v8_src_base_strings.h) = 4d2b37491f2f74f1a573f8c1942790204e23a8bb
 SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
@@ -24,6 +25,7 @@ SHA1 (patch-src_crypto_crypto__rsa.cc) =
 SHA1 (patch-src_inspector__agent.cc) = 3fd3d71f9d6013a6eb2a79e0442b31d2e2408a2f
 SHA1 (patch-src_node__postmortem__metadata.cc) = 9938482d724ad6636af5dc3fa719ec26ed8539ff
 SHA1 (patch-tools_gyp_pylib_gyp_generator_make.py) = 570fe9889767c555468a225cd7f0b398ea6a193c
+SHA1 (patch-tools_gyp_pylib_gyp_input.py) = fe9a9f0e62d54e0553ebda0a305280dc70968c8e
 SHA1 (patch-tools_gyp_pylib_gyp_xcode__emulation.py) = 4ee24115f5e97ffbd23aaa6dc62f408d381d4e22
 SHA1 (patch-tools_install.py) = c01515e3001bebd50f12bcada548f1cc0c25a49f
 SHA1 (patch-tools_v8_gypfiles_v8.gyp) = 8b1b0e2216f9e8025f8e623d5aa8af3f8d670804

Index: pkgsrc/lang/nodejs/nodeversion.mk
diff -u pkgsrc/lang/nodejs/nodeversion.mk:1.15 pkgsrc/lang/nodejs/nodeversion.mk:1.16
--- pkgsrc/lang/nodejs/nodeversion.mk:1.15      Thu Oct 12 11:37:44 2023
+++ pkgsrc/lang/nodejs/nodeversion.mk   Thu Nov  2 13:18:15 2023
@@ -1,4 +1,4 @@
-# $NetBSD: nodeversion.mk,v 1.15 2023/10/12 11:37:44 adam Exp $
+# $NetBSD: nodeversion.mk,v 1.16 2023/11/02 13:18:15 adam Exp $
 
 # This file determines which nodejs version is used as a dependency for
 # a package.
@@ -8,7 +8,7 @@
 # NODE_VERSION_DEFAULT
 #      The preferred node version to use.
 #
-#      Possible values: 16 18 20
+#      Possible values: 16 18 20 21
 #      Default: 16
 #
 # === Infrastructure variables ===
@@ -27,13 +27,13 @@
 #      is significant; those listed earlier are preferred over those
 #      listed later.
 #
-#      Possible values: 16 18 20
-#      Default: 16 18 20
+#      Possible values: 16 18 20 21
+#      Default: 16 18 20 21
 #
 # NODE_VERSIONS_INCOMPATIBLE
 #      The node versions that the package *cannot* build against.
 #
-#      Possible values: 16 18 20
+#      Possible values: 16 18 20 21
 #      Default: <empty>
 #
 # Keywords: node
@@ -57,8 +57,8 @@ NODE_VERSION_REQD?=   ${PKGNAME_OLD:C/(^.*
 BUILD_DEFS+=           NODE_VERSION_DEFAULT
 BUILD_DEFS_EFFECTS+=   NODE_PACKAGE
 
-NODE_VERSION_DEFAULT?=         16
-NODE_VERSIONS_ACCEPTED?=       16 18 20
+NODE_VERSION_DEFAULT?=         20
+NODE_VERSIONS_ACCEPTED?=       16 18 20 21
 NODE_VERSIONS_INCOMPATIBLE?=   # empty
 
 # Resolve NODE_VERSIONS_INCOMPATIBLE and generate the _OK vars.
@@ -93,6 +93,8 @@ _NODE_VERSION?=               none
 .elif ${_NODE_VERSION} == "18"
 .include "../../lang/nodejs18/buildlink3.mk"
 .elif ${_NODE_VERSION} == "20"
+.include "../../lang/nodejs20/buildlink3.mk"
+.elif ${_NODE_VERSION} == "21"
 .include "../../lang/nodejs/buildlink3.mk"
 .else
 PKG_FAIL_REASON+=      "No valid node version found"

Index: pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc
diff -u pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc:1.12 pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc:1.13
--- pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc:1.12   Wed May  3 14:03:09 2023
+++ pkgsrc/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc        Thu Nov  2 13:18:15 2023
@@ -1,4 +1,4 @@
-$NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.12 2023/05/03 14:03:09 nikita Exp $
+$NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.13 2023/11/02 13:18:15 adam Exp $
 
 Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN.
 Cast explicitly.
@@ -7,9 +7,9 @@ Remove legacy madvise(2) prototypes, pre
 Avoid using a random hint, some low numbers cause spurious ENOMEM on netbsd
 (PR port-arm/55533)
 
---- deps/v8/src/base/platform/platform-posix.cc.orig   2023-04-17 23:15:54.000000000 +0200
-+++ deps/v8/src/base/platform/platform-posix.cc        2023-05-03 14:19:05.405513040 +0200
-@@ -75,14 +75,6 @@
+--- deps/v8/src/base/platform/platform-posix.cc.orig   2023-10-24 10:04:41.000000000 +0000
++++ deps/v8/src/base/platform/platform-posix.cc
+@@ -77,14 +77,6 @@
  #define MAP_ANONYMOUS MAP_ANON
  #endif
  
@@ -24,7 +24,7 @@ Avoid using a random hint, some low numb
  #ifndef MADV_FREE
  #define MADV_FREE MADV_DONTNEED
  #endif
-@@ -391,6 +383,10 @@
+@@ -399,6 +391,10 @@ void* OS::GetRandomMmapAddr() {
  #endif
  #endif
  #endif
@@ -35,7 +35,7 @@ Avoid using a random hint, some low numb
    return reinterpret_cast<void*>(raw_addr);
  }
  
-@@ -553,14 +549,11 @@
+@@ -565,14 +561,11 @@ bool OS::DiscardSystemPages(void* addres
      // MADV_FREE_REUSABLE sometimes fails, so fall back to MADV_DONTNEED.
      ret = madvise(address, size, MADV_DONTNEED);
    }
@@ -52,7 +52,7 @@ Avoid using a random hint, some low numb
  #else
    int ret = madvise(address, size, MADV_DONTNEED);
  #endif
-@@ -802,6 +795,8 @@
+@@ -815,6 +808,8 @@ int OS::GetCurrentThreadId() {
    return static_cast<int>(syscall(__NR_gettid));
  #elif V8_OS_ANDROID
    return static_cast<int>(gettid());
@@ -61,9 +61,9 @@ Avoid using a random hint, some low numb
  #elif V8_OS_AIX
    return static_cast<int>(thread_self());
  #elif V8_OS_FUCHSIA
-@@ -1075,7 +1070,11 @@
-     : data_(new PlatformData),
+@@ -1091,7 +1086,11 @@ Thread::Thread(const Options& options)
        stack_size_(options.stack_size()),
+       priority_(options.priority()),
        start_semaphore_(nullptr) {
 +#if V8_OS_NETBSD
 +  const int min_stack_size = sysconf(_SC_THREAD_STACK_MIN);
@@ -73,7 +73,7 @@ Avoid using a random hint, some low numb
    if (stack_size_ > 0) stack_size_ = std::max(stack_size_, min_stack_size);
    set_name(options.name());
  }
-@@ -1091,7 +1090,7 @@
+@@ -1106,7 +1105,7 @@ static void SetThreadName(const char* na
    pthread_set_name_np(pthread_self(), name);
  #elif V8_OS_NETBSD
    static_assert(Thread::kMaxThreadNameLength <= PTHREAD_MAX_NAMELEN_NP);



Home | Main Index | Thread Index | Old Index