pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mongodb mongodb4: updated to 4.2.3
details: https://anonhg.NetBSD.org/pkgsrc/rev/09ac71476e4c
branches: trunk
changeset: 422689:09ac71476e4c
user: adam <adam%pkgsrc.org@localhost>
date: Sat Feb 01 20:00:08 2020 +0000
description:
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
diffstat:
databases/mongodb/Makefile | 27 +-
databases/mongodb/PLIST | 5 +-
databases/mongodb/distinfo | 32 +-
databases/mongodb/options.mk | 21 +-
databases/mongodb/patches/patch-SConstruct | 50 +--
databases/mongodb/patches/patch-site__scons_mongo_platform.py | 16 +-
databases/mongodb/patches/patch-src_mongo_base_initializer.h | 8 +-
databases/mongodb/patches/patch-src_mongo_db_matcher_expression__leaf.cpp | 22 -
databases/mongodb/patches/patch-src_mongo_db_query_collation_collator__interface__icu.h | 35 ++
databases/mongodb/patches/patch-src_mongo_platform_random.cpp | 14 +-
databases/mongodb/patches/patch-src_mongo_util_processinfo__netbsd.cpp | 32 ++-
databases/mongodb/patches/patch-src_mongo_util_time__support.cpp | 10 +-
databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h | 118 +++++----
databases/mongodb/patches/patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp | 17 +
databases/mongodb/patches/patch-src_third__party_mozjs-60_platform_x86__64_netbsd_build_js-confdefs.h | 21 +
15 files changed, 246 insertions(+), 182 deletions(-)
diffs (truncated from 769 to 300 lines):
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/Makefile
--- a/databases/mongodb/Makefile Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/Makefile Sat Feb 01 20:00:08 2020 +0000
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.49 2020/01/18 21:48:56 jperkin Exp $
+# $NetBSD: Makefile,v 1.50 2020/02/01 20:00:08 adam Exp $
-DISTNAME= mongodb-src-r4.0.6
+DISTNAME= mongodb-src-r4.2.3
PKGNAME= ${DISTNAME:S/src-r//}
-PKGREVISION= 10
CATEGORIES= databases
MASTER_SITES= http://fastdl.mongodb.org/src/
-MAINTAINER= pkgsrc-users%netbsd.org@localhost
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://www.mongodb.com/
COMMENT= NoSQL distributed document-oriented database
LICENSE= server-side-public-license # Client and tools licensed under apache-2.0
@@ -16,8 +15,8 @@
EXTRACT_USING= bsdtar
-BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah
-BUILD_DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
+BUILD_DEPENDS+= ${PYPKGPREFIX}-cheetah-[0-9]*:../../devel/py-cheetah3
+BUILD_DEPENDS+= ${PYPKGPREFIX}-psutil-[0-9]*:../../sysutils/py-psutil
BUILD_DEPENDS+= ${PYPKGPREFIX}-regex-[0-9]*:../../textproc/py-regex
BUILD_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
@@ -31,9 +30,10 @@
USE_TOOLS+= pkg-config
SCONS_ARGS= ${_MAKE_JOBS}
+SCONS_ARGS+= --dbg=off # on: argument parsing problem
SCONS_ARGS+= --disable-warnings-as-errors
SCONS_ARGS+= --release
-SCONS_ARGS+= --runtime-hardening=off # does not produce executables
+SCONS_ARGS+= --runtime-hardening=off # on: does not produce executables
#SCONS_ARGS+= --use-system-asio
SCONS_ARGS+= --use-system-boost
SCONS_ARGS+= --use-system-icu
@@ -45,8 +45,9 @@
#SCONS_ARGS+= --use-system-wiredtiger
SCONS_ARGS+= --use-system-yaml
SCONS_ARGS+= --use-system-zlib
+SCONS_ARGS+= --use-system-zstd
-PYTHON_VERSIONS_ACCEPTED= 27
+PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../mk/bsd.prefs.mk"
@@ -123,10 +124,10 @@
# Copy system specific files for NetBSD and DragonFly
post-extract:
${CHMOD} -R g-w ${WRKSRC}
- ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/freebsd \
- ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/dragonfly
- ${CP} -R ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/openbsd \
- ${WRKSRC}/src/third_party/mozjs-45/platform/x86_64/netbsd
+ ${CP} -R ${WRKSRC}/src/third_party/mozjs-60/platform/x86_64/freebsd \
+ ${WRKSRC}/src/third_party/mozjs-60/platform/x86_64/dragonfly
+ ${CP} -R ${WRKSRC}/src/third_party/mozjs-60/platform/x86_64/freebsd \
+ ${WRKSRC}/src/third_party/mozjs-60/platform/x86_64/netbsd
${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_openbsd.cpp \
${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_netbsd.cpp
${CP} ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_freebsd.cpp \
@@ -156,11 +157,11 @@
--prefix=${DESTDIR}${PREFIX} install
post-install:
- ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/mongodb
${INSTALL_MAN} ${WRKSRC}/debian/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/debian/mongod.conf \
${DESTDIR}${PREFIX}/share/examples/mongodb
+.include "../../archivers/zstd/buildlink3.mk"
.include "../../databases/mongo-c-driver/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
#.include "../../databases/wiredtiger/buildlink3.mk"
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/PLIST
--- a/databases/mongodb/PLIST Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/PLIST Sat Feb 01 20:00:08 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/03/05 19:35:58 adam Exp $
+@comment $NetBSD: PLIST,v 1.4 2020/02/01 20:00:08 adam Exp $
bin/install_compass
bin/mongo
bin/mongod
@@ -10,9 +10,10 @@
man/man1/mongoexport.1
man/man1/mongofiles.1
man/man1/mongoimport.1
+man/man1/mongoldap.1
+man/man1/mongoreplay.1
man/man1/mongorestore.1
man/man1/mongos.1
man/man1/mongostat.1
man/man1/mongotop.1
-share/doc/mongodb/README
share/examples/mongodb/mongod.conf
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/distinfo
--- a/databases/mongodb/distinfo Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/distinfo Sat Feb 01 20:00:08 2020 +0000
@@ -1,25 +1,25 @@
-$NetBSD: distinfo,v 1.24 2019/03/05 19:35:58 adam Exp $
+$NetBSD: distinfo,v 1.25 2020/02/01 20:00:08 adam Exp $
-SHA1 (mongodb-src-r4.0.6.tar.gz) = 460caeb57bae951c0c019e0519c58695902d3f9c
-RMD160 (mongodb-src-r4.0.6.tar.gz) = 4bcb89f6e386699723119da71071a9bfb15742e9
-SHA512 (mongodb-src-r4.0.6.tar.gz) = 72e04154cf221833522bb0c2cc99acc2a86d20e2dcbf1f8c6ff0a870edf7b2529a55b6821c664805c00c12a311ae374a276ef1e3ccea1ed84fb125bb8726906a
-Size (mongodb-src-r4.0.6.tar.gz) = 49511958 bytes
-SHA1 (patch-SConstruct) = ec9987638b202ed8314667993c03414a1601563c
-SHA1 (patch-site__scons_mongo_platform.py) = ae62ec86206b9e20bd82c4b22621cab887390c72
+SHA1 (mongodb-src-r4.2.3.tar.gz) = 89c9f46a350d3149c2d9b486618f6c8fd62529e2
+RMD160 (mongodb-src-r4.2.3.tar.gz) = ce03973377b61285d973b2814680dda6520be2be
+SHA512 (mongodb-src-r4.2.3.tar.gz) = 60e9091cfab4a189a937dfa7ce232eb6ead2ca192c916579f4fb5da2040aa340ae9de0ea8c7a4ccb0edcfdbdf6e666144657f171c3f23c0a62bccf27cd351c69
+Size (mongodb-src-r4.2.3.tar.gz) = 61565615 bytes
+SHA1 (patch-SConstruct) = 027d8c9bd69256fe93ac40ae3e14e052ac367eb5
+SHA1 (patch-site__scons_mongo_platform.py) = 6a6daba04876f9779a26c579e6f6a66f55e1cbe6
SHA1 (patch-site__scons_site__tools_libtool.py) = 2fb5947703f4292acc1306f92ca7938e8cbc62e0
-SHA1 (patch-src_mongo_base_initializer.h) = 675d655f4472f055a1d10144bbbebd75fbde6cb2
-SHA1 (patch-src_mongo_db_matcher_expression__leaf.cpp) = f95cd3fc88f1dfdf0d3aa5431d0c3407da020dfa
+SHA1 (patch-src_mongo_base_initializer.h) = efaec2e3b5b8a4bfb15c65c6952924cd1469bdc7
+SHA1 (patch-src_mongo_db_query_collation_collator__interface__icu.h) = f6382a3dcdbaed26fe692aa1ea43b2640168b253
SHA1 (patch-src_mongo_db_repl_isself.c) = 82321c918b91ce1a68ce79c14589126aca6baf96
-SHA1 (patch-src_mongo_platform_random.cpp) = e6265dc33d1de7e9bfce63fa96aad67bb762e789
+SHA1 (patch-src_mongo_platform_random.cpp) = 0b42d1b8bf41f8a7448daca0b72bfed1ba462b99
SHA1 (patch-src_mongo_platform_stack__locator__netbsd.cpp) = 0826e976048c79598ead6146f143ab3b4a2577fb
SHA1 (patch-src_mongo_shell_linenoise__utf8.h) = a29cbf034716ce48a23192320caf4928282b6c1a
SHA1 (patch-src_mongo_util_intrusive__counter.h) = 4c8e0d2e834686403a557de489ad518071851911
-SHA1 (patch-src_mongo_util_processinfo__netbsd.cpp) = fec6c7304f253204ccc03c11e93f6c430453c980
-SHA1 (patch-src_mongo_util_time__support.cpp) = 29dc7b0a0d278d2f92ae63882e87ce674d258ccf
-SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h) = 6cb2473f13ec3f8946959f3dfb94a70e95965703
+SHA1 (patch-src_mongo_util_processinfo__netbsd.cpp) = 9f3161c0693b3905299e0e022b9eb68d466d30c4
+SHA1 (patch-src_mongo_util_time__support.cpp) = d576d8d39b10c496e492c8f0faf7e81f09ca875c
+SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h) = 3c168389b9288df9055df0b01e8d26cf2f67293e
SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = aed897879501d74b19dd06a142ded0abf910898d
-SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_config.hpp) = c7464a56a2eb03fdb93f8ab90bf5732f6a0f9095
-SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h) = c2ad1041b5c1ff9fac9085d2a8963781f51873a8
-SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h) = 7ddbb4e3bf4126a1be2195acc82ff859e8130a01
+SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp) = 49a74ef12f20c4b243d328a2cd8317aa1a668b18
+SHA1 (patch-src_third__party_mozjs-60_platform_x86__64_netbsd_build_js-confdefs.h) = 2474fc221f0c59381c8529e986db1f3f67c405ec
SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94
SHA1 (patch-src_third__party_wiredtiger_SConscript) = e97dea310463f246c0a8007a1ba9c5385105036d
+SHA1 (patch-src_third__party_wiredtiger_src_os__posix_os__fs.c) = 374deec76d92ee55587a9216b881bf1a1d35799a
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/options.mk
--- a/databases/mongodb/options.mk Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/options.mk Sat Feb 01 20:00:08 2020 +0000
@@ -1,23 +1,14 @@
-# $NetBSD: options.mk,v 1.4 2019/03/05 19:35:58 adam Exp $
+# $NetBSD: options.mk,v 1.5 2020/02/01 20:00:08 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mongodb
-PKG_SUPPORTED_OPTIONS= ssl wiredtiger
+PKG_SUPPORTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
-SCONS_ARGS+= --ssl=openssl
+SCONS_ARGS+= --ssl=on
+SCONS_ARGS+= --ssl-provider=openssl
+.else
+SCONS_ARGS+= --ssl=off
.endif
-
-# The prospect of using databases/wiredtiger is unclear yet;
-# MongoDB doesn't provide guarantees for non-bundled WiredTiger:
-# https://groups.google.com/forum/#!msg/mongodb-dev/31FQSo4KVCI/Fx-WtJ9fzU4J
-.if !empty(PKG_OPTIONS:Mwiredtiger)
-. if ${MACHINE_ARCH} == "x86_64"
-PKG_FAIL_REASON+= "WiredTiger is not supported on 32-bit platforms"
-. endif
-SCONS_ARGS+= --wiredtiger=on
-.else
-SCONS_ARGS+= --wiredtiger=off
-.endif
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/patches/patch-SConstruct
--- a/databases/mongodb/patches/patch-SConstruct Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/patches/patch-SConstruct Sat Feb 01 20:00:08 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-SConstruct,v 1.8 2019/03/05 19:35:58 adam Exp $
+$NetBSD: patch-SConstruct,v 1.9 2020/02/01 20:00:08 adam Exp $
Add support for NetBSD and Dragonfly.
Fix locations.
@@ -6,17 +6,17 @@
Don't mess with the linker.
Respect LDFLAGS and CXXFLAGS.
---- SConstruct.orig 2019-01-30 14:26:33.000000000 +0000
+--- SConstruct.orig 2019-12-04 23:29:59.000000000 +0000
+++ SConstruct
-@@ -974,6 +974,7 @@ envDict = dict(BUILD_ROOT=buildDir,
+@@ -1015,6 +1015,7 @@ envDict = dict(BUILD_ROOT=buildDir,
INSTALL_DIR=installDir,
CONFIG_HEADER_DEFINES={},
LIBDEPS_TAG_EXPANSIONS=[],
-+ ENV = os.environ,
++ ENV=os.environ,
)
env = Environment(variables=env_vars, **envDict)
-@@ -1110,7 +1111,9 @@ def CheckForProcessor(context, which_arc
+@@ -1169,7 +1170,9 @@ def CheckForProcessor(context, which_arc
os_macros = {
"windows": "defined(_WIN32)",
"solaris": "defined(__sun)",
@@ -26,7 +26,7 @@
"openbsd": "defined(__OpenBSD__)",
"iOS": "defined(__APPLE__) && TARGET_OS_IOS && !TARGET_OS_SIMULATOR",
"iOS-sim": "defined(__APPLE__) && TARGET_OS_IOS && TARGET_OS_SIMULATOR",
-@@ -1514,7 +1517,7 @@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS':
+@@ -1557,7 +1560,7 @@ if env['_LIBDEPS'] == '$_LIBDEPS_LIBS':
if not env.TargetOSIs('solaris', 'darwin', 'windows', 'openbsd'):
env.Tool('thin_archive')
@@ -35,31 +35,32 @@
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.
-@@ -1554,9 +1557,15 @@ elif env.TargetOSIs('freebsd'):
+@@ -1593,14 +1596,14 @@ if env.TargetOSIs('linux'):
+ 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('dragonfly'):
-+ env.Append( LIBS=["m", "kvm"] )
-+
elif env.TargetOSIs('darwin'):
- env.Append( LIBS=["resolv"] )
+ env.Append( LIBS=["resolv"] )
-+elif env.TargetOSIs('netbsd'):
-+ env.Append( LIBS=["m", "kvm"] )
-+
- elif env.TargetOSIs('openbsd'):
+-elif env.TargetOSIs('openbsd'):
++elif env.TargetOSIs('netbsd', 'openbsd'):
env.Append( LIBS=[ "kvm" ] )
-@@ -1777,7 +1786,6 @@ if env.TargetOSIs('posix'):
+ elif env.TargetOSIs('windows'):
+@@ -1858,7 +1861,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=["-fno-omit-frame-pointer",
"-fno-strict-aliasing",
-- "-ggdb",
+- "-ggdb" if not env.TargetOSIs('emscripten') else "-g",
"-pthread",
"-Wall",
"-Wsign-compare",
-@@ -2413,9 +2421,9 @@ def doConfigure(myenv):
+@@ -2500,9 +2502,9 @@ def doConfigure(myenv):
if usingLibStdCxx:
def CheckModernLibStdCxx(context):
test_body = """
@@ -72,7 +73,7 @@
"""
context.Message('Checking for libstdc++ 5.3.0 or better... ')
-@@ -2649,7 +2657,7 @@ def doConfigure(myenv):
+@@ -2746,7 +2748,7 @@ def doConfigure(myenv):
#
myenv.Append( CCFLAGS=["/Zc:inline"])
@@ -81,7 +82,7 @@
# 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.
-@@ -3202,7 +3210,7 @@ def doConfigure(myenv):
+@@ -3332,7 +3334,7 @@ def doConfigure(myenv):
myenv.ConfError("Couldn't find SASL header/libraries")
# requires ports devel/libexecinfo to be installed
@@ -90,12 +91,3 @@
if not conf.CheckLib("execinfo"):
myenv.ConfError("Cannot find libexecinfo, please install devel/libexecinfo.")
-@@ -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")
-
diff -r aa5f3bd1da9a -r 09ac71476e4c databases/mongodb/patches/patch-site__scons_mongo_platform.py
--- a/databases/mongodb/patches/patch-site__scons_mongo_platform.py Sat Feb 01 19:56:54 2020 +0000
+++ b/databases/mongodb/patches/patch-site__scons_mongo_platform.py Sat Feb 01 20:00:08 2020 +0000
@@ -1,8 +1,8 @@
Home |
Main Index |
Thread Index |
Old Index