ports/databases/mongosh/files/patch-scripts_nodejs-patches_002-workaround-node-bug-52229
Fabien Amelinck 31d8a7eb34
databases/mongosh: new port
Standalone MongoDB Shell replacing deprecated Mongo CLI.
NodeJS doesn't need to be installed.

PR:	279519
2024-11-21 09:52:59 +01:00

17 lines
667 B
Text

--- scripts/nodejs-patches/002-workaround-node-bug-52229.orig 2024-05-16 08:32:21 UTC
+++ scripts/nodejs-patches/002-workaround-node-bug-52229
@@ -2,13 +2,12 @@ diff --git a/common.gypi b/common.gypi
index efcd8da84815..fe11453f09b5 100644
--- a/common.gypi
+++ b/common.gypi
-@@ -268,6 +268,9 @@
+@@ -268,6 +268,8 @@
# Defines these mostly for node-gyp to pickup.
'defines': [
'_GLIBCXX_USE_CXX11_ABI=1',
+ # Work around https://github.com/nodejs/node/issues/52229
+ "NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT=1",
-+ "NAPI_EXPERIMENTAL=1",
],
# Forcibly disable -Werror. We support a wide range of compilers, it's