[Bug 290975] databases/mongosh: Fails to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Nov 2025 02:35:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290975

--- Comment #2 from jonathan <jonathan@kc8onw.net> ---
I removed that patch file locally and eventually wound up dying with this at
the end of the output


→  Running ./configure --disable-shared-readonly-heap --prefix=/usr/local
--shared-brotli --shared-cares --shared-libuv --shared-nghttp2 --shared-nghttp3
--shared-ngtcp2 --shared-simdjson --shared-zlib --shared-zstd --shared-openssl
--openssl-use-def-ca-store --with-intl=system-icu --without-npm --link-module
./lib-boxednode/mongosh.js ...
Node.js configure: Found Python 3.11.12...
gyp: --disable-shared-readonly-heap not found (cwd:
/usr/ports/databases/mongosh/work/boxednode/mongosh/node-v24.11.0) while trying
to load --disable-shared-readonly-heap
Error running GYP
  ✖  Failed: Command failed: ./configure --disable-shared-readonly-heap
--prefix=/usr/local --shared-brotli --shared-cares --shared-libuv
--shared-nghttp2 --shared-nghttp3 --shared-ngtcp2 --shared-simdjson
--shared-zlib --shared-zstd --shared-openssl --openssl-use-def-ca-store
--with-intl=system-icu --without-npm --link-module ./lib-boxednode/mongosh.js
(code 1)
Error: Command failed: ./configure --disable-shared-readonly-heap
--prefix=/usr/local --shared-brotli --shared-cares --shared-libuv
--shared-nghttp2 --shared-nghttp3 --shared-ngtcp2 --shared-simdjson
--shared-zlib --shared-zstd --shared-openssl --openssl-use-def-ca-store
--with-intl=system-icu --without-npm --link-module ./lib-boxednode/mongosh.js
(code 1)
    at Object.spawnBuildCommand
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/node_modules/boxednode/src/helpers.ts:47:11)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async compileNode
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/node_modules/boxednode/src/index.ts:212:5)
    at async writeMainFileAndCompile
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/node_modules/boxednode/src/index.ts:441:12)
    at async compileJSFileAsBinaryImpl
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/node_modules/boxednode/src/index.ts:454:18)
    at async compileJSFileAsBinary
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/node_modules/boxednode/src/index.ts:509:5)
    at async SignableCompiler.compile
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build/src/compile/signable-compiler.ts:172:5)
    at async runCompile
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build/src/compile/run-compile.ts:21:3)
    at async release
(/usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build/src/release.ts:86:5)
    at async
/usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build/src/index.ts:115:9
npm error Lifecycle script `evergreen-release` failed with error:
npm error code 1
npm error path /usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build
npm error workspace @mongosh/build@3.7.0
npm error location
/usr/ports/databases/mongosh/work/mongosh-2.5.5/packages/build
npm error command failed
npm error command sh -c ts-node -r ../../scripts/import-expansions.js
src/index.ts compile
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.