ports/databases/mongosh/files/node-modules-patches/patch-node__modules_kerberos_binding.gyp
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

32 lines
1.2 KiB
Python

--- node_modules/kerberos/binding.gyp.orig 2024-05-13 15:16:38 UTC
+++ node_modules/kerberos/binding.gyp
@@ -34,14 +34,18 @@
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
}
}],
- ['OS=="mac" or OS=="linux"', {
+ ['OS=="mac" or OS=="linux" or OS=="freebsd"', {
'sources': [
'src/unix/base64.cc',
'src/unix/kerberos_gss.cc',
'src/unix/kerberos_unix.cc'
]
}],
- ['(OS=="mac" or OS=="linux") and (kerberos_use_rtld!="true")', {
+ ['(OS=="mac" or OS=="linux" or OS=="freebsd") and (kerberos_use_rtld!="true")', {
+ 'defines': ['NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT'],
+ 'include_dirs': [
+ '/usr/local/include'
+ ],
'link_settings': {
'libraries': [
'-lkrb5',
@@ -58,7 +62,7 @@
}]
]
}],
- ['(OS=="mac" or OS=="linux") and (kerberos_use_rtld=="true")', {
+ ['(OS=="mac" or OS=="linux" or OS=="freebsd") and (kerberos_use_rtld=="true")', {
'defines': ['KERBEROS_USE_RTLD=1'],
'link_settings': {
'libraries': [