git: 41be8a32ce0a - main - databases/mongosh: Fix build by using nodejs22
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Jan 2026 19:29:06 UTC
The branch main has been updated by dvl:
URL: https://cgit.FreeBSD.org/ports/commit/?id=41be8a32ce0abd7aceb444172c787518a086cd22
commit 41be8a32ce0abd7aceb444172c787518a086cd22
Author: Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2026-01-14 19:27:42 +0000
Commit: Dan Langille <dvl@FreeBSD.org>
CommitDate: 2026-01-14 19:27:42 +0000
databases/mongosh: Fix build by using nodejs22
This doesn't build with lts any more.
PR: 290975
---
databases/mongosh/Makefile | 6 +++---
databases/mongosh/files/patch-package.json | 9 +++++++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/databases/mongosh/Makefile b/databases/mongosh/Makefile
index 31660b6bcf7f..9cbe313158cc 100644
--- a/databases/mongosh/Makefile
+++ b/databases/mongosh/Makefile
@@ -1,7 +1,7 @@
PORTNAME= mongosh
DISTVERSIONPREFIX= v
DISTVERSION= 2.5.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= databases shells net
MASTER_SITES= https://registry.npmjs.org/mongodb-client-encryption/-/:mongocrypt \
https://registry.npmjs.org/kerberos/-/:kerberos \
@@ -42,7 +42,7 @@ LIB_DEPENDS= libbrotlidec.so:archivers/brotli \
libmongocrypt.so:databases/libmongocrypt
RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
-USES= compiler:c++11-lang gmake gssapi:mit localbase nodejs:lts,build pkgconfig python:build ssl tar:xz
+USES= compiler:c++11-lang gmake gssapi:mit localbase nodejs:22,build pkgconfig python:build ssl tar:xz
USE_GITHUB= yes
GH_ACCOUNT= VultureProject
@@ -114,7 +114,7 @@ do-build:
${RM} -v \
${WRKSRC}/scripts/nodejs-patches/005-windows-escape-product-dir-abs-in-openssl-node-56111.patch \
${WRKSRC}/scripts/nodejs-patches/006-windows-virtual-terminal-input-libuv-4688.patch
- cd ${WRKSRC} && ${MAKE_ENV} ${LOCALBASE}/bin/npm run compile-exec
+ cd ${WRKSRC} && ${MAKE_ENV} ${LOCALBASE}/bin/npm run compile-exec || (cat ${WRKSRC}/lerna-debug.log && false)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dist/mongosh ${STAGEDIR}${PREFIX}/bin
diff --git a/databases/mongosh/files/patch-package.json b/databases/mongosh/files/patch-package.json
index a2ff3090a9ec..4bdeea2d4eea 100644
--- a/databases/mongosh/files/patch-package.json
+++ b/databases/mongosh/files/patch-package.json
@@ -1,5 +1,14 @@
--- package.json.orig 2025-07-02 13:57:45 UTC
+++ package.json
+@@ -29,7 +29,7 @@
+ "pretest-smoke": "npm run compile-cli",
+ "test-smoke": "npm run test-smoke -w @mongosh/cli-repl",
+ "compile": "npm run compile --workspaces --if-present",
+- "compile-cli": "lerna run compile --scope @mongosh/cli-repl --include-dependencies",
++ "compile-cli": "lerna --loglevel silly run compile --scope @mongosh/cli-repl --include-dependencies",
+ "prestart-cli": "npm run compile-cli",
+ "start-cli": "npm run start -w @mongosh/cli-repl",
+ "start-browser": "npm run start --workspace @mongosh/browser-repl",
@@ -69,7 +69,6 @@
"postcreate-static-analysis-report": "mongodb-sbom-tools sarif-to-markdown --sarif=.sbom/codeql.sarif.json --md=.sbom/codeql.md",
"where": "monorepo-where",