head 1.13; access; symbols pkgsrc-2026Q1:1.13.0.2 pkgsrc-2026Q1-base:1.13 pkgsrc-2025Q4:1.12.0.2 pkgsrc-2025Q4-base:1.12 pkgsrc-2025Q3:1.11.0.18 pkgsrc-2025Q3-base:1.11 pkgsrc-2025Q2:1.11.0.16 pkgsrc-2025Q2-base:1.11 pkgsrc-2025Q1:1.11.0.14 pkgsrc-2025Q1-base:1.11 pkgsrc-2024Q4:1.11.0.12 pkgsrc-2024Q4-base:1.11 pkgsrc-2024Q3:1.11.0.10 pkgsrc-2024Q3-base:1.11 pkgsrc-2024Q2:1.11.0.8 pkgsrc-2024Q2-base:1.11 pkgsrc-2024Q1:1.11.0.6 pkgsrc-2024Q1-base:1.11 pkgsrc-2023Q4:1.11.0.4 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.2 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.10.0.14 pkgsrc-2023Q2-base:1.10 pkgsrc-2023Q1:1.10.0.12 pkgsrc-2023Q1-base:1.10 pkgsrc-2022Q4:1.10.0.10 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.8 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.10.0.6 pkgsrc-2022Q2-base:1.10 pkgsrc-2022Q1:1.10.0.4 pkgsrc-2022Q1-base:1.10 pkgsrc-2021Q4:1.10.0.2 pkgsrc-2021Q4-base:1.10 pkgsrc-2021Q3:1.9.0.14 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.12 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.10 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.8 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.6 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.4 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.2 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.8.0.10 pkgsrc-2019Q4-base:1.8 pkgsrc-2019Q3:1.8.0.6 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.4 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.2 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.7.0.10 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.8 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.6 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.4 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.2 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.6.0.6 pkgsrc-2017Q3-base:1.6 pkgsrc-2017Q2:1.6.0.2 pkgsrc-2017Q2-base:1.6 pkgsrc-2017Q1:1.5.0.4 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.2 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.4.0.4 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.2 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.3.0.2 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.2.0.6 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.4 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.2 pkgsrc-2015Q2-base:1.2; locks; strict; comment @# @; 1.13 date 2026.02.19.08.08.51; author wiz; state Exp; branches; next 1.12; commitid BTilinHO9vkgFXuG; 1.12 date 2025.12.07.16.46.10; author maya; state Exp; branches; next 1.11; commitid NX63uPvfityJTulG; 1.11 date 2023.07.29.11.45.43; author adam; state Exp; branches; next 1.10; commitid E0zTHbOj74uTWGyE; 1.10 date 2021.12.27.09.36.10; author nia; state Exp; branches; next 1.9; commitid g57OKAKrXfycQgmD; 1.9 date 2020.02.01.20.00.08; author adam; state Exp; branches; next 1.8; commitid ZcVVcWW59SQWC0VB; 1.8 date 2019.03.05.19.35.58; author adam; state Exp; branches; next 1.7; commitid B1TIlNtSxgUvcdeB; 1.7 date 2017.10.08.22.17.06; author tnn; state Exp; branches; next 1.6; commitid Z11y9w6QG8XiAiaA; 1.6 date 2017.05.29.14.44.47; author ryoon; state Exp; branches; next 1.5; commitid newpjBh88DOrkiTz; 1.5 date 2016.10.24.19.25.47; author ryoon; state Exp; branches; next 1.4; commitid udreoB82SDsjRqrz; 1.4 date 2016.06.17.11.51.08; author fhajny; state Exp; branches; next 1.3; commitid 76shRTcdaPb8uOaz; 1.3 date 2016.02.12.03.37.24; author ryoon; state Exp; branches; next 1.2; commitid IDlAvSFWNUM8OzUy; 1.2 date 2015.05.05.15.54.49; author joerg; state Exp; branches; next 1.1; commitid WFBIiKyDMVC4Zgky; 1.1 date 2015.05.02.08.10.33; author ryoon; state Exp; branches; next ; commitid xpD87WCZ5LhQvQjy; desc @@ 1.13 log @mongodb: fix build with setuptools 82 @ text @$NetBSD: patch-SConstruct,v 1.12 2025/12/07 16:46:10 maya Exp $ Add support for NetBSD and Dragonfly. Avoid -fatal-warnings: ld might complain about conflicting versions. Fix locations. Don't compile with debug info. Don't mess with the linker. Respect LDFLAGS and CXXFLAGS. Fix bogus check for mongoc-1.0 library - we need call=somefunction(); otherwise it's part of the command line arguments to the compiler Fix build with setuptools 82 (pkg_resources removal). --- SConstruct.orig 2024-01-04 00:34:55.000000000 +0000 +++ SConstruct @@@@ -16,7 +16,6 @@@@ from glob import glob import uuid from glob import glob -from pkg_resources import parse_version import SCons @@@@ -1259,6 +1258,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, CONFIGURELOG='$BUILD_ROOT/scons/config.log', CONFIG_HEADER_DEFINES={}, LIBDEPS_TAG_EXPANSIONS=[], + ENV=os.environ, ) # By default, we will get the normal SCons tool search. But if the @@@@ -1448,7 +1448,9 @@@@ os_macros = { os_macros = { "windows": "defined(_WIN32)", "solaris": "defined(__sun)", + "dragonfly": "defined(__DragonFly__)", "freebsd": "defined(__FreeBSD__)", + "netbsd": "defined(__NetBSD__)", "openbsd": "defined(__OpenBSD__)", "iOS": "defined(__APPLE__) && TARGET_OS_IOS && !TARGET_OS_SIMULATOR", "iOS-sim": "defined(__APPLE__) && TARGET_OS_IOS && TARGET_OS_SIMULATOR", @@@@ -1584,7 +1586,7 @@@@ if env.TargetOSIs('posix'): env.Append( CCFLAGS_WERROR=["-Werror"], CXXFLAGS_WERROR=['-Werror=unused-result'] if env.ToolchainIs('clang') else [], - LINKFLAGS_WERROR=['-Wl,-fatal_warnings' if env.TargetOSIs('darwin') else "-Wl,--fatal-warnings"], + LINKFLAGS_WERROR=[''], ) elif env.TargetOSIs('windows'): env.Append( @@@@ -1999,7 +2001,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': if not env.TargetOSIs('solaris', 'darwin', 'windows', 'openbsd'): env.Tool('thin_archive') -if env.TargetOSIs('linux', 'freebsd', 'openbsd'): +if env.TargetOSIs('linux', 'freebsd', 'openbsd', 'netbsd', 'dragonfly'): env['LINK_WHOLE_ARCHIVE_LIB_START'] = '-Wl,--whole-archive' env['LINK_WHOLE_ARCHIVE_LIB_END'] = '-Wl,--no-whole-archive' env['LINK_AS_NEEDED_LIB_START'] = '-Wl,--as-needed' @@@@ -2176,14 +2178,14 @@@@ elif env.TargetOSIs('solaris'): elif env.TargetOSIs('solaris'): env.Append( LIBS=["socket","resolv","lgrp"] ) -elif env.TargetOSIs('freebsd'): +elif env.TargetOSIs('freebsd', 'dragonfly'): env.Append( LIBS=[ "kvm" ] ) env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] ) elif env.TargetOSIs('darwin'): env.Append( LIBS=["resolv"] ) -elif env.TargetOSIs('openbsd'): +elif env.TargetOSIs('netbsd', 'openbsd'): env.Append( LIBS=[ "kvm" ] ) elif env.TargetOSIs('windows'): @@@@ -2485,7 +2487,6 @@@@ if env.TargetOSIs('posix'): # -Winvalid-pch Warn if a precompiled header (see Precompiled Headers) is found in the search path but can't be used. env.Append( CCFLAGS=["-fasynchronous-unwind-tables", - "-ggdb" if not env.TargetOSIs('emscripten') else "-g", "-Wall", "-Wsign-compare", "-Wno-unknown-pragmas", @@@@ -3010,7 +3011,7 @@@@ def doConfigure(myenv): myenv.AddMethod( functools.partial(var_func, var=var, func=CheckFlag), f"Check{var}Supported") - if myenv.ToolchainIs('gcc', 'clang'): + if myenv.ToolchainIs('gcc', 'clang') and get_option('runtime-hardening') == "on": # This tells clang/gcc to use the gold linker if it is available - we prefer the gold linker # because it is much faster. Don't use it if the user has already configured another linker # selection manually. @@@@ -3406,9 +3407,6 @@@@ def doConfigure(myenv): if usingLibStdCxx: def CheckModernLibStdCxx(context): test_body = """ - #if !__has_include() - #error "libstdc++ from GCC 5.3.0 or newer is required" - #endif """ context.Message('Checking for libstdc++ 5.3.0 or better... ') @@@@ -3819,7 +3817,7 @@@@ def doConfigure(myenv): # Explicitly use the new gnu hash section if the linker offers # it, except on android since older runtimes seem to not # support it. For that platform, use 'both'. - if env.TargetOSIs('android'): + if env.TargetOSIs('android') or env.TargetOSIs('netbsd'): myenv.AddToLINKFLAGSIfSupported('-Wl,--hash-style=both') else: myenv.AddToLINKFLAGSIfSupported('-Wl,--hash-style=gnu') @@@@ -4110,8 +4108,9 @@@@ def doConfigure(myenv): def checkOpenSSL(conf): sslLibName = "ssl" cryptoLibName = "crypto" - sslLinkDependencies = ["crypto", "dl"] - if conf.env.TargetOSIs('freebsd'): + if conf.env.TargetOSIs('linux', 'solaris'): + sslLinkDependencies = ["crypto", "dl"] + else: sslLinkDependencies = ["crypto"] if conf.env.TargetOSIs('windows'): @@@@ -4448,7 +4447,7 @@@@ def doConfigure(myenv): myenv.ConfError("Couldn't find SASL header/libraries") # requires ports devel/libexecinfo to be installed - if env.TargetOSIs('freebsd', 'openbsd'): + if env.TargetOSIs('dragonfly', 'freebsd', 'netbsd', 'openbsd'): if not conf.CheckLib("execinfo"): myenv.ConfError("Cannot find libexecinfo, please install devel/libexecinfo.") @@@@ -4586,7 +4585,7 @@@@ def doConfigure(myenv): ["mongoc-1.0"], ["mongoc/mongoc.h"], "C", - "mongoc_get_major_version();", + call="mongoc_get_major_version();", autoadd=False ): conf.env['MONGO_HAVE_LIBMONGOC'] = True if not conf.env['MONGO_HAVE_LIBMONGOC'] and mongoc_mode == 'on': @@@@ -4786,10 +4785,6 @@@@ if get_option('ninja') != 'disabled': env['NINJA_MAX_JOBS'] = cpu_count if get_option('ninja') != 'disabled': - - if 'ICECREAM_VERSION' in env and not env.get('CCACHE', None): - if env['ICECREAM_VERSION'] < parse_version("1.2"): - env.FatalError("Use of ccache is mandatory with --ninja and icecream older than 1.2. You are running {}.".format(env['ICECREAM_VERSION'])) ninja_builder = Tool("ninja") env["NINJA_BUILDDIR"] = env.Dir("$NINJA_BUILDDIR") @ 1.12 log @mongodb: Fix bogus configure check for mongoc-1.0 Unclear what changed (scons?) but it was passing "mongoc_get_major_version();" to the command line arguments with each character being prefixed by -l. @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.11 2023/07/29 11:45:43 adam Exp $ d11 1 d15 9 a23 1 @@@@ -1259,6 +1259,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d31 1 a31 1 @@@@ -1448,7 +1449,9 @@@@ def CheckForProcessor(context, which_arc d41 1 a41 1 @@@@ -1584,7 +1587,7 @@@@ if env.TargetOSIs('posix'): d50 1 a50 1 @@@@ -1999,7 +2002,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': d59 1 a59 1 @@@@ -2176,14 +2179,14 @@@@ if env.TargetOSIs('linux'): d76 1 a76 1 @@@@ -2485,7 +2488,6 @@@@ if env.TargetOSIs('posix'): d84 1 a84 1 @@@@ -3010,7 +3012,7 @@@@ def doConfigure(myenv): d93 1 a93 1 @@@@ -3406,9 +3408,6 @@@@ def doConfigure(myenv): d103 1 a103 1 @@@@ -3819,7 +3818,7 @@@@ def doConfigure(myenv): d112 1 a112 1 @@@@ -4110,8 +4109,9 @@@@ def doConfigure(myenv): d124 1 a124 1 @@@@ -4448,7 +4448,7 @@@@ def doConfigure(myenv): d133 1 a133 1 @@@@ -4586,7 +4586,7 @@@@ def doConfigure(myenv): d142 11 @ 1.11 log @mongodb: updated to 6.0.8 https://www.mongodb.com/docs/manual/release-notes/6.0/ @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.10 2021/12/27 09:36:10 nia Exp $ d9 2 d12 1 a12 1 --- SConstruct.orig 2023-06-29 13:37:52.000000000 +0000 d14 1 a14 1 @@@@ -1266,6 +1266,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d22 1 a22 1 @@@@ -1455,7 +1456,9 @@@@ def CheckForProcessor(context, which_arc d32 1 a32 1 @@@@ -1591,7 +1594,7 @@@@ if env.TargetOSIs('posix'): d41 1 a41 1 @@@@ -2006,7 +2009,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': d50 1 a50 1 @@@@ -2183,14 +2186,14 @@@@ if env.TargetOSIs('linux'): d67 1 a67 1 @@@@ -2492,7 +2495,6 @@@@ if env.TargetOSIs('posix'): d75 1 a75 1 @@@@ -3019,7 +3021,7 @@@@ def doConfigure(myenv): d84 1 a84 1 @@@@ -3415,9 +3417,6 @@@@ def doConfigure(myenv): d94 1 a94 1 @@@@ -3828,7 +3827,7 @@@@ def doConfigure(myenv): d103 1 a103 1 @@@@ -4119,8 +4118,9 @@@@ def doConfigure(myenv): d115 1 a115 1 @@@@ -4457,7 +4457,7 @@@@ def doConfigure(myenv): d124 9 @ 1.10 log @mongodb: When building with the "ssl" option enabled, configuration fails on NetBSD because it assumes that the "libdl" library is required to link with libssl (for some reason). Limit libdl usage to Linux and Solaris, since libdl isn't a thing on BSD-likes. @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.9 2020/02/01 20:00:08 adam Exp $ d4 1 d10 1 a10 1 --- SConstruct.orig 2021-06-30 17:39:08.000000000 +0000 d12 2 a13 2 @@@@ -1043,6 +1043,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, INSTALL_DIR=installDir, d19 2 a20 2 env = Environment(variables=env_vars, **envDict) @@@@ -1193,7 +1194,9 @@@@ def CheckForProcessor(context, which_arc d30 10 a39 1 @@@@ -1590,7 +1593,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': d44 5 a48 5 +if env.TargetOSIs('linux', 'dragonfly', 'freebsd', 'netbsd', 'openbsd'): env['LINK_LIBGROUP_START'] = '-Wl,--start-group' env['LINK_LIBGROUP_END'] = '-Wl,--end-group' # NOTE: The leading and trailing spaces here are important. Do not remove them. @@@@ -1626,14 +1629,14 @@@@ if env.TargetOSIs('linux'): d65 2 a66 1 @@@@ -1891,7 +1894,6 @@@@ if env.TargetOSIs('posix'): d68 1 a68 2 env.Append( CCFLAGS=["-fno-omit-frame-pointer", "-fno-strict-aliasing", a69 1 "-pthread", d72 11 a82 1 @@@@ -2533,9 +2535,9 @@@@ def doConfigure(myenv): a88 3 + //#if !__has_include() + //#error "libstdc++ from GCC 5.3.0 or newer is required" + //#endif d92 10 a101 10 @@@@ -2779,7 +2781,7 @@@@ def doConfigure(myenv): # myenv.Append( CCFLAGS=["/Zc:inline"]) - if myenv.ToolchainIs('gcc', 'clang'): + if myenv.ToolchainIs('gcc', 'clang') and get_option('runtime-hardening') == "on": # This tells clang/gcc to use the gold linker if it is available - we prefer the gold linker # because it is much faster. Don't use it if the user has already configured another linker # selection manually. @@@@ -3021,8 +3023,9 @@@@ def doConfigure(myenv): d113 1 a113 1 @@@@ -3368,7 +3371,7 @@@@ def doConfigure(myenv): @ 1.9 log @mongodb4: updated to 4.2.3 4.2.3: Issues fixed: SERVER-42565: Aggregations and find commands sort missing fields differently’ SERVER-44174: $push and $addToSet should restrict memory usage SERVER-40435: A clearJumboFlag command to clear the jumbo flag SERVER-45270: Increased vulnerability to slow DNS TOOLS-1952: Use –forceTableScan by default when running against WiredTiger nodes TOOLS-2453: Index keys not escaped correctly SERVER-45396: fix the “me” field in isMaster responses when using splithorizon SERVER-45309: Ensure bind credentials live longer than LDAP operations WT-5120: Checkpoint hangs when reconciliation doesn’t release the eviction generation 4.2.2: Issues fixed: SERVER-31083: Allow passing primary shard to “enableSharding” command for a new database SERVER-33272: The DatabaseHolder::close() function no longer requires a global write lock and neither does the dropDatabase command SERVER-44050: Arrays along ‘hashed’ index key path are not correctly rejected SERVER-43882: Building indexes for startup recovery uses unowned RecordData after yielding its cursor SERVER-44617: $regexFind crash when one of the capture group doesn’t match the input but pattern matches SERVER-44721: Shell KMS AWS support cannot decrypt responses WT-4961: Checkpoints with cache overflow must keep history for reads 4.2.1: Issues fixed: SERVER-37768: Platform Support: Add Community & Enterprise Debian 10 x64 SERVER-37772: Platform Support: Add Community & Enterprise RHEL 8 x64 SERVER-41506: Track metrics associated with a node calling an election SERVER-41499: Track number of elections called for each reason in serverStatus SERVER-42518: Wildcard index plans miss results when the query path has multiple subsequent array indexes SERVER-42856: Transactions with write can be sent to the wrong shard @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.8 2019/03/05 19:35:58 adam Exp $ d9 1 a9 1 --- SConstruct.orig 2019-12-04 23:29:59.000000000 +0000 d11 1 a11 1 @@@@ -1015,6 +1015,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d19 1 a19 1 @@@@ -1169,7 +1170,9 @@@@ def CheckForProcessor(context, which_arc d29 1 a29 1 @@@@ -1557,7 +1560,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': d38 1 a38 1 @@@@ -1593,14 +1596,14 @@@@ if env.TargetOSIs('linux'): d55 1 a55 1 @@@@ -1858,7 +1861,6 @@@@ if env.TargetOSIs('posix'): d63 1 a63 1 @@@@ -2500,9 +2502,9 @@@@ def doConfigure(myenv): d76 1 a76 1 @@@@ -2746,7 +2748,7 @@@@ def doConfigure(myenv): d85 13 a97 1 @@@@ -3332,7 +3334,7 @@@@ def doConfigure(myenv): @ 1.8 log @mongodb: updated to 4.0.6 4.0.6: Issues fixed: SERVER-37778: Platform Support: Add Community & Enterprise Ubuntu 18.04 (zSeries) SERVER-37777: Platform Support: Add Community SLES12 (zSeries) SERVER-37775: Platform Support: Add Community RHEL7 (zSeries) SERVER-39180: Wrong initial chunk owner shard can be selected when sharding non-empty collection with pre-created zones SERVER-32146: Log slow oplog entry application SERVER-38293: Make listDatabases understand collection privileges SERVER-38887: Mongo.getDBs() does not correctly inspect privileges 4.0.5: Issues fixed: SERVER-36437: The dbstats command should lock the database in MODE_IS instead of MODE_S SERVER-37182: Different values when referencing whole object vs. a field of that object after $arrayToObject SERVER-37200: $match stage following $listSessions not working against mongos SERVER-37557: Add startup warning about enableMajorityReadConcern and usage of arbiters 4.0.4: Issues fixed: SERVER-26854: LockStats for sub-operations should not include time for previous sub ops SERVER-35323: sessionId matching ignores userId part of the lsid SERVER-37058: Update with numeric field names inside an array can cause validation to fail SERVER-37132: Negation of $in with regex can incorrectly plan from the cache, leading to missing query results TOOLS-2069: mongoreplay does not support SCRAM-SHA-256 TOOLS-2131: mongorestore hang in replaying oplog with –archive and –oplogReplay option 4.0.3: Issues fixed: SERVER-19815: Make repair more robust with the WiredTiger storage engine SERVER-35989: db.collection.countDocuments() and db.collection.estimatedDocumentCount() helpers SERVER-36982: Reintroduce enableMajorityReadConcern:false server parameter 4.0.2: Issues fixed: SERVER-35720: Allow zones to be created on non-existent collection SERVER-35441: drop/dropDatabase does not cleanup config.tags SERVER-36102: Create initial chunks on appropriate shards for zoned sharding SERVER-36070: Aggregation with $out results in error when Auditing is enabled SERVER-34846: Covered index with collated field returns incorrect result when collation not involved in match or sort SERVER-34664: Commands that are unsupported in a transaction should error 4.0.1: Issues fixed: SERVER-33000: Platform Support: add Ubuntu 18.04. SERVER-34933: PCRE verb support. SERVER-35101: Handle bindIp argument that contains whitespaces. SERVER-36027: Enterprise build does not recognize the --redactClientLogData flag. @ text @d1 1 a1 1 $NetBSD$ d9 1 a9 1 --- SConstruct.orig 2019-01-30 14:26:33.000000000 +0000 d11 1 a11 1 @@@@ -974,6 +974,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d15 1 a15 1 + ENV = os.environ, d19 1 a19 1 @@@@ -1110,7 +1111,9 @@@@ def CheckForProcessor(context, which_arc d29 1 a29 1 @@@@ -1514,7 +1517,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS': d38 6 a43 1 @@@@ -1554,9 +1557,15 @@@@ elif env.TargetOSIs('freebsd'): a46 3 +elif env.TargetOSIs('dragonfly'): + env.Append( LIBS=["m", "kvm"] ) + d48 1 a48 1 env.Append( LIBS=["resolv"] ) d50 2 a51 4 +elif env.TargetOSIs('netbsd'): + env.Append( LIBS=["m", "kvm"] ) + elif env.TargetOSIs('openbsd'): d54 2 a55 1 @@@@ -1777,7 +1786,6 @@@@ if env.TargetOSIs('posix'): d59 1 a59 1 - "-ggdb", d63 1 a63 1 @@@@ -2413,9 +2421,9 @@@@ def doConfigure(myenv): d76 1 a76 1 @@@@ -2649,7 +2657,7 @@@@ def doConfigure(myenv): d85 1 a85 1 @@@@ -3202,7 +3210,7 @@@@ def doConfigure(myenv): a93 9 @@@@ -3427,7 +3435,7 @@@@ def doConfigure(myenv): outputIndex = next((idx for idx in [0,1] if conf.CheckAltivecVbpermqOutput(idx)), None) if outputIndex is not None: - conf.env.SetConfigHeaderDefine("MONGO_CONFIG_ALTIVEC_VEC_VBPERMQ_OUTPUT_INDEX", outputIndex) + conf.env.SetConfigHeaderDefine("MONGO_CONFIG_ALTIVEC_VEC_VBPERMQ_OUTPUT_INDEX", outputIndex) else: myenv.ConfError("Running on ppc64le, but can't find a correct vec_vbpermq output index. Compiler or platform not supported") @ 1.7 log @mongodb: fix scons-3.0 compatibility issues @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.6 2017/05/29 14:44:47 ryoon Exp $ d3 5 a7 2 Add support for NetBSD/Dragonfly, fix locations. Respect LDFLAGS and CXXFLAGS d9 1 a9 1 --- SConstruct.orig 2017-04-20 21:43:42.000000000 +0000 d11 1 a11 68 @@@@ -30,7 +30,7 @@@@ EnsureSConsVersion( 2, 3, 0 ) def print_build_failures(): from SCons.Script import GetBuildFailures for bf in GetBuildFailures(): - print "%s failed: %s" % (bf.node, bf.errstr) + print("%s failed: %s" % (bf.node, bf.errstr)) atexit.register(print_build_failures) def versiontuple(v): @@@@ -49,8 +49,12 @@@@ def get_running_os_name(): running_os = os.sys.platform if running_os.startswith('linux'): running_os = 'linux' + elif running_os.startswith('dragonfly'): + running_os = 'dragonfly' elif running_os.startswith('freebsd'): running_os = 'freebsd' + elif running_os.startswith('netbsd'): + running_os = 'netbsd' elif running_os.startswith('openbsd'): running_os = 'openbsd' elif running_os == 'sunos5': @@@@ -68,7 +72,7 @@@@ def env_get_os_name_wrapper(self): def is_os_raw(target_os, os_list_to_check): okay = False - posix_os_list = [ 'linux', 'openbsd', 'freebsd', 'osx', 'solaris' ] + posix_os_list = [ 'linux', 'openbsd', 'freebsd', 'osx', 'solaris', 'dragonfly', 'netbsd' ] for p in os_list_to_check: if p == 'posix' and target_os in posix_os_list: @@@@ -511,7 +515,7 @@@@ try: version_data = json.load(version_fp) if 'version' not in version_data: - print "version.json does not contain a version string" + print("version.json does not contain a version string") Exit(1) if 'githash' not in version_data: version_data['githash'] = utils.getGitVersion() @@@@ -519,7 +523,7 @@@@ try: except IOError as e: # If the file error wasn't because the file is missing, error out if e.errno != errno.ENOENT: - print "Error opening version.json: {0}".format(e.strerror) + print("Error opening version.json: {0}".format(e.strerror)) Exit(1) version_data = { @@@@ -528,7 +532,7 @@@@ except IOError as e: } except ValueError as e: - print "Error decoding version.json: {0}".format(e) + print("Error decoding version.json: {0}".format(e)) Exit(1) # Setup the command-line variables @@@@ -598,7 +602,7 @@@@ def variable_distsrc_converter(val): variables_files = variable_shlex_converter(get_option('variables-files')) for file in variables_files: - print "Using variable customization file %s" % file + print("Using variable customization file %s" % file) env_vars = Variables( files=variables_files, @@@@ -892,6 +896,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d19 1 a19 26 @@@@ -901,12 +906,12 @@@@ env.AddMethod(env_os_is_wrapper, 'Target env.AddMethod(env_get_os_name_wrapper, 'GetTargetOSName') def fatal_error(env, msg, *args): - print msg.format(*args) + print(msg.format(*args)) Exit(1) def conf_error(env, msg, *args): - print msg.format(*args) - print "See {0} for details".format(env['CONFIGURELOG'].abspath) + print(msg.format(*args)) + print("See {0} for details".format(env['CONFIGURELOG'].abspath)) Exit(1) @@@@ -926,7 +931,7 @@@@ else: env.AddMethod(lambda env: env['VERBOSE'], 'Verbose') if has_option('variables-help'): - print env_vars.GenerateHelpText(env) + print(env_vars.GenerateHelpText(env)) Exit(0) unknown_vars = env_vars.UnknownVariables() @@@@ -1029,7 +1034,9 @@@@ def CheckForProcessor(context, which_arc d21 11 a31 20 "windows": "_WIN32", "solaris": "__sun", + "dragonfly": "__DragonFly__", "freebsd": "__FreeBSD__", + "netbsd": "__NetBSD__", "openbsd": "__OpenBSD__", "osx": "__APPLE__", "linux": "__linux__", @@@@ -1124,7 +1131,7 @@@@ else: env['TARGET_ARCH'] = detected_processor if env['TARGET_OS'] not in os_macros: - print "No special config for [{0}] which probably means it won't work".format(env['TARGET_OS']) + print("No special config for [{0}] which probably means it won't work".format(env['TARGET_OS'])) elif not detectConf.CheckForOS(env['TARGET_OS']): env.ConfError("TARGET_OS ({0}) is not supported by compiler", env['TARGET_OS']) @@@@ -1360,7 +1367,7 @@@@ elif env['_LIBDEPS'] == '$_LIBDEPS_LIBS' libdeps.setup_environment(env, emitting_shared=(link_model.startswith("dynamic"))) d37 2 a38 13 env['LINK_WHOLE_ARCHIVE_START'] = '-Wl,--whole-archive' @@@@ -1388,10 +1395,24 @@@@ if env.TargetOSIs('linux'): elif env.TargetOSIs('solaris'): env.Append( LIBS=["socket","resolv","lgrp"] ) +elif os.sys.platform.startswith( "dragonfly" ): + env.Append( CPPPATH=[ "@@PREFIX@@/include" ] ) + env.Append( LIBPATH=[ "@@PREFIX@@/lib" ] ) + env.Append( LIBS=[ "m" ] ) + env.Append( LIBS=[ "kvm" ] ) + env.Append( CPPDEFINES=[ "__dragonfly__" ] ) + elif env.TargetOSIs('freebsd'): d42 8 a49 6 +elif os.sys.platform.startswith( "netbsd" ): + env.Append( CPPPATH=[ "@@PREFIX@@/include" ] ) + env.Append( LIBPATH=[ "@@PREFIX@@/lib" ] ) + env.Append( LIBS=[ "m" ] ) + env.Append( LIBS=[ "kvm" ] ) + env.Append( CPPDEFINES=[ "__netbsd__" ] ) d54 9 a62 11 @@@@ -1570,6 +1591,9 @@@@ if env.TargetOSIs('posix'): env.Append( CXXFLAGS=["-Woverloaded-virtual"] ) env.Append( LINKFLAGS=["-pthread"] ) + env.Append( CPPDEFINES=["XP_UNIX=1"] ) + env.Append( CXXFLAGS=os.environ['CXXFLAGS'] ) + env.Append( LINKFLAGS=os.environ['LDFLAGS'] ) # SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program # startup. @@@@ -2158,9 +2182,9 @@@@ def doConfigure(myenv): d75 10 a84 9 @@@@ -2764,6 +2788,7 @@@@ def doConfigure(myenv): # permit more than four parameters. "BOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD", "BOOST_SYSTEM_NO_DEPRECATED", + "BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE", ] ) @@@@ -2830,7 +2855,7 @@@@ def doConfigure(myenv): d93 9 @ 1.6 log @Update to 3.4.4 * Disable PaX MPROTECT for bin/mongo Changelog: 3.4.4 – Apr 21, 2017 Issues fixed: SERVER-18794: Add an aggregation operator $objectToArray to convert an object to an array of key, value pairs. SERVER-23310: Add an aggregation operator $arrayToObject to convert an array of pairs to an object. SERVER-22611: ChunkManager refresh can occasionally cause a full reload. 3.4.4 Changelog All JIRA issues closed in 3.4.4 3.4.3 – Mar 28, 2017 Issues fixed: SERVER-27863: Reschedule firing of early alarms in NetworkInterfaceASIO to avoid mongos crash. SERVER-28017: $ne should respect collection’s default collation. SERVER-27700: Improve WiredTiger performance on secondary when cache is full. 3.4.3 Changelog All JIRA issues closed in 3.4.3 3.4.2 – Feb 1, 2017 Issues fixed: SERVER-27125: Arbiters in pv1 should vote no in elections if they can see a healthy primary of equal or greater priority to the candidate. SERVER-27584 Add support for filter to listDatabases WT-2670 Inefficient I/O when read full DB (poor readahead) 3.4.2 Changelog All JIRA issues closed in 3.4.2 3.4.1 – Dec 20, 2016 Issues fixed: SERVER-27124: Disallow readConcern: majority reads on replica set protocolVersion 0 (pv0). SERVER-27201: $graphLookup triggers null pointer dereference. SERVER-27207: Find operation with a sort on a view via mongos may incorrectly return empty result set. SERVER-27213: Two $match pipeline stages can combine incorrectly to produce incorrect results. 3.4.1 Changelog All JIRA issues closed in 3.4.1 @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.5 2016/10/24 19:25:47 ryoon Exp $ d8 9 d39 36 d83 25 d118 9 @ 1.5 log @Fix replaced PREFIX in the patch @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.4 2016/06/17 11:51:08 fhajny Exp $ d4 3 a6 1 --- SConstruct.orig 2016-06-02 14:46:27.000000000 +0000 d8 1 a8 1 @@@@ -40,8 +40,12 @@@@ def get_running_os_name(): d21 1 a21 1 @@@@ -59,7 +63,7 @@@@ def env_get_os_name_wrapper(self): d30 1 a30 1 @@@@ -831,6 +835,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d38 1 a38 1 @@@@ -968,7 +973,9 @@@@ def CheckForProcessor(context, which_arc d48 1 a48 1 @@@@ -1233,7 +1240,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_OBJS': d57 1 a57 1 @@@@ -1261,10 +1268,24 @@@@ if env.TargetOSIs('linux'): d82 1 a82 3 @@@@ -1432,8 +1453,11 @@@@ if env.TargetOSIs('posix'): if not has_option("disable-warnings-as-errors"): env.Append( CCFLAGS=["-Werror"] ) d84 2 a86 1 env.Append( CXXFLAGS=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] ) a87 1 env.Append( LINKFLAGS=["-fPIC", "-pthread"] ) d92 14 a105 1 @@@@ -2406,6 +2430,7 @@@@ def doConfigure(myenv): d113 1 a113 1 @@@@ -2472,7 +2497,7 @@@@ def doConfigure(myenv): @ 1.4 log @Update databases/mongodb to 3.2.7. 3.2.7 Jun 7, 2016 Issues fixed: SERVER-24054: JS segmentation fault on load of certain NaNs. SERVER-24058: Connection pool asio doesn't honor setup timeouts. SERVER-24117: Mongo binaries ELF stack has become executable. 3.2.6 Apr 28, 2016 First production release of the in-memory storage engine. Issues fixed: SERVER-22970: Background index build may result in extra index key entries that do not correspond to indexed documents. SERVER-22043: mongo shell method count() ignores read preference. 3.2.5 Apr 14, 2016 Issues fixed: SERVER-22964: IX GlobalLock held while waiting for WiredTiger cache eviction. SERVER-22831: Low query rate with heavy cache pressure and an idle collection. SERVER-21681: Include index size stats for in-memory storage engine. @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.3 2016/02/12 03:37:24 ryoon Exp $ d60 2 a61 2 + env.Append( CPPPATH=[ "/usr/pkg/include" ] ) + env.Append( LIBPATH=[ "/usr/pkg/lib" ] ) d71 2 a72 2 + env.Append( CPPPATH=[ "/usr/pkg/include" ] ) + env.Append( LIBPATH=[ "/usr/pkg/lib" ] ) @ 1.3 log @Update to 3.2.1 * Change JavaScript engine from V8 to SpiderMonkey. Changelog: 3.2.1 – Jan 12, 2016 Fixed error where during a regular shutdown of a replica set, secondaries may mark certain replicated but yet to be applied operations as successfully applied: SERVER-21868. Improve insert workload performance with WiredTiger on Windows: SERVER-20262. Fixed long-running transactions during chunk moves: SERVER-21366 All issues closed in 3.2.1 3.0.9 – Jan 26, 2016 Fixed issue where queries which specify sort and batch size can return results out of order if documents are concurrently updated. SERVER-19996 Fixed performance issue where large amounts of create and drop collections can cause listDatabases to be slow under WiredTiger. SERVER-20961 Modified the authentication failure message to include the client IP address. SERVER-22054 All issues closed in 3.0.9 3.0.8 – Dec 15, 2015 Fixed issue where findAndModify on mongos can upsert to the wrong shard. SERVER-20407. Fixed WiredTiger commit visibility issue which caused document not found. SERVER-21275. Fixed issue where the oplog can grow to 3x configured size. SERVER-21553 All issues closed in 3.0.8 @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.2 2015/05/05 15:54:49 joerg Exp $ d4 1 a4 1 --- SConstruct.orig 2016-01-05 18:31:44.000000000 +0000 d28 1 a28 10 @@@@ -754,7 +758,7 @@@@ def printLocalInfo(): printLocalInfo() -boostLibs = [ "thread" , "filesystem" , "program_options", "system", "regex", "chrono" ] +boostLibs = [ "thread" , "filesystem" , "program_options", "system", "regex", "chrono" ] onlyServer = len( COMMAND_LINE_TARGETS ) == 0 or ( len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) in [ "mongod" , "mongos" , "test" ] ) @@@@ -815,6 +819,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, d36 1 a36 1 @@@@ -925,7 +930,9 @@@@ def CheckForProcessor(context, which_arc d46 1 a46 1 @@@@ -1184,7 +1191,7 @@@@ if env['_LIBDEPS'] == '$_LIBDEPS_OBJS': d55 1 a55 1 @@@@ -1212,10 +1219,24 @@@@ if env.TargetOSIs('linux'): d80 1 a80 1 @@@@ -1382,8 +1403,11 @@@@ if env.TargetOSIs('posix'): d92 1 a92 1 @@@@ -2245,6 +2269,7 @@@@ def doConfigure(myenv): d100 1 a100 1 @@@@ -2311,7 +2336,7 @@@@ def doConfigure(myenv): @ 1.2 log @Fix missing include for free(3). Preserve our environment. @ text @d1 1 a1 1 $NetBSD: patch-SConstruct,v 1.1 2015/05/02 08:10:33 ryoon Exp $ d4 1 a4 1 --- SConstruct.orig 2015-04-08 20:28:08.000000000 +0000 d6 32 a37 26 @@@@ -53,7 +53,9 @@@@ nix = False linux = False darwin = False windows = False +dragonfly = False freebsd = False +netbsd = False openbsd = False solaris = False @@@@ -65,8 +67,12 @@@@ elif platform.startswith("linux"): platform = "linux" elif "sunos5" == platform: solaris = True +elif platform.startswith( "dragonfly" ): + dragonfly = True elif platform.startswith( "freebsd" ): freebsd = True +elif platform.startswith( "netbsd" ): + netbsd = True elif platform.startswith( "openbsd" ): openbsd = True elif "win32" == platform: @@@@ -571,6 +577,7 @@@@ envDict = dict(BUILD_ROOT=buildDir, CONFIGUREDIR=sconsDataDir.Dir('sconf_temp'), CONFIGURELOG=sconsDataDir.File('config.log'), d39 3 a41 1 + ENV = os.environ d44 22 a65 3 if windows: @@@@ -848,6 +855,12 @@@@ elif solaris: env.Append( CPPDEFINES=[ "__sunos__" ] ) d72 1 d75 1 a75 1 elif freebsd: a76 3 env.Append( EXTRACPPPATH=[ "/usr/local/include" ] ) @@@@ -855,6 +868,12 @@@@ elif freebsd: env.Append( CPPDEFINES=[ "__freebsd__" ] ) d83 1 d86 5 a90 4 elif openbsd: env.Append( EXTRACPPPATH=[ "/usr/local/include" ] ) env.Append( EXTRALIBPATH=[ "/usr/local/lib" ] ) @@@@ -1020,8 +1039,11 @@@@ if nix: a92 1 env.Append( CPPDEFINES=["_FILE_OFFSET_BITS=64"] ) d101 10 a110 2 @@@@ -2163,7 +2185,7 @@@@ def doConfigure(myenv): Exit(1) d113 2 a114 2 - if freebsd or openbsd: + if freebsd or openbsd or netbsd or dragonfly: d116 2 a117 11 print("Cannot find libexecinfo, please install devel/libexecinfo.") Exit(1) @@@@ -2409,7 +2431,7 @@@@ Export("mongoCodeVersion") Export("usev8") Export("v8version v8suffix") Export("boostSuffix") -Export("darwin windows solaris linux freebsd nix openbsd") +Export("darwin windows solaris linux freebsd nix openbsd netbsd dragonfly") Export('module_sconscripts') Export("debugBuild optBuild") Export("s3push") @ 1.1 log @Import mongodb-3.0.2 as databases/mongodb from pkgsrc-wip/mongodb. Packged by jafour1 and updated by some users. Mongo (from "humongous") is a high-performance, open source, schema-free, document-oriented database. It features: document data model with dynamic schemas; full, flexible index support and rich queries; auto-Sharding for horizontal scalability; built-in replication for high availability; text search; advanced security; aggregation Framework and MapReduce; large media storage with GridFS. @ text @d1 1 a1 1 $NetBSD$ d29 9 a37 1 @@@@ -848,6 +854,12 @@@@ elif solaris: d42 2 a43 2 + env.Append( CPPPATH=[ "@@PREFIX@@/include" ] ) + env.Append( LIBPATH=[ "@@PREFIX@@/lib" ] ) d50 1 a50 1 @@@@ -855,6 +867,12 @@@@ elif freebsd: d55 2 a56 2 + env.Append( CPPPATH=[ "@@PREFIX@@/include" ] ) + env.Append( LIBPATH=[ "@@PREFIX@@/lib" ] ) d63 1 a63 1 @@@@ -1020,8 +1038,11 @@@@ if nix: d75 1 a75 1 @@@@ -2163,7 +2184,7 @@@@ def doConfigure(myenv): d84 1 a84 1 @@@@ -2409,7 +2430,7 @@@@ Export("mongoCodeVersion") @