summary refs log tree commit diff
diff options
context:
space:
mode:
authorRodney Lorrimar <dev@rodney.id.au>2016-09-13 16:18:46 +0100
committerRodney Lorrimar <dev@rodney.id.au>2016-09-17 10:43:58 +0100
commit6d7b77df0a400648112e1dc04c6b55c3f9450117 (patch)
tree4a44226393ca93a2796dfc43edce23b4a4170b5c
parent92a7e574ef0cc3002f377246d73500d768e225ce (diff)
downloadnixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar.gz
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar.bz2
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar.lz
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar.xz
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.tar.zst
nixlib-6d7b77df0a400648112e1dc04c6b55c3f9450117.zip
mongodb: Fix default storage engine on i686
MongoDB will refuse to start on i686 because the default database engine
"wiredTiger" doesn't support it. To reduce user annoyance, the default
engine should be changed to the pre-3.0 engine "mmapv1".

Fedora have also patched it:
http://pkgs.fedoraproject.org/cgit/rpms/mongodb.git/commit/?id=b64d6b3337bffdeea0b7fa530ea02b977c364e08
-rw-r--r--pkgs/servers/nosql/mongodb/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/nosql/mongodb/default.nix b/pkgs/servers/nosql/mongodb/default.nix
index ab4524e69593..ee1987bd7e33 100644
--- a/pkgs/servers/nosql/mongodb/default.nix
+++ b/pkgs/servers/nosql/mongodb/default.nix
@@ -80,6 +80,11 @@ in stdenv.mkDerivation rec {
     substituteInPlace src/third_party/s2/s2cap.cc --replace drem remainder
     substituteInPlace src/third_party/s2/s2latlng.cc --replace drem remainder
     substituteInPlace src/third_party/s2/s2latlngrect.cc --replace drem remainder
+  '' + stdenv.lib.optionalString stdenv.isi686 ''
+
+    # don't fail by default on i686
+    substituteInPlace src/mongo/db/storage/storage_options.h \
+      --replace 'engine("wiredTiger")' 'engine("mmapv1")'
   '';
 
   buildPhase = ''