pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/mongodb Update to 3.4.4
details: https://anonhg.NetBSD.org/pkgsrc/rev/cbe2e28f9b6d
branches: trunk
changeset: 362977:cbe2e28f9b6d
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Mon May 29 14:44:46 2017 +0000
description:
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
diffstat:
databases/mongodb/Makefile | 23 +-
databases/mongodb/PLIST | 3 +-
databases/mongodb/distinfo | 23 +-
databases/mongodb/patches/patch-SConstruct | 43 ++-
databases/mongodb/patches/patch-debian_mongod.conf | 8 +-
databases/mongodb/patches/patch-src_mongo_db_repl_isself.c | 10 +-
databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c | 12 +
databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h | 120 ++++++++++
databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h | 13 +
databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h | 6 +-
databases/mongodb/patches/patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h | 6 +-
11 files changed, 217 insertions(+), 50 deletions(-)
diffs (truncated from 470 to 300 lines):
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/Makefile
--- a/databases/mongodb/Makefile Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/Makefile Mon May 29 14:44:46 2017 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2017/04/30 01:21:30 ryoon Exp $
+# $NetBSD: Makefile,v 1.22 2017/05/29 14:44:46 ryoon Exp $
-DISTNAME= mongodb-src-r3.2.10
+DISTNAME= mongodb-src-r3.4.4
PKGNAME= ${DISTNAME:S/src-r//:S/-rc/rc/}
-PKGREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://fastdl.mongodb.org/src/
@@ -11,6 +10,8 @@
COMMENT= NoSQL distributed document-oriented database
LICENSE= gnu-agpl-v3 # Client and tools licensed under apache-2.0
+EXTRACT_USING= bsdtar
+
NO_CONFIGURE= yes
USE_LANGUAGES= c c++
@@ -31,7 +32,7 @@
.include "../../mk/bsd.prefs.mk"
-GCC_REQD+= 4.8.2
+GCC_REQD+= 5.3.0
CPPFLAGS+= -fno-jump-tables
@@ -81,10 +82,14 @@
SUBST_SED.path+= -e 's|/etc|${PKG_SYSCONFDIR}|'
SUBST_VARS.path= MONGODB_DBPATH MONGODB_LOGPATH
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.boost-libs}/lib
+
MONGODB_MAN_FILES= bsondump.1 mongo.1 mongod.1 mongodump.1 mongoexport.1 \
mongofiles.1 mongoimport.1 mongooplog.1 mongoperf.1 \
mongorestore.1 mongos.1 mongosniff.1 mongostat.1 mongotop.1
+NOT_PAX_MPROTECT_SAFE+= bin/mongo
+
RCD_SCRIPTS= mongodb
INSTALLATION_DIRS+= share/doc/mongodb share/examples/mongodb ${PKGMANDIR}/man1
@@ -94,10 +99,12 @@
post-extract:
chmod -R g-w ${WRKSRC}
- cp -r ${WRKSRC}/src/third_party/mozjs-38/platform/x86_64/freebsd \
- ${WRKSRC}/src/third_party/mozjs-38/platform/x86_64/dragonfly
- cp -r ${WRKSRC}/src/third_party/mozjs-38/platform/x86_64/openbsd \
- ${WRKSRC}/src/third_party/mozjs-38/platform/x86_64/netbsd
+ 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 ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_openbsd.cpp \
+ ${WRKSRC}/src/mongo/db/ftdc/ftdc_system_stats_netbsd.cpp
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SCONS_BIN} ${SCONS_ARGS} core
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/PLIST
--- a/databases/mongodb/PLIST Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/PLIST Mon May 29 14:44:46 2017 +0000
@@ -1,9 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2015/05/02 08:10:33 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/05/29 14:44:46 ryoon Exp $
bin/mongo
bin/mongod
bin/mongoperf
bin/mongos
-bin/mongosniff
man/man1/bsondump.1
man/man1/mongo.1
man/man1/mongod.1
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/distinfo
--- a/databases/mongodb/distinfo Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/distinfo Mon May 29 14:44:46 2017 +0000
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.17 2016/10/24 19:25:47 ryoon Exp $
+$NetBSD: distinfo,v 1.18 2017/05/29 14:44:46 ryoon Exp $
-SHA1 (mongodb-src-r3.2.10.tar.gz) = 1b60e390d7b89aa20f159114fb7c94ecaea132f6
-RMD160 (mongodb-src-r3.2.10.tar.gz) = 24bc6881712d247672b8f02326123fb8ed30bec7
-SHA512 (mongodb-src-r3.2.10.tar.gz) = b9592c7cb0184ae10e1e7092b3fa0fc52b10acef1d7beffb2c2409867e237042d7765cc7191972ded10c278756cde1ff7b23b57fb7efd8363e18f2ce994985e9
-Size (mongodb-src-r3.2.10.tar.gz) = 29062097 bytes
-SHA1 (patch-SConstruct) = 493ae46399e4cb28e85d2c3a06789dc5dad81fb2
-SHA1 (patch-debian_mongod.conf) = d4146b3d62b4472d55609c7f6aaa596f8f893d1f
+SHA1 (mongodb-src-r3.4.4.tar.gz) = 6f9f2d8a3c1c2f4089fd03f8be0b86ff0431d955
+RMD160 (mongodb-src-r3.4.4.tar.gz) = 2a65f380204a92762ceea2be35dbe2c671e106f6
+SHA512 (mongodb-src-r3.4.4.tar.gz) = dbae89b49c363e7258021cd31385e4449bfdfdfd5adfcb1683e4431372731e58ec33bf8f7576d2d52659a52461bd6a32fbc67d5c6e36d52184ec1aabb345d940
+Size (mongodb-src-r3.4.4.tar.gz) = 39867133 bytes
+SHA1 (patch-SConstruct) = 5e920c85dd27f1dd761fe7083074fed0eb1edeae
+SHA1 (patch-debian_mongod.conf) = e5074b5f7ad50560b99d652feab58da764ba542c
SHA1 (patch-src_mongo_base_initializer.h) = add32c5940c922a98122d0e6883eb3ad52dc25c5
SHA1 (patch-src_mongo_db_fts_unicode_string.cpp) = 98c5b1b39c07190f08ec9f22ec3002b0a803f72f
-SHA1 (patch-src_mongo_db_repl_isself.c) = 8cb386b7b0a8925908f20ac9b9b18cac796367ba
+SHA1 (patch-src_mongo_db_repl_isself.c) = 82321c918b91ce1a68ce79c14589126aca6baf96
SHA1 (patch-src_mongo_platform_random.cpp) = 59c31e55fc2dc5a2b82b8f16dacf8736d8354cdb
SHA1 (patch-src_mongo_platform_stack__locator__dragonfly.cpp) = fb885c491e4de1cfbc2875620d854af726e5b45f
SHA1 (patch-src_mongo_platform_stack__locator__netbsd.cpp) = 3b09e86b2401555b6ab4c31d14c0693d766119c2
@@ -16,8 +16,11 @@
SHA1 (patch-src_mongo_util_intrusive__counter.h) = 9f1af59e1bc86e33bf183a6dda1737007afc7a18
SHA1 (patch-src_mongo_util_processinfo__dragonfly.cpp) = 62c236ce820dfe81f45625b15e022cca0f2c10ee
SHA1 (patch-src_mongo_util_processinfo__netbsd.cpp) = 4c746c4c3a79df849994c00a4639662d8a2c799d
-SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_build_js-confdefs.h) = 81107c2d368884dc0d2fddc03862fe58f2035206
-SHA1 (patch-src_third__party_mozjs-38_platform_x86__64_netbsd_include_js-config.h) = f2b90732fd18048cf7feac44cca54c99a2420a4a
+SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c) = ef3b260e8a49227cbbabf427500b7c70bce15083
+SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_op__system.h) = 39f6fba82e2870ee4a5d99785033621225a72a16
+SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = d3a85d3a3b33691466c65cdf51c56f221429aea9
+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_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94
SHA1 (patch-src_third__party_wiredtiger_SConscript) = 9b11a7703f4db845fb38ba996238fe1ca7f24767
SHA1 (patch-src_third__party_wiredtiger_build__dragonfly_wiredtiger__config.h) = 0b00da401f832d985107dfa5dcc6447db4beec6d
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/patches/patch-SConstruct
--- a/databases/mongodb/patches/patch-SConstruct Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/patches/patch-SConstruct Mon May 29 14:44:46 2017 +0000
@@ -1,9 +1,11 @@
-$NetBSD: patch-SConstruct,v 1.5 2016/10/24 19:25:47 ryoon Exp $
+$NetBSD: patch-SConstruct,v 1.6 2017/05/29 14:44:47 ryoon Exp $
Add support for NetBSD/Dragonfly, fix locations.
---- SConstruct.orig 2016-06-02 14:46:27.000000000 +0000
+Respect LDFLAGS and CXXFLAGS
+
+--- SConstruct.orig 2017-04-20 21:43:42.000000000 +0000
+++ SConstruct
-@@ -40,8 +40,12 @@ def get_running_os_name():
+@@ -49,8 +49,12 @@ def get_running_os_name():
running_os = os.sys.platform
if running_os.startswith('linux'):
running_os = 'linux'
@@ -16,7 +18,7 @@
elif running_os.startswith('openbsd'):
running_os = 'openbsd'
elif running_os == 'sunos5':
-@@ -59,7 +63,7 @@ def env_get_os_name_wrapper(self):
+@@ -68,7 +72,7 @@ def env_get_os_name_wrapper(self):
def is_os_raw(target_os, os_list_to_check):
okay = False
@@ -25,7 +27,7 @@
for p in os_list_to_check:
if p == 'posix' and target_os in posix_os_list:
-@@ -831,6 +835,7 @@ envDict = dict(BUILD_ROOT=buildDir,
+@@ -892,6 +896,7 @@ envDict = dict(BUILD_ROOT=buildDir,
INSTALL_DIR=installDir,
CONFIG_HEADER_DEFINES={},
LIBDEPS_TAG_EXPANSIONS=[],
@@ -33,7 +35,7 @@
)
env = Environment(variables=env_vars, **envDict)
-@@ -968,7 +973,9 @@ def CheckForProcessor(context, which_arc
+@@ -1029,7 +1034,9 @@ def CheckForProcessor(context, which_arc
os_macros = {
"windows": "_WIN32",
"solaris": "__sun",
@@ -43,7 +45,7 @@
"openbsd": "__OpenBSD__",
"osx": "__APPLE__",
"linux": "__linux__",
-@@ -1233,7 +1240,7 @@ if env['_LIBDEPS'] == '$_LIBDEPS_OBJS':
+@@ -1360,7 +1367,7 @@ elif env['_LIBDEPS'] == '$_LIBDEPS_LIBS'
libdeps.setup_environment(env, emitting_shared=(link_model.startswith("dynamic")))
@@ -52,7 +54,7 @@
env['LINK_LIBGROUP_START'] = '-Wl,--start-group'
env['LINK_LIBGROUP_END'] = '-Wl,--end-group'
env['LINK_WHOLE_ARCHIVE_START'] = '-Wl,--whole-archive'
-@@ -1261,10 +1268,24 @@ if env.TargetOSIs('linux'):
+@@ -1388,10 +1395,24 @@ if env.TargetOSIs('linux'):
elif env.TargetOSIs('solaris'):
env.Append( LIBS=["socket","resolv","lgrp"] )
@@ -77,19 +79,30 @@
elif env.TargetOSIs('openbsd'):
env.Append( LIBS=[ "kvm" ] )
-@@ -1432,8 +1453,11 @@ if env.TargetOSIs('posix'):
- if not has_option("disable-warnings-as-errors"):
- env.Append( CCFLAGS=["-Werror"] )
+@@ -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=["-Wnon-virtual-dtor", "-Woverloaded-virtual"] )
+ env.Append( CXXFLAGS=os.environ['CXXFLAGS'] )
- env.Append( LINKFLAGS=["-fPIC", "-pthread"] )
+ env.Append( LINKFLAGS=os.environ['LDFLAGS'] )
# SERVER-9761: Ensure early detection of missing symbols in dependent libraries at program
# startup.
-@@ -2406,6 +2430,7 @@ def doConfigure(myenv):
+@@ -2158,9 +2182,9 @@ def doConfigure(myenv):
+ if usingLibStdCxx:
+ def CheckModernLibStdCxx(context):
+ test_body = """
+- #if !__has_include(<experimental/filesystem>)
+- #error "libstdc++ from GCC 5.3.0 or newer is required"
+- #endif
++ //#if !__has_include(<experimental/filesystem>)
++ //#error "libstdc++ from GCC 5.3.0 or newer is required"
++ //#endif
+ """
+
+ context.Message('Checking for libstdc++ 5.3.0 or better... ')
+@@ -2764,6 +2788,7 @@ def doConfigure(myenv):
# permit more than four parameters.
"BOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD",
"BOOST_SYSTEM_NO_DEPRECATED",
@@ -97,7 +110,7 @@
]
)
-@@ -2472,7 +2497,7 @@ def doConfigure(myenv):
+@@ -2830,7 +2855,7 @@ def doConfigure(myenv):
myenv.ConfError("Couldn't find SASL header/libraries")
# requires ports devel/libexecinfo to be installed
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/patches/patch-debian_mongod.conf
--- a/databases/mongodb/patches/patch-debian_mongod.conf Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/patches/patch-debian_mongod.conf Mon May 29 14:44:46 2017 +0000
@@ -1,14 +1,14 @@
-$NetBSD: patch-debian_mongod.conf,v 1.3 2016/02/12 03:37:24 ryoon Exp $
+$NetBSD: patch-debian_mongod.conf,v 1.4 2017/05/29 14:44:47 ryoon Exp $
Use proper paths in default config file.
---- debian/mongod.conf.orig 2016-01-05 18:31:44.000000000 +0000
+--- debian/mongod.conf.orig 2017-04-20 21:43:42.000000000 +0000
+++ debian/mongod.conf
@@ -5,7 +5,7 @@
# Where and how to store data.
storage:
- dbPath: /var/lib/mongodb
-+ dbPath: @MONGODB_DBPATH@
++ dbPath: /var/mongodb
journal:
enabled: true
# engine:
@@ -17,7 +17,7 @@
destination: file
logAppend: true
- path: /var/log/mongodb/mongod.log
-+ path: @MONGODB_DBPATH@/mongod.log
++ path: /var/mongodb/mongod.log
# network interfaces
net:
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/patches/patch-src_mongo_db_repl_isself.c
--- a/databases/mongodb/patches/patch-src_mongo_db_repl_isself.c Mon May 29 14:40:23 2017 +0000
+++ b/databases/mongodb/patches/patch-src_mongo_db_repl_isself.c Mon May 29 14:44:46 2017 +0000
@@ -1,11 +1,11 @@
-$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.3 2016/02/12 03:37:24 ryoon Exp $
+$NetBSD: patch-src_mongo_db_repl_isself.c,v 1.4 2017/05/29 14:44:47 ryoon Exp $
* Add NetBSD support.
---- src/mongo/db/repl/isself.cpp.orig 2016-01-05 18:31:44.000000000 +0000
+--- src/mongo/db/repl/isself.cpp.orig 2017-04-20 21:43:42.000000000 +0000
+++ src/mongo/db/repl/isself.cpp
-@@ -48,7 +48,7 @@
- #include "mongo/util/log.h"
+@@ -50,7 +50,7 @@
+ #include "mongo/util/scopeguard.h"
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || \
- defined(__OpenBSD__)
@@ -13,7 +13,7 @@
#define FASTPATH_UNIX 1
#endif
-@@ -61,7 +61,7 @@
+@@ -63,7 +63,7 @@
#include <ifaddrs.h>
#include <netdb.h>
diff -r cc8e08413bae -r cbe2e28f9b6d databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/mongodb/patches/patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c Mon May 29 14:44:46 2017 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_float128_dpml__exception.c,v 1.1 2017/05/29 14:44:47 ryoon Exp $
+
+--- src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c.orig 2017-04-20 21:43:42.000000000 +0000
++++ src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c
+@@ -131,6 +131,7 @@
+ #if !defined(DPML_SIGNAL) && !defined(MINIMAL_SILENT_MODE_EXCEPTION_HANDLER) && \
+ !defined(wnt)
+
++# include <sys/types.h>
+ # include <sys/signal.h>
+ # define DPML_SIGNAL(p) raise(SIGFPE)
Home |
Main Index |
Thread Index |
Old Index