git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #22050 from Avaq/update-mongodb

mongodb: 3.2.9 -> 3.4.1

commitc8dd4e76269c374453141a6821f56f83da274e5c authorDaiderd Jordan <daiderd@gmail.com> dateWed 1 Nov 2017, 14:23 (9 years ago) parent33cdc2ba387a0f
2 files changed+5−34
pkgs/servers/nosql/mongodb/default.nix+5−9 pkgs/servers/nosql/mongodb/valgrind-include.patch−25
pkgs/servers/nosql/mongodb/default.nix+5−9
@@ -7,7 +7,7 @@
77
88with stdenv.lib;
99
10−let version = "3.2.9";
10+let version = "3.4.2";
1111 system-libraries = [
1212 "pcre"
1313 #"asio" -- XXX use package?
@@ -43,8 +43,8 @@ in stdenv.mkDerivation rec {
4343 name = "mongodb-${version}";
4444
4545 src = fetchurl {
46− url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
47− sha256 = "06q6j2bjy31pjwqws53wdpmn2x8w2hafzsnv1s3wx15pc9vq3y15";
46+ url = "https://fastdl.mongodb.org/src/mongodb-src-r${version}.tar.gz";
47+ sha256 = "0n8vspccrpd2z9xk3yjpz4gprd730dfacw914ksjzz9iadn0zdi9";
4848 };
4949
5050 nativeBuildInputs = [ scons ];
@@ -52,12 +52,6 @@ in stdenv.mkDerivation rec {
5252
5353 patches =
5454 [
55− # When not building with the system valgrind, the build should use the
56− # vendored header file - regardless of whether or not we're using the system
57− # tcmalloc - so we need to lift the include path manipulation out of the
58− # conditional.
59− ./valgrind-include.patch
60−
6155 # MongoDB keeps track of its build parameters, which tricks nix into
6256 # keeping dependencies to build inputs in the final output.
6357 # We remove the build flags from buildInfo data.
@@ -87,6 +81,8 @@ in stdenv.mkDerivation rec {
8781 --replace 'engine("wiredTiger")' 'engine("mmapv1")'
8882 '';
8983
84+ NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.cc.isClang "-Wno-unused-command-line-argument";
85+
9086 buildPhase = ''
9187 scons -j $NIX_BUILD_CORES core --release ${other-args}
9288 '';
pkgs/servers/nosql/mongodb/valgrind-include.patchdeleted−25
@@ -1,25 +0,0 @@
1−diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript
2−index 6add602..6e232d8 100644
3−--- a/src/mongo/util/SConscript
4−+++ b/src/mongo/util/SConscript
5−@@ -241,9 +241,6 @@ if get_option('allocator') == 'tcmalloc':
6− # Add in the include path for our vendored tcmalloc.
7− tcmspEnv.InjectThirdPartyIncludePaths('gperftools')
8−
9−- # Include valgrind since tcmalloc disables itself while running under valgrind
10−- tcmspEnv.InjectThirdPartyIncludePaths('valgrind')
11−-
12− # If our changes to tcmalloc are ever upstreamed, this should become set based on a top
13− # level configure check, though its effects should still be scoped just to these files.
14− tcmspEnv.Append(
15−@@ -252,6 +249,10 @@ if get_option('allocator') == 'tcmalloc':
16− ]
17− )
18−
19−+ # Include valgrind since tcmalloc disables itself while running under valgrind
20−+ if not use_system_version_of_library('valgrind'):
21−+ tcmspEnv.InjectThirdPartyIncludePaths('valgrind')
22−+
23− tcmspEnv.Library(
24− target='tcmalloc_set_parameter',
25− source=[