mongodb: 3.4.20 -> 3.4.22, 3.6.12 -> 3.6.13, 4.0.9 -> 4.0.11
This commit is contained in:
parent
97c4dff158
commit
165d8bda82
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, fetchpatch, scons, boost, gperftools, pcre-cpp, snappy, zlib
|
{ stdenv, fetchurl, fetchpatch, scons, boost, gperftools, pcre-cpp, snappy, zlib,
|
||||||
, libyamlcpp, sasl, openssl, libpcap, wiredtiger, Security, python27, libtool
|
libyamlcpp, sasl, openssl, libpcap, wiredtiger, Security, python27, curl, CoreFoundation, cctools
|
||||||
, curl }:
|
}:
|
||||||
|
|
||||||
# Note:
|
# Note:
|
||||||
# The command line tools are written in Go as part of a different package (mongodb-tools)
|
# The command line tools are written in Go as part of a different package (mongodb-tools)
|
||||||
@ -35,20 +35,9 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ scons ];
|
nativeBuildInputs = [ scons ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
sasl
|
sasl boost gperftools pcre-cpp snappy
|
||||||
boost
|
zlib libyamlcpp sasl openssl.dev openssl.out libpcap python curl
|
||||||
gperftools
|
] ++ stdenv.lib.optionals stdenv.isDarwin [ Security CoreFoundation cctools ];
|
||||||
pcre-cpp
|
|
||||||
snappy
|
|
||||||
zlib
|
|
||||||
libyamlcpp
|
|
||||||
sasl
|
|
||||||
openssl.dev
|
|
||||||
openssl.out
|
|
||||||
libpcap
|
|
||||||
python
|
|
||||||
curl
|
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ Security libtool ];
|
|
||||||
|
|
||||||
# MongoDB keeps track of its build parameters, which tricks nix into
|
# MongoDB keeps track of its build parameters, which tricks nix into
|
||||||
# keeping dependencies to build inputs in the final output.
|
# keeping dependencies to build inputs in the final output.
|
||||||
@ -60,6 +49,9 @@ in stdenv.mkDerivation rec {
|
|||||||
substituteInPlace SConstruct \
|
substituteInPlace SConstruct \
|
||||||
--replace "env = Environment(" "env = Environment(ENV = os.environ,"
|
--replace "env = Environment(" "env = Environment(ENV = os.environ,"
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace src/third_party/asio-master/asio/include/asio/detail/config.hpp --replace ASIO_HAS_STD_EXPERIMENTAL_STRING_VIEW ASIO_HAS_STD_STRING_VIEW
|
||||||
|
|
||||||
|
substituteInPlace src/third_party/mozjs-45/extract/js/src/jsmath.cpp --replace 'defined(HAVE_SINCOS)' 0
|
||||||
|
|
||||||
substituteInPlace src/third_party/s2/s1angle.cc --replace drem remainder
|
substituteInPlace src/third_party/s2/s1angle.cc --replace drem remainder
|
||||||
substituteInPlace src/third_party/s2/s1interval.cc --replace drem remainder
|
substituteInPlace src/third_party/s2/s1interval.cc --replace drem remainder
|
||||||
@ -80,7 +72,7 @@ in stdenv.mkDerivation rec {
|
|||||||
"--release"
|
"--release"
|
||||||
"--ssl"
|
"--ssl"
|
||||||
#"--rocksdb" # Don't have this packaged yet
|
#"--rocksdb" # Don't have this packaged yet
|
||||||
"--wiredtiger=${if stdenv.is64bit then "on" else "off"}"
|
"--wiredtiger=on"
|
||||||
"--js-engine=mozjs"
|
"--js-engine=mozjs"
|
||||||
"--use-sasl-client"
|
"--use-sasl-client"
|
||||||
"--disable-warnings-as-errors"
|
"--disable-warnings-as-errors"
|
||||||
@ -92,6 +84,10 @@ in stdenv.mkDerivation rec {
|
|||||||
sconsFlags+=" CXX=$CXX"
|
sconsFlags+=" CXX=$CXX"
|
||||||
'' + optionalString stdenv.isAarch64 ''
|
'' + optionalString stdenv.isAarch64 ''
|
||||||
sconsFlags+=" CCFLAGS='-march=armv8-a+crc'"
|
sconsFlags+=" CCFLAGS='-march=armv8-a+crc'"
|
||||||
|
'' + optionalString stdenv.isDarwin ''
|
||||||
|
sconsFlags+=" CPPPATH=${openssl.dev}/include"
|
||||||
|
'' + optionalString stdenv.isDarwin ''
|
||||||
|
sconsFlags+=" LIBPATH=${openssl.out}/lib"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
27
pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch
Normal file
27
pkgs/servers/nosql/mongodb/mozjs-45_fix-3-byte-opcode.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# HG changeset patch
|
||||||
|
# User Dan Gohman <sunfish@mozilla.com>
|
||||||
|
# Parent d9b405d82cffb07343a5f2fd941e029298c7f6c4
|
||||||
|
# Bug 1390214 - IonMonkey: Don't test for a 3-byte opcode in a 2-byte opcode predicate.
|
||||||
|
# https://bug1390214.bmoattachments.org/attachment.cgi?id=8902972
|
||||||
|
|
||||||
|
diff --git a/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h b/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h
|
||||||
|
--- a/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h
|
||||||
|
+++ b/src/third_party/mozjs-45/extract/js/src/jit/x86-shared/Encoding-x86-shared.h
|
||||||
|
@@ -310,17 +310,16 @@ enum ThreeByteOpcodeID {
|
||||||
|
|
||||||
|
// Test whether the given opcode should be printed with its operands reversed.
|
||||||
|
inline bool IsXMMReversedOperands(TwoByteOpcodeID opcode)
|
||||||
|
{
|
||||||
|
switch (opcode) {
|
||||||
|
case OP2_MOVSD_WsdVsd: // also OP2_MOVPS_WpsVps
|
||||||
|
case OP2_MOVAPS_WsdVsd:
|
||||||
|
case OP2_MOVDQ_WdqVdq:
|
||||||
|
- case OP3_PEXTRD_EdVdqIb:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ThreeByteEscape {
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, callPackage, lib, sasl, boost, Security }:
|
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||||
|
|
||||||
let
|
let
|
||||||
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; };
|
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; inherit CoreFoundation; inherit cctools; };
|
||||||
in
|
in
|
||||||
buildMongoDB {
|
buildMongoDB {
|
||||||
version = "3.4.20";
|
version = "3.4.22";
|
||||||
sha256 = "15avrhakbspz0q1w5n7dqzjjfkxi7md64a9axl97gfxi4ln7mhz0";
|
sha256 = "1rizrr69b26y7fb973n52hk387sf3mxzqg8wka4f3zdjdidfyiny";
|
||||||
patches = [
|
patches = [
|
||||||
./forget-build-dependencies-3-4.patch
|
./forget-build-dependencies-3-4.patch
|
||||||
];
|
];
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{ stdenv, callPackage, lib, sasl, boost, Security }:
|
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||||
|
|
||||||
let
|
let
|
||||||
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; };
|
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; inherit CoreFoundation; inherit cctools; };
|
||||||
in
|
in
|
||||||
buildMongoDB {
|
buildMongoDB {
|
||||||
version = "3.6.12";
|
version = "3.6.13";
|
||||||
sha256 = "1fi1ccid4rnfjg6yn3183qrhjqc8hz7jfgdpwp1dy6piw6z85n3l";
|
sha256 = "1mbvk4bmabrswjdm01jssxcygjpq5799zqyx901nsi12vlcymwg4";
|
||||||
patches = [
|
patches = [
|
||||||
./forget-build-dependencies.patch
|
./forget-build-dependencies.patch
|
||||||
];
|
];
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
{ stdenv, callPackage, lib, sasl, boost, Security }:
|
{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }:
|
||||||
|
|
||||||
let
|
let
|
||||||
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; };
|
buildMongoDB = callPackage ./mongodb.nix { inherit sasl; inherit boost; inherit Security; inherit CoreFoundation; inherit cctools; };
|
||||||
in
|
in
|
||||||
buildMongoDB {
|
buildMongoDB {
|
||||||
version = "4.0.9";
|
version = "4.0.11";
|
||||||
sha256 = "0klm6dl1pr9wq4ghm2jjn3wzs1zpj1aabqjqjfddanxq2an7scph";
|
sha256 = "0kry8kzzpah0l7j8xa333y1ixwvarc28ip3f6lx5590yy11j8ry2";
|
||||||
patches = [
|
patches = [
|
||||||
./forget-build-dependencies.patch
|
./forget-build-dependencies.patch
|
||||||
|
./mozjs-45_fix-3-byte-opcode.patch
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -15899,20 +15899,22 @@ in
|
|||||||
mongodb-3_4 = callPackage ../servers/nosql/mongodb/v3_4.nix {
|
mongodb-3_4 = callPackage ../servers/nosql/mongodb/v3_4.nix {
|
||||||
sasl = cyrus_sasl;
|
sasl = cyrus_sasl;
|
||||||
boost = boost160;
|
boost = boost160;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin) cctools;
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
mongodb-3_6 = callPackage ../servers/nosql/mongodb/v3_6.nix {
|
mongodb-3_6 = callPackage ../servers/nosql/mongodb/v3_6.nix {
|
||||||
sasl = cyrus_sasl;
|
sasl = cyrus_sasl;
|
||||||
boost = boost160;
|
boost = boost160;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin) cctools;
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
mongodb-4_0 = callPackage ../servers/nosql/mongodb/v4_0.nix {
|
mongodb-4_0 = callPackage ../servers/nosql/mongodb/v4_0.nix {
|
||||||
sasl = cyrus_sasl;
|
sasl = cyrus_sasl;
|
||||||
boost = boost160;
|
boost = boost169;
|
||||||
openssl = openssl_1_0_2;
|
inherit (darwin) cctools;
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx-sso = callPackage ../servers/nginx-sso { };
|
nginx-sso = callPackage ../servers/nginx-sso { };
|
||||||
|
Loading…
Reference in New Issue
Block a user