diff options
author | Élie BRAMI <Et7f3@MacBook-Pro-de-Elie.local> | 2022-07-05 02:07:26 +0200 |
---|---|---|
committer | Et7f3 <elie.brami@epita.fr> | 2022-07-20 02:30:22 +0200 |
commit | eedcccd2914cdbf08c2854005571d9400c5ca974 (patch) | |
tree | 016aac752b21706c469984b9efd9ad36c716785e | |
parent | 2ddc70dc48634288fe30f9b7207af3c3d6e8f912 (diff) | |
download | nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar.gz nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar.bz2 nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar.lz nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar.xz nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.tar.zst nixpkgs-eedcccd2914cdbf08c2854005571d9400c5ca974.zip |
mongodb: fix double link of isNamedError on darwin.
duplicate symbol 'mongo::error_details::isNamedCode<100>' in: build/nixos/mongo/libmongodmain.a(db.o) build/nixos/third_party/murmurhash3/libmurmurhash3.a(MurmurHash3.o) duplicate symbol 'mongo::error_details::isNamedCode<11000>' in: build/nixos/mongo/libmongodmain.a(db.o) build/nixos/third_party/murmurhash3/libmurmurhash3.a(MurmurHash3.o) ld: 380094 duplicate symbols for architecture x86_64 clang-11: error: linker command failed with exit code 1 (use -v to see invocation) scons: *** [build/nixos/mongo/mongod] Error 1 scons: building terminated because of errors. build/nixos/mongo/mongo failed: Error 1 build/nixos/mongo/mongos failed: Error 1 build/nixos/mongo/mongod failed: Error 1
-rw-r--r-- | pkgs/servers/nosql/mongodb/v3_6.nix | 11 | ||||
-rw-r--r-- | pkgs/servers/nosql/mongodb/v4_0.nix | 9 |
2 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/servers/nosql/mongodb/v3_6.nix b/pkgs/servers/nosql/mongodb/v3_6.nix index 4fc9e3ea906..08dfc45ead1 100644 --- a/pkgs/servers/nosql/mongodb/v3_6.nix +++ b/pkgs/servers/nosql/mongodb/v3_6.nix @@ -1,4 +1,4 @@ -{ stdenv, callPackage, lib, sasl, boost, Security, CoreFoundation, cctools }: +{ stdenv, callPackage, fetchpatch, lib, sasl, boost, Security, CoreFoundation, cctools }: let buildMongoDB = callPackage ./mongodb.nix { @@ -12,5 +12,12 @@ in buildMongoDB { version = "3.6.23"; sha256 = "sha256-EJpIerW4zcGJvHfqJ65fG8yNsLRlUnRkvYfC+jkoFJ4="; patches = [ ./forget-build-dependencies.patch ] - ++ lib.optionals stdenv.isDarwin [ ./asio-no-experimental-string-view.patch ]; + ++ lib.optionals stdenv.isDarwin [ + ./asio-no-experimental-string-view.patch + (fetchpatch { + name = "fix double link of isNamedError."; + url = "https://github.com/mongodb/mongo/commit/9c6751b9765d269b667324bb2efe1ca76a916d20.patch"; + sha256 = "sha256-4mcafqhBh7039ocEI9d/gXWck51X68PqtWtz4dapwwI="; + }) + ]; } diff --git a/pkgs/servers/nosql/mongodb/v4_0.nix b/pkgs/servers/nosql/mongodb/v4_0.nix index 9d28a9185ba..a77d5fee2f2 100644 --- a/pkgs/servers/nosql/mongodb/v4_0.nix +++ b/pkgs/servers/nosql/mongodb/v4_0.nix @@ -21,5 +21,12 @@ in buildMongoDB { sha256 = "sha256-RvfCP462RG+ZVjcb23DgCuxCdfPl2/UgH8N7FgCghGI="; }) ] - ++ lib.optionals stdenv.isDarwin [ ./asio-no-experimental-string-view.patch ]; + ++ lib.optionals stdenv.isDarwin [ + ./asio-no-experimental-string-view.patch + (fetchpatch { + name = "fix double link of isNamedError."; + url = "https://github.com/mongodb/mongo/commit/9c6751b9765d269b667324bb2efe1ca76a916d20.patch"; + sha256 = "sha256-4mcafqhBh7039ocEI9d/gXWck51X68PqtWtz4dapwwI="; + }) + ]; } |