git: 380338c53b75 - main - databases/mongodb70: harden the port to external CONFIGURE_ARGS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Dec 2025 19:16:56 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=380338c53b75ef594b1faccc59bc111546809f31
commit 380338c53b75ef594b1faccc59bc111546809f31
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-26 18:55:34 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-26 19:16:41 +0000
databases/mongodb70: harden the port to external CONFIGURE_ARGS
CONFIGURE_ARGS is directly connected to CONFIGURE_SCRIPT and the script
only accepts 2 parameters. Exit 1 on incorrect number of parameters.
And don't allow to += on CONFIGURE_ARGS.
Not bumping PORTREVISION, no content change intended.
PR: 291951
---
databases/mongodb70/Makefile | 2 +-
.../files/patch-src_third__party_mozjs_gen-config.sh | 11 ++++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/databases/mongodb70/Makefile b/databases/mongodb70/Makefile
index 504705f671b5..613008a30421 100644
--- a/databases/mongodb70/Makefile
+++ b/databases/mongodb70/Makefile
@@ -62,7 +62,7 @@ python_OLD_CMD= @python_interpreter@
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= gen-config.sh
-CONFIGURE_ARGS+= ${MOZJS_ARCH} \
+CONFIGURE_ARGS= ${MOZJS_ARCH} \
freebsd
CONFIGURE_ENV+= PYTHON3="${PYTHON_CMD}"
diff --git a/databases/mongodb70/files/patch-src_third__party_mozjs_gen-config.sh b/databases/mongodb70/files/patch-src_third__party_mozjs_gen-config.sh
index 4260904915e4..441f53fff97d 100644
--- a/databases/mongodb70/files/patch-src_third__party_mozjs_gen-config.sh
+++ b/databases/mongodb70/files/patch-src_third__party_mozjs_gen-config.sh
@@ -1,4 +1,4 @@
---- src/third_party/mozjs/gen-config.sh.orig 2025-05-13 16:37:03 UTC
+--- src/third_party/mozjs/gen-config.sh.orig 2025-12-22 19:50:59 UTC
+++ src/third_party/mozjs/gen-config.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
@@ -6,6 +6,15 @@
set -e
set -v
+@@ -7,7 +7,7 @@ then
+ if [ $# -ne 2 ]
+ then
+ echo "Please supply an arch: x86_64, i386, etc and a platform: osx, linux, windows, etc"
+- exit 0;
++ exit 1;
+ fi
+
+ _BuiltPathPrefix="mozilla-release/js/src/_build/js/src"
@@ -29,6 +29,9 @@ case "$_Path" in
}