mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Changes: https://www.mongodb.com/docs/v7.0/release-notes/7.0/#7.0.20---apr-29--2025 Announcement: https://www.mongodb.com/community/forums/t/mongodb-7-0-20-is-released/321461?u=r_k - refactored do-configure to use HAS_CONFIGURE which properly passes CONFIGURE_ENV - updates spidermonkey to MozJS 128.8-ESR - needs cbindgen now - pet portclippy and portfmt (moved vars around) - replaced multiple paths with MOZJS_WRKSRC - removed a mozjs patch which is in upstream now
53 lines
2 KiB
Text
53 lines
2 KiB
Text
--- SConstruct.orig 2025-05-13 16:37:03 UTC
|
|
+++ SConstruct
|
|
@@ -23,7 +23,6 @@ import SCons.Script
|
|
|
|
import SCons
|
|
import SCons.Script
|
|
-from mongo_tooling_metrics.lib.top_level_metrics import SConsToolingMetrics
|
|
from site_scons.mongo import build_profiles
|
|
|
|
# This must be first, even before EnsureSConsVersion, if
|
|
@@ -1653,16 +1652,6 @@ env.AddMethod(lambda env, name, **kwargs: add_option(n
|
|
del envDict
|
|
env.AddMethod(lambda env, name, **kwargs: add_option(name, **kwargs), 'AddOption')
|
|
|
|
-# The placement of this is intentional. Here we setup an atexit method to store tooling metrics.
|
|
-# We should only register this function after env, env_vars and the parser have been properly initialized.
|
|
-SConsToolingMetrics.register_metrics(
|
|
- utc_starttime=datetime.utcnow(),
|
|
- artifact_dir=env.Dir('$BUILD_DIR').get_abspath(),
|
|
- env_vars=env_vars,
|
|
- env=env,
|
|
- parser=_parser,
|
|
-)
|
|
-
|
|
if get_option('build-metrics'):
|
|
env['BUILD_METRICS_ARTIFACTS_DIR'] = '$BUILD_ROOT/$VARIANT_DIR'
|
|
env.Tool('build_metrics')
|
|
@@ -1801,7 +1790,7 @@ if unknown_vars:
|
|
|
|
unknown_vars = env_vars.UnknownVariables()
|
|
if unknown_vars:
|
|
- env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
|
|
+ print("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
|
|
|
|
install_actions.setup(env, get_option('install-action'))
|
|
|
|
@@ -3013,7 +3002,7 @@ if env.TargetOSIs('posix'):
|
|
# If runtime hardening is requested, then build anything
|
|
# destined for an executable with the necessary flags for PIE.
|
|
env.AppendUnique(
|
|
- PROGCCFLAGS=['-fPIE'],
|
|
+ PROGCCFLAGS=['-fpic'],
|
|
PROGLINKFLAGS=['-pie'],
|
|
)
|
|
|
|
@@ -3021,7 +3010,6 @@ if env.TargetOSIs('posix'):
|
|
env.Append(
|
|
CCFLAGS=[
|
|
"-fasynchronous-unwind-tables",
|
|
- "-g2" if not env.TargetOSIs('emscripten') else "-g",
|
|
"-Wall",
|
|
"-Wsign-compare",
|
|
"-Wno-unknown-pragmas",
|