git: e9370706d7b1 - main - databases/mongodb90: build on aarch64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Oct 2026 08:04:28 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e9370706d7b111a4d517160dc3c08ca2e62d8d1d
commit e9370706d7b111a4d517160dc3c08ca2e62d8d1d
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2026-10-14 14:49:44 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2026-10-15 08:04:01 +0000
databases/mongodb90: build on aarch64
And use --batch just like mongodb80.
---
databases/mongodb90/Makefile | 13 +++++++++++--
.../patch-bazel_rules__rust_freebsd__host__triple.patch | 2 +-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/databases/mongodb90/Makefile b/databases/mongodb90/Makefile
index 9e1e1ddd8252..d71212a8f531 100644
--- a/databases/mongodb90/Makefile
+++ b/databases/mongodb90/Makefile
@@ -29,7 +29,6 @@ ONLY_FOR_ARCHS_REASON= only ported to amd64, aarch64, and powerpc64le on FreeBSD
BUILD_DEPENDS= bazel:devel/bazel7 \
bash:shells/bash \
- clang22:devel/llvm22@lite \
rg:textproc/ripgrep \
${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
@@ -79,7 +78,8 @@ CONFIGURE_ENV+= PYTHON3="${PYTHON_CMD}"
BAZEL= ${LOCALBASE}/bin/bazel
BAZEL_OUTPUT_USER_ROOT= ${WRKDIR}/bazel
BAZEL_REPOSITORY_CACHE=${WRKDIR}/bazel-repository-cache
-BAZEL_STARTUP_ARGS= --output_user_root=${BAZEL_OUTPUT_USER_ROOT}
+BAZEL_STARTUP_ARGS= --batch \
+ --output_user_root=${BAZEL_OUTPUT_USER_ROOT}
BAZEL_ENV= BAZEL_SH=${LOCALBASE}/bin/bash \
CARGO_NET_OFFLINE=true \
CC="${CC}" \
@@ -190,6 +190,15 @@ MOZJS_ARCH= ppc64le
MOZJS_ARCH= ${ARCH}
.endif
+# The default wasm JS engine embeds wasmtime, which needs a Rust toolchain.
+# Use the legacy native mozjs engine there, like upstream does on ppc64le.
+.if ${ARCH} == aarch64
+BAZEL_ARGS+= --//bazel/config:js_engine=mozjs
+.else
+# clang22 compiles the mozjs wasm module, see the wasi_repo.bzl patch
+BUILD_DEPENDS+= clang22:devel/llvm22@lite
+.endif
+
post-extract:
# Verify we downloaded the proper mozjs git tag.
${SH} -xc "test \"X`grep -E '^LIB_GIT_REVISION=' ${MOZJS_WRKSRC}/scripts/import.sh`\" = \"XLIB_GIT_REVISION=${MOZJS_TAG}\""
diff --git a/databases/mongodb90/files/patch-bazel_rules__rust_freebsd__host__triple.patch b/databases/mongodb90/files/patch-bazel_rules__rust_freebsd__host__triple.patch
index 524379cf3a43..f028d73c1926 100644
--- a/databases/mongodb90/files/patch-bazel_rules__rust_freebsd__host__triple.patch
+++ b/databases/mongodb90/files/patch-bazel_rules__rust_freebsd__host__triple.patch
@@ -9,7 +9,7 @@
+ supported_architectures = {
+ "linux": ["aarch64", "x86_64", "s390x", "powerpc64le"],
+ "macos": ["aarch64", "x86_64"],
-++ "freebsd": ["x86_64"],
+++ "freebsd": ["aarch64", "x86_64"],
+ "windows": ["aarch64", "x86_64"],
+ }
+