about summary refs log tree commit diff
path: root/pkgs/servers/nosql
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-04-10 11:17:52 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-04-10 11:17:52 +0200
commit30f14243c33f1b386273d08a4776aa679c42143d (patch)
treebd123d5c2ab4fef012ae7de6a225c092f8d611b8 /pkgs/servers/nosql
parent50fccad5828fb459760fd7578951bb961a18c0fc (diff)
parent2463e0917318581da94e7ba92703b63128c40424 (diff)
downloadnixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar.gz
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar.bz2
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar.lz
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar.xz
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.tar.zst
nixlib-30f14243c33f1b386273d08a4776aa679c42143d.zip
Merge branch 'master' into closure-size
Comparison to master evaluations on Hydra:
  - 1255515 for nixos
  - 1255502 for nixpkgs
Diffstat (limited to 'pkgs/servers/nosql')
-rw-r--r--pkgs/servers/nosql/mongodb/2.4.8.nix45
-rw-r--r--pkgs/servers/nosql/rethinkdb/default.nix6
-rw-r--r--pkgs/servers/nosql/rethinkdb/glibc-2.23.patch111
3 files changed, 47 insertions, 115 deletions
diff --git a/pkgs/servers/nosql/mongodb/2.4.8.nix b/pkgs/servers/nosql/mongodb/2.4.8.nix
new file mode 100644
index 000000000000..448d260bdb9d
--- /dev/null
+++ b/pkgs/servers/nosql/mongodb/2.4.8.nix
@@ -0,0 +1,45 @@
+# This derivation was resurrected from 4c8ec5e12e187347fd97b1a1a9a43eb19e009ed0
+# by elitak for use with the Ubiquiti mFi Controller package, which breaks at
+# runtime on mongodb3+ and jre8+. We will need to pull in sufficiently old
+# versions of boost and v8 to build this, as well.
+{ stdenv, fetchurl, scons, boost155, v8_3_14, gperftools, pcre, snappy }:
+with stdenv.lib;
+let
+  version = "2.4.8";
+in
+stdenv.mkDerivation rec {
+  name = "mongodb-${version}";
+
+  src = fetchurl {
+    url = "http://downloads.mongodb.org/src/mongodb-src-r${version}.tar.gz";
+    sha256 = "1p6gnharypglfp39halp72fig96fqjhakyy7m76a1prxwpjkqw7x";
+  };
+
+  nativeBuildInputs = [ scons boost155 v8_3_14 gperftools pcre snappy ];
+
+  postPatch = ''
+    substituteInPlace SConstruct \
+        --replace "Environment( BUILD_DIR" "Environment( ENV = os.environ, BUILD_DIR" \
+        --replace 'CCFLAGS=["-Werror", "-pipe"]' 'CCFLAGS=["-pipe"]'
+  '';
+
+  NIX_CFLAGS_COMPILE = "-Wno-unused-local-typedefs";
+
+  buildPhase = ''
+    export SCONSFLAGS="-j$NIX_BUILD_CORES"
+    scons all --use-system-all
+  '';
+
+  installPhase = ''
+    mkdir -p $out/lib
+    scons install --use-system-all --full --prefix=$out
+  '';
+
+  meta = {
+    description = "A scalable, high-performance, open source NoSQL database";
+    homepage = http://www.mongodb.org;
+    license = licenses.agpl3;
+    maintainers = with maintainers; [ bluescreen303 elitak ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/servers/nosql/rethinkdb/default.nix b/pkgs/servers/nosql/rethinkdb/default.nix
index f1b57546c7d7..e61a94e7f07b 100644
--- a/pkgs/servers/nosql/rethinkdb/default.nix
+++ b/pkgs/servers/nosql/rethinkdb/default.nix
@@ -4,15 +4,13 @@
 
 stdenv.mkDerivation rec {
   name = "rethinkdb-${version}";
-  version = "2.2.4";
+  version = "2.3.0";
 
   src = fetchurl {
     url = "http://download.rethinkdb.com/dist/${name}.tgz";
-    sha256 = "0zs07g7arrrvm85mqbkffyzgd255qawn64r6iqdws25lj1kq2qim";
+    sha256 = "0b787ibnrmziypiw86yx4gpmlj4ima6j6g9hzshbpilxy7lrq1cb";
   };
 
-  patches = [ ./glibc-2.23.patch ];
-
   postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
     sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' external/v8_3.30.33.16/build/gyp/pylib/gyp/xcode_emulation.py
 
diff --git a/pkgs/servers/nosql/rethinkdb/glibc-2.23.patch b/pkgs/servers/nosql/rethinkdb/glibc-2.23.patch
deleted file mode 100644
index 818ea1245648..000000000000
--- a/pkgs/servers/nosql/rethinkdb/glibc-2.23.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From 84be09f314c4cbf88b4ac8fe9dbff1d36f0f5781 Mon Sep 17 00:00:00 2001
-From: Daniel Mewes <daniel@rethinkdb.com>
-Date: Fri, 5 Feb 2016 18:45:28 -0800
-Subject: [PATCH] Alpinelinux compilation fixes
-
-by @clandmeter
----
- src/containers/buffer_group.hpp                            |  1 +
- src/containers/printf_buffer.hpp                           |  1 +
- src/errors.cc                                              |  2 +-
- src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc |  4 ++--
- src/rdb_protocol/geo/s2/util/math/mathlimits.h             | 12 ++++++------
- src/threading.hpp                                          |  2 ++
- 6 files changed, 13 insertions(+), 9 deletions(-)
-
-diff --git a/src/containers/buffer_group.hpp b/src/containers/buffer_group.hpp
-index 865c5cb..0403db6 100644
---- a/src/containers/buffer_group.hpp
-+++ b/src/containers/buffer_group.hpp
-@@ -3,6 +3,7 @@
- #define CONTAINERS_BUFFER_GROUP_HPP_
- 
- #include <stdlib.h>
-+#include <sys/types.h>
- #include <unistd.h>
- #include <vector>
- 
-diff --git a/src/containers/printf_buffer.hpp b/src/containers/printf_buffer.hpp
-index b7a5154..76959f3 100644
---- a/src/containers/printf_buffer.hpp
-+++ b/src/containers/printf_buffer.hpp
-@@ -5,6 +5,7 @@
- #include <stdarg.h>
- #include <stdio.h>
- #include <string.h>
-+#include <sys/types.h>
- 
- // Cannot include utils.hpp, we are included by utils.hpp.
- #include "errors.hpp"
-diff --git a/src/errors.cc b/src/errors.cc
-index d40c04f..39efc9f 100644
---- a/src/errors.cc
-+++ b/src/errors.cc
-@@ -89,7 +89,7 @@ void report_fatal_error(const char *file, int line, const char *msg, ...) {
- }
- 
- const char *errno_string_maybe_using_buffer(int errsv, char *buf, size_t buflen) {
--#ifdef _GNU_SOURCE
-+#ifdef __GLIBC__
-     return strerror_r(errsv, buf, buflen);
- #elif defined(_WIN32)
-     UNUSED errno_t res = strerror_s(buf, buflen, errsv);
-diff --git a/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc b/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
-index 3b07392..aa1a1d3 100644
---- a/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
-+++ b/src/rdb_protocol/geo/s2/util/math/exactfloat/exactfloat.cc
-@@ -110,9 +110,9 @@ static int BN_ext_count_low_zero_bits(const BIGNUM* bn) {
- ExactFloat::ExactFloat(double v) {
-   BN_init(&bn_);
-   sign_ = signbit(v) ? -1 : 1;
--  if (isnan(v)) {
-+  if (std::isnan(v)) {
-     set_nan();
--  } else if (isinf(v)) {
-+  } else if (std::isinf(v)) {
-     set_inf(sign_);
-   } else {
-     // The following code is much simpler than messing about with bit masks,
-diff --git a/src/rdb_protocol/geo/s2/util/math/mathlimits.h b/src/rdb_protocol/geo/s2/util/math/mathlimits.h
-index 5148422..86af72d 100644
---- a/src/rdb_protocol/geo/s2/util/math/mathlimits.h
-+++ b/src/rdb_protocol/geo/s2/util/math/mathlimits.h
-@@ -14,7 +14,7 @@
- #define UTIL_MATH_MATHLIMITS_H__
- 
- #include <string.h>
--#include <math.h>
-+#include <cmath>
- #include <cfloat>
- 
- #include "rdb_protocol/geo/s2/base/basictypes.h"
-@@ -195,11 +195,11 @@ DECL_UNSIGNED_INT_LIMITS(unsigned long long int)
-   static bool IsNegInf(const Type x) { return _fpclass(x) == _FPCLASS_NINF; }
- #else
- #define DECL_FP_LIMIT_FUNCS \
--  static bool IsFinite(const Type x) { return !isinf(x)  &&  !isnan(x); } \
--  static bool IsNaN(const Type x) { return isnan(x); } \
--  static bool IsInf(const Type x) { return isinf(x); } \
--  static bool IsPosInf(const Type x) { return isinf(x)  &&  x > 0; } \
--  static bool IsNegInf(const Type x) { return isinf(x)  &&  x < 0; }
-+  static bool IsFinite(const Type x) { return !std::isinf(x)  &&  !std::isnan(x); } \
-+  static bool IsNaN(const Type x) { return std::isnan(x); } \
-+  static bool IsInf(const Type x) { return std::isinf(x); } \
-+  static bool IsPosInf(const Type x) { return std::isinf(x)  &&  x > 0; } \
-+  static bool IsNegInf(const Type x) { return std::isinf(x)  &&  x < 0; }
- #endif
- 
- // We can't put floating-point constant values in the header here because
-diff --git a/src/threading.hpp b/src/threading.hpp
-index 14fc6a8..9bf033f 100644
---- a/src/threading.hpp
-+++ b/src/threading.hpp
-@@ -1,6 +1,8 @@
- #ifndef THREADING_HPP_
- #define THREADING_HPP_
- 
-+#include <sys/types.h>
-+#include <unistd.h>
- #include <functional>
- #include <vector>
-