foundationdb{51,52,60,61}: drop

+19 -1035
+6 -24
pkgs/servers/foundationdb/cmake.nix
··· 1 1 # This builder is for FoundationDB CMake build system. 2 2 3 3 { lib, fetchFromGitHub 4 - , cmake, ninja, python3, openjdk, mono, pkg-config 4 + , cmake, ninja, python3, openjdk8, mono, pkg-config 5 5 , msgpack, toml11 6 6 7 7 , gccStdenv, llvmPackages ··· 11 11 12 12 let 13 13 stdenv = if useClang then llvmPackages.libcxxStdenv else gccStdenv; 14 - 15 - tests = builtins.replaceStrings [ "\n" ] [ " " ] (lib.fileContents ./test-list.txt); 16 14 17 15 # Only even numbered versions compile on aarch64; odd numbered versions have avx enabled. 18 16 avxEnabled = version: ··· 39 37 inherit rev sha256; 40 38 }; 41 39 42 - buildInputs = [ ssl boost ] 43 - ++ lib.optionals (lib.versionAtLeast version "7.1.0") [ msgpack toml11 ]; 40 + buildInputs = [ ssl boost msgpack toml11 ]; 44 41 45 - nativeBuildInputs = [ pkg-config cmake ninja python3 openjdk mono ] 42 + nativeBuildInputs = [ pkg-config cmake ninja python3 openjdk8 mono ] 46 43 ++ lib.optionals useClang [ llvmPackages.lld ]; 47 44 48 45 separateDebugInfo = true; ··· 71 68 # Same with LLD when Clang is available. 72 69 (lib.optionalString useClang "-DUSE_LD=LLD") 73 70 (lib.optionalString (!useClang) "-DUSE_LD=GOLD") 74 - ] ++ lib.optionals (lib.versionOlder version "7.0.0") 75 - [ # FIXME: why can't libressl be found automatically? 76 - "-DLIBRESSL_USE_STATIC_LIBS=FALSE" 77 - "-DLIBRESSL_INCLUDE_DIR=${ssl.dev}" 78 - "-DLIBRESSL_CRYPTO_LIBRARY=${ssl.out}/lib/libcrypto.so" 79 - "-DLIBRESSL_SSL_LIBRARY=${ssl.out}/lib/libssl.so" 80 - "-DLIBRESSL_TLS_LIBRARY=${ssl.out}/lib/libtls.so" 81 - ] ++ lib.optionals (lib.versionAtLeast version "7.1.0" && lib.versionOlder version "7.2.0") 71 + ] ++ lib.optionals (lib.versionOlder version "7.2.0") 82 72 [ # FIXME: why can't openssl be found automatically? 83 73 "-DOPENSSL_USE_STATIC_LIBS=FALSE" 84 74 "-DOPENSSL_CRYPTO_LIBRARY=${ssl.out}/lib/libcrypto.so" ··· 100 90 # coherently install packages as most linux distros expect -- it's designed to build 101 91 # packaged artifacts that are shipped in RPMs, etc. we need to add some extra code to 102 92 # cmake upstream to fix this, and if we do, i think most of this can go away. 103 - postInstall = lib.optionalString (lib.versionOlder version "7.0.0") '' 104 - mv $out/fdbmonitor/fdbmonitor $out/bin/fdbmonitor && rm -rf $out/fdbmonitor 105 - mkdir $out/libexec && ln -sfv $out/bin/fdbbackup $out/libexec/backup_agent 106 - rm -rf $out/Library 107 - rm -rf $out/lib/foundationdb/ 108 - mkdir $out/include/foundationdb && \ 109 - mv $out/include/*.h $out/include/*.options $out/include/foundationdb 110 - '' + lib.optionalString (lib.versionAtLeast version "7.0.0") '' 93 + postInstall = '' 111 94 mv $out/sbin/fdbmonitor $out/bin/fdbmonitor 112 95 mkdir $out/libexec && mv $out/usr/lib/foundationdb/backup_agent/backup_agent $out/libexec/backup_agent 113 - '' + '' 114 96 mv $out/sbin/fdbserver $out/bin/fdbserver 115 97 116 98 rm -rf $out/etc $out/lib/foundationdb $out/lib/systemd $out/log $out/sbin $out/usr $out/var ··· 144 126 homepage = "https://www.foundationdb.org"; 145 127 license = licenses.asl20; 146 128 platforms = [ "x86_64-linux" ] 147 - ++ lib.optionals (lib.versionAtLeast version "7.1.0" && !(avxEnabled version)) [ "aarch64-linux" ]; 129 + ++ lib.optionals (!(avxEnabled version)) [ "aarch64-linux" ]; 148 130 maintainers = with maintainers; [ thoughtpolice lostnet ]; 149 131 }; 150 132 };
+4 -84
pkgs/servers/foundationdb/default.nix
··· 1 - { gcc6Stdenv, gccStdenv, llvmPackages 2 - , lib, fetchurl, fetchpatch, fetchFromGitHub 1 + { gccStdenv, llvmPackages 2 + , lib, fetchFromGitHub 3 3 4 - , cmake, ninja, which, findutils, m4, gawk 5 - , python2, python3, openjdk, mono, libressl, openssl, boost168, boost178 4 + , cmake, ninja, python3, openjdk8, mono, openssl, boost178 6 5 , pkg-config, msgpack, toml11 7 6 }@args: 8 7 9 8 let 10 - vsmakeBuild = import ./vsmake.nix args; 11 9 cmakeBuild = import ./cmake.nix args; 12 - 13 - python3-six-patch = fetchpatch { 14 - name = "update-python-six.patch"; 15 - url = "https://github.com/apple/foundationdb/commit/4bd9efc4fc74917bc04b07a84eb065070ea7edb2.patch"; 16 - sha256 = "030679lmc86f1wzqqyvxnwjyfrhh54pdql20ab3iifqpp9i5mi85"; 17 - }; 18 - 19 - python3-print-patch = fetchpatch { 20 - name = "import-for-python-print.patch"; 21 - url = "https://github.com/apple/foundationdb/commit/ded17c6cd667f39699cf663c0e87fe01e996c153.patch"; 22 - sha256 = "11y434w68cpk7shs2r22hyrpcrqi8vx02cw7v5x79qxvnmdxv2an"; 23 - }; 24 - 25 - glibc230-fix = fetchpatch { 26 - url = "https://github.com/Ma27/foundationdb/commit/e133cb974b9a9e4e1dc2d4ac15881d31225c0197.patch"; 27 - sha256 = "1v9q2fyc73msigcykjnbmfig45zcrkrzcg87b0r6mxpnby8iryl1"; 28 - }; 29 - 30 - in with builtins; { 31 - 32 - # Older versions use the bespoke 'vsmake' build system 33 - # ------------------------------------------------------ 34 - 35 - foundationdb51 = vsmakeBuild { 36 - version = "5.1.7"; 37 - branch = "release-5.1"; 38 - sha256 = "1rc472ih24f9s5g3xmnlp3v62w206ny0pvvw02bzpix2sdrpbp06"; 39 - 40 - patches = [ 41 - ./patches/ldflags-5.1.patch 42 - ./patches/fix-scm-version.patch 43 - ./patches/gcc-fixes.patch 44 - python3-six-patch 45 - python3-print-patch 46 - ]; 47 - }; 48 - 49 - foundationdb52 = vsmakeBuild { 50 - version = "5.2.8"; 51 - branch = "release-5.2"; 52 - sha256 = "1kbmmhk2m9486r4kyjlc7bb3wd50204i0p6dxcmvl6pbp1bs0wlb"; 53 - 54 - patches = [ 55 - ./patches/ldflags-5.2.patch 56 - ./patches/fix-scm-version.patch 57 - ./patches/gcc-fixes.patch 58 - python3-six-patch 59 - python3-print-patch 60 - ]; 61 - }; 62 - 63 - foundationdb60 = vsmakeBuild { 64 - version = "6.0.18"; 65 - branch = "release-6.0"; 66 - sha256 = "0q1mscailad0z7zf1nypv4g7gx3damfp45nf8nzyq47nsw5gz69p"; 67 - 68 - patches = [ 69 - ./patches/ldflags-6.0.patch 70 - ./patches/include-fixes-6.0.patch 71 - ]; 72 - }; 73 - 74 - # 6.1 and later versions should always use CMake 75 - # ------------------------------------------------------ 76 - 77 - foundationdb61 = cmakeBuild { 78 - version = "6.1.13"; 79 - sha256 = "10vd694dcnh2pp91mri1m80kfbwjanhiy50c53c5ncqfa6pwvk00"; 80 - boost = boost168; 81 - ssl = libressl; 82 - 83 - patches = [ 84 - ./patches/clang-libcxx.patch 85 - ./patches/suppress-clang-warnings.patch 86 - ./patches/stdexcept-6.1.patch 87 - glibc230-fix 88 - ]; 89 - }; 90 - 10 + in { 91 11 foundationdb71 = cmakeBuild { 92 12 version = "7.1.30"; 93 13 sha256 = "sha256-dAnAE1m2NZLHgP4QJvURBPcxArXvWWdhqEYwh3tU+tU";
-52
pkgs/servers/foundationdb/patches/clang-libcxx.patch
··· 1 - commit 7ed4745a092a203f92fc37ab5894e92117db0c94 2 - Author: Austin Seipp <aseipp@pobox.com> 3 - Date: Sat May 4 15:23:35 2019 -0500 4 - 5 - flow: fix a build failure with Clang/libcxx on Linux 6 - 7 - 11bd7d7da introduced a hack on Linux to work around a missing symbol in 8 - libstdc++'s _pic library on Ubuntu. Unfortunately, this causes the build 9 - to fail when using Clang, as it doesn't believe this symbol is part of 10 - its headers in c++11 mode. 11 - 12 - Unfortunately there's no good way to distinguish libcxx from libstdc++ 13 - with the preprocessor, so we merely gate it by only checking for clang, 14 - iff we are on Linux. 15 - 16 - With this change, Clang 8.x can build FoundationDB on Linux using libcxx 17 - as the standard C++ library. 18 - 19 - Signed-off-by: Austin Seipp <aseipp@pobox.com> 20 - 21 - diff --git a/flow/Platform.cpp b/flow/Platform.cpp 22 - index 3d3f1ac0..9f21dfd4 100644 23 - --- a/flow/Platform.cpp 24 - +++ b/flow/Platform.cpp 25 - @@ -2841,13 +2841,26 @@ void setupSlowTaskProfiler() { 26 - #endif 27 - } 28 - 29 - -#ifdef __linux__ 30 - +#if defined(__linux__) && !defined(__clang__) 31 - // There's no good place to put this, so it's here. 32 - // Ubuntu's packaging of libstdc++_pic offers different symbols than libstdc++. Go figure. 33 - // Notably, it's missing a definition of std::istream::ignore(long), which causes compilation errors 34 - // in the bindings. Thus, we provide weak versions of their definitions, so that if the 35 - // linked-against libstdc++ is missing their definitions, we'll be able to use the provided 36 - // ignore(long, int) version. 37 - +// 38 - +// Note that this hack is DISABLED when we use Clang. It is only needed when we statically link 39 - +// to the _pic libraries, but only official FDB Linux binaries are built this way using GCC. If we 40 - +// don't use the _pic libraries, then this hack is entirely unneeded -- likely the case when using 41 - +// Clang on Linux. 42 - +// 43 - +// Doing this allows us to use LLVM's libc++ with Clang on Linux -- otherwise, providing 44 - +// a weak symbol definition for an internal (non-public) class member fails (due to that member 45 - +// being non-existant on libc++.) See upstream GitHub issue #1533 for more information. 46 - +// 47 - +// TODO FIXME: Obliterate this when the official build environment is upgraded beyond Ubuntu 14.04. 48 - +// (This problem should be fixed in later LTS releases.) 49 - + 50 - #include <istream> 51 - namespace std { 52 - typedef basic_istream<char, std::char_traits<char>> char_basic_istream;
-42
pkgs/servers/foundationdb/patches/fix-scm-version.patch
··· 1 - diff --git a/build/scver.mk b/build/scver.mk 2 - index bdae8be..7539864 100644 3 - --- a/build/scver.mk 4 - +++ b/build/scver.mk 5 - @@ -98,33 +98,10 @@ endif 6 - GITPRESENT := $(wildcard $(FDBDIR)/.git) 7 - HGPRESENT := $(wildcard $(FDBDIR)/.hg) 8 - 9 - -# Use Git, if not missing 10 - -ifneq ($(GITPRESENT),) 11 - - SCVER := $(shell cd "$(FDBDIR)" && git --version 2>/dev/null) 12 - - ifneq ($(SCVER),) 13 - - VERSION_ID := $(shell cd "$(FDBDIR)" && git rev-parse --verify HEAD) 14 - - SOURCE_CONTROL := GIT 15 - - SCBRANCH := $(shell cd "$(FDBDIR)" && git rev-parse --abbrev-ref HEAD) 16 - - else 17 - -$(error Missing git executable on $(PLATFORM) ) 18 - - endif 19 - -# Otherwise, use Mercurial 20 - -else 21 - - # Otherwise, use Mercurial, if not missing 22 - - ifneq ($(HGPRESENT),) 23 - - SCVER := $(shell cd "$(FDBDIR)" && hg --version 2>/dev/null) 24 - - ifdef SCVER 25 - - VERSION_ID := $(shell cd "$(FDBDIR)" && hg id -n) 26 - - SOURCE_CONTROL := MERCURIAL 27 - - SCBRANCH := $(shell cd "$(FDBDIR)" && hg branch) 28 - - else 29 - -$(error Missing hg executable on $(PLATFORM)) 30 - - endif 31 - - else 32 - - FDBFILES := (shell ls -la $(FDBDIR)) 33 - -$(error Missing source control information for source on $(PLATFORM) in directory: $(FDBDIR) with files: $(FDBFILES)) 34 - - endif 35 - -endif 36 - +# NixOS-specific non-VCS packaging, filled out by the nix build 37 - +SOURCE_CONTROL := GIT 38 - +VERSION_ID := @NIXOS_FDB_VERSION_ID@ 39 - +SCBRANCH := @NIXOS_FDB_SCBRANCH@ 40 - 41 - # Set the RELEASE variable based on the KVRELEASE variable. 42 - ifeq ($(KVRELEASE),1)
-138
pkgs/servers/foundationdb/patches/gcc-fixes.patch
··· 1 - diff --git a/fdbrpc/ContinuousSample.h b/fdbrpc/ContinuousSample.h 2 - index 54ff1b109..577c228ae 100644 3 - --- a/fdbrpc/ContinuousSample.h 4 - +++ b/fdbrpc/ContinuousSample.h 5 - @@ -26,6 +26,7 @@ 6 - #include "flow/IRandom.h" 7 - #include <vector> 8 - #include <algorithm> 9 - +#include <cmath> 10 - 11 - template <class T> 12 - class ContinuousSample { 13 - diff --git a/fdbrpc/Smoother.h b/fdbrpc/Smoother.h 14 - index 3ed8e6e98..fb4694750 100644 15 - --- a/fdbrpc/Smoother.h 16 - +++ b/fdbrpc/Smoother.h 17 - @@ -23,6 +23,7 @@ 18 - #pragma once 19 - 20 - #include "flow/flow.h" 21 - +#include <cmath> 22 - 23 - struct Smoother { 24 - // Times (t) are expected to be nondecreasing 25 - @@ -90,4 +91,4 @@ struct TimerSmoother { 26 - double time, total, estimate; 27 - }; 28 - 29 - -#endif 30 - \ No newline at end of file 31 - +#endif 32 - diff --git a/fdbrpc/libcoroutine/Coro.c b/fdbrpc/libcoroutine/Coro.c 33 - index cbfdc8fde..9993cee44 100644 34 - --- a/fdbrpc/libcoroutine/Coro.c 35 - +++ b/fdbrpc/libcoroutine/Coro.c 36 - @@ -66,6 +66,8 @@ VALGRIND_STACK_DEREGISTER((coro)->valgrindStackId) 37 - #define STACK_DEREGISTER(coro) 38 - #endif 39 - 40 - +#pragma GCC diagnostic ignored "-Wreturn-local-addr" 41 - + 42 - // Define outside 43 - extern intptr_t g_stackYieldLimit; 44 - 45 - diff --git a/fdbserver/Knobs.cpp b/fdbserver/Knobs.cpp 46 - index 819c513c6..acfbfe7db 100644 47 - --- a/fdbserver/Knobs.cpp 48 - +++ b/fdbserver/Knobs.cpp 49 - @@ -20,6 +20,7 @@ 50 - 51 - #include "Knobs.h" 52 - #include "fdbrpc/Locality.h" 53 - +#include <cmath> 54 - 55 - ServerKnobs const* SERVER_KNOBS = new ServerKnobs(); 56 - 57 - diff --git a/flow/Knobs.cpp b/flow/Knobs.cpp 58 - index b485a8495..82541d439 100644 59 - --- a/flow/Knobs.cpp 60 - +++ b/flow/Knobs.cpp 61 - @@ -20,6 +20,7 @@ 62 - 63 - #include "Knobs.h" 64 - #include "flow/flow.h" 65 - +#include <cmath> 66 - 67 - FlowKnobs const* FLOW_KNOBS = new FlowKnobs(); 68 - 69 - diff --git a/flow/Platform.cpp b/flow/Platform.cpp 70 - index 69dac889a..62bda9edb 100644 71 - --- a/flow/Platform.cpp 72 - +++ b/flow/Platform.cpp 73 - @@ -40,6 +40,7 @@ 74 - #include <algorithm> 75 - 76 - #include <sys/types.h> 77 - +#include <sys/sysmacros.h> 78 - #include <time.h> 79 - #include <sys/stat.h> 80 - #include <fcntl.h> 81 - @@ -623,7 +624,7 @@ void getDiskStatistics(std::string const& directory, uint64_t& currentIOs, uint6 82 - unsigned int minorId; 83 - disk_stream >> majorId; 84 - disk_stream >> minorId; 85 - - if(majorId == (unsigned int) major(buf.st_dev) && minorId == (unsigned int) minor(buf.st_dev)) { 86 - + if(majorId == (unsigned int) gnu_dev_major(buf.st_dev) && minorId == (unsigned int) gnu_dev_minor(buf.st_dev)) { 87 - std::string ignore; 88 - uint64_t rd_ios; /* # of reads completed */ 89 - // This is the total number of reads completed successfully. 90 - diff --git a/flow/Profiler.actor.cpp b/flow/Profiler.actor.cpp 91 - index 27af613e6..69f38c237 100644 92 - --- a/flow/Profiler.actor.cpp 93 - +++ b/flow/Profiler.actor.cpp 94 - @@ -35,8 +35,6 @@ 95 - 96 - extern volatile int profilingEnabled; 97 - 98 - -static uint64_t gettid() { return syscall(__NR_gettid); } 99 - - 100 - struct SignalClosure { 101 - void (* func)(int, siginfo_t*, void*, void*); 102 - void *userdata; 103 - diff --git a/flow/TDMetric.actor.h b/flow/TDMetric.actor.h 104 - index 5421b83b5..711a96093 100755 105 - --- a/flow/TDMetric.actor.h 106 - +++ b/flow/TDMetric.actor.h 107 - @@ -36,6 +36,7 @@ 108 - #include "CompressedInt.h" 109 - #include <algorithm> 110 - #include <functional> 111 - +#include <cmath> 112 - 113 - struct MetricNameRef { 114 - MetricNameRef() {} 115 - diff --git a/flow/flow.h b/flow/flow.h 116 - index 0c220afae..f685fbc63 100644 117 - --- a/flow/flow.h 118 - +++ b/flow/flow.h 119 - @@ -248,19 +248,6 @@ public: 120 - } 121 - } 122 - 123 - - bool operator == (ErrorOr const& o) const { 124 - - return error == o.error && (!present() || get() == o.get()); 125 - - } 126 - - bool operator != (ErrorOr const& o) const { 127 - - return !(*this == o); 128 - - } 129 - - 130 - - bool operator < (ErrorOr const& o) const { 131 - - if (error != o.error) return error < o.error; 132 - - if (!present()) return false; 133 - - return get() < o.get(); 134 - - } 135 - - 136 - bool isError() const { return error.code() != invalid_error_code; } 137 - bool isError(int code) const { return error.code() == code; } 138 - Error getError() const { ASSERT(isError()); return error; }
-137
pkgs/servers/foundationdb/patches/include-fixes-6.0.patch
··· 1 - diff --git a/fdbrpc/ContinuousSample.h b/fdbrpc/ContinuousSample.h 2 - index 54ff1b109..577c228ae 100644 3 - --- a/fdbrpc/ContinuousSample.h 4 - +++ b/fdbrpc/ContinuousSample.h 5 - @@ -26,6 +26,7 @@ 6 - #include "flow/IRandom.h" 7 - #include <vector> 8 - #include <algorithm> 9 - +#include <cmath> 10 - 11 - template <class T> 12 - class ContinuousSample { 13 - diff --git a/fdbrpc/Smoother.h b/fdbrpc/Smoother.h 14 - index 3ed8e6e98..f3e4504b6 100644 15 - --- a/fdbrpc/Smoother.h 16 - +++ b/fdbrpc/Smoother.h 17 - @@ -23,6 +23,7 @@ 18 - #pragma once 19 - 20 - #include "flow/flow.h" 21 - +#include <cmath> 22 - 23 - struct Smoother { 24 - // Times (t) are expected to be nondecreasing 25 - @@ -50,7 +51,7 @@ struct Smoother { 26 - double elapsed = t - time; 27 - if(elapsed) { 28 - time = t; 29 - - estimate += (total-estimate) * (1-exp( -elapsed/eFoldingTime )); 30 - + estimate += (total-estimate) * (1-std::exp( -elapsed/eFoldingTime )); 31 - } 32 - } 33 - 34 - @@ -83,11 +84,11 @@ struct TimerSmoother { 35 - void update(double t) { 36 - double elapsed = t - time; 37 - time = t; 38 - - estimate += (total-estimate) * (1-exp( -elapsed/eFoldingTime )); 39 - + estimate += (total-estimate) * (1-std::exp( -elapsed/eFoldingTime )); 40 - } 41 - 42 - double eFoldingTime; 43 - double time, total, estimate; 44 - }; 45 - 46 - -#endif 47 - \ No newline at end of file 48 - +#endif 49 - diff --git a/fdbserver/Knobs.cpp b/fdbserver/Knobs.cpp 50 - index a924bc905..0dc70e7ac 100644 51 - --- a/fdbserver/Knobs.cpp 52 - +++ b/fdbserver/Knobs.cpp 53 - @@ -20,6 +20,7 @@ 54 - 55 - #include "Knobs.h" 56 - #include "fdbrpc/Locality.h" 57 - +#include <cmath> 58 - 59 - ServerKnobs const* SERVER_KNOBS = new ServerKnobs(); 60 - 61 - diff --git a/flow/Knobs.cpp b/flow/Knobs.cpp 62 - index 2d706dddd..5dbe08861 100644 63 - --- a/flow/Knobs.cpp 64 - +++ b/flow/Knobs.cpp 65 - @@ -20,6 +20,7 @@ 66 - 67 - #include "Knobs.h" 68 - #include "flow/flow.h" 69 - +#include <cmath> 70 - 71 - FlowKnobs const* FLOW_KNOBS = new FlowKnobs(); 72 - 73 - @@ -128,7 +129,7 @@ FlowKnobs::FlowKnobs(bool randomize, bool isSimulated) { 74 - init( MAX_METRICS, 600 ); 75 - init( MAX_METRIC_SIZE, 2500 ); 76 - init( MAX_METRIC_LEVEL, 25 ); 77 - - init( METRIC_LEVEL_DIVISOR, log(4) ); 78 - + init( METRIC_LEVEL_DIVISOR, std::log(4) ); 79 - init( METRIC_LIMIT_START_QUEUE_SIZE, 10 ); // The queue size at which to start restricting logging by disabling levels 80 - init( METRIC_LIMIT_RESPONSE_FACTOR, 10 ); // The additional queue size at which to disable logging of another level (higher == less restrictive) 81 - 82 - diff --git a/flow/Platform.cpp b/flow/Platform.cpp 83 - index a754c8747..4d47fad32 100644 84 - --- a/flow/Platform.cpp 85 - +++ b/flow/Platform.cpp 86 - @@ -98,6 +98,8 @@ 87 - #include <sys/resource.h> 88 - /* Needed for crash handler */ 89 - #include <signal.h> 90 - +/* Needed for major() and minor() with recent glibc */ 91 - +#include <sys/sysmacros.h> 92 - #endif 93 - 94 - #ifdef __APPLE__ 95 - diff --git a/flow/Profiler.actor.cpp b/flow/Profiler.actor.cpp 96 - index 4603dcb77..78eda7278 100644 97 - --- a/flow/Profiler.actor.cpp 98 - +++ b/flow/Profiler.actor.cpp 99 - @@ -35,8 +35,6 @@ 100 - 101 - extern volatile int profilingEnabled; 102 - 103 - -static uint64_t gettid() { return syscall(__NR_gettid); } 104 - - 105 - struct SignalClosure { 106 - void (* func)(int, siginfo_t*, void*, void*); 107 - void *userdata; 108 - diff --git a/flow/TDMetric.actor.h b/flow/TDMetric.actor.h 109 - index 306352c39..fc63e12f9 100755 110 - --- a/flow/TDMetric.actor.h 111 - +++ b/flow/TDMetric.actor.h 112 - @@ -35,6 +35,7 @@ 113 - #include "genericactors.actor.h" 114 - #include "CompressedInt.h" 115 - #include <algorithm> 116 - +#include <cmath> 117 - #include <functional> 118 - 119 - struct MetricNameRef { 120 - @@ -799,7 +800,7 @@ struct EventMetric : E, ReferenceCounted<EventMetric<E>>, MetricUtil<EventMetric 121 - if (x == 0.0) 122 - l = FLOW_KNOBS->MAX_METRIC_LEVEL-1; 123 - else 124 - - l = std::min(FLOW_KNOBS->MAX_METRIC_LEVEL-1, (int64_t)(::log(1.0/x) / FLOW_KNOBS->METRIC_LEVEL_DIVISOR)); 125 - + l = std::min(FLOW_KNOBS->MAX_METRIC_LEVEL-1, (int64_t)(std::log(1.0/x) / FLOW_KNOBS->METRIC_LEVEL_DIVISOR)); 126 - 127 - if(!canLog(l)) 128 - return 0; 129 - @@ -1274,7 +1275,7 @@ public: 130 - l = std::min( 131 - FLOW_KNOBS->MAX_METRIC_LEVEL-1, 132 - (int64_t)( 133 - - log((toggleTime - tv.time) / x) / 134 - + std::log((toggleTime - tv.time) / x) / 135 - FLOW_KNOBS->METRIC_LEVEL_DIVISOR 136 - ) 137 - );
-90
pkgs/servers/foundationdb/patches/ldflags-5.1.patch
··· 1 - diff --git a/FDBLibTLS/local.mk b/FDBLibTLS/local.mk 2 - index 0b6eac8..b1891ca 100644 3 - --- a/FDBLibTLS/local.mk 4 - +++ b/FDBLibTLS/local.mk 5 - @@ -1,6 +1,5 @@ 6 - FDBLibTLS_CFLAGS := -fPIC -I/usr/local/include -I$(BOOSTDIR) 7 - -FDBLibTLS_STATIC_LIBS := -ltls -lssl -lcrypto 8 - -FDBLibTLS_LDFLAGS := -L/usr/local/lib -static-libstdc++ -static-libgcc -lrt 9 - +FDBLibTLS_LDFLAGS := -L/usr/local/lib -static-libstdc++ -static-libgcc -lrt -ltls -lssl -lcrypto 10 - FDBLibTLS_LDFLAGS += -Wl,-soname,FDBLibTLS.so -Wl,--version-script=FDBLibTLS/FDBLibTLS.map 11 - 12 - # The plugin isn't a typical library, so it feels more sensible to have a copy 13 - diff --git a/bindings/c/local.mk b/bindings/c/local.mk 14 - index 44f0c31..7aea5a4 100644 15 - --- a/bindings/c/local.mk 16 - +++ b/bindings/c/local.mk 17 - @@ -29,8 +29,8 @@ fdb_c_tests_HEADERS := -Ibindings/c 18 - CLEAN_TARGETS += fdb_c_tests_clean 19 - 20 - ifeq ($(PLATFORM),linux) 21 - - fdb_c_LIBS += lib/libstdc++.a -lm -lpthread -lrt -ldl 22 - - fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete 23 - + fdb_c_LIBS += lib/libstdc++.a 24 - + fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete -lm -lpthread -lrt -ldl 25 - fdb_c_tests_LIBS += -lpthread 26 - endif 27 - 28 - diff --git a/bindings/flow/tester/local.mk b/bindings/flow/tester/local.mk 29 - index 2ef4fcb..6e59625 100644 30 - --- a/bindings/flow/tester/local.mk 31 - +++ b/bindings/flow/tester/local.mk 32 - @@ -35,8 +35,7 @@ _fdb_flow_tester_clean: 33 - @rm -rf bindings/flow/bin 34 - 35 - ifeq ($(PLATFORM),linux) 36 - - fdb_flow_tester_LIBS += -ldl -lpthread -lrt 37 - - fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc 38 - + fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 39 - else ifeq ($(PLATFORM),osx) 40 - fdb_flow_tester_LDFLAGS += -lc++ 41 - endif 42 - diff --git a/fdbbackup/local.mk b/fdbbackup/local.mk 43 - index 033fe7d..865fc92 100644 44 - --- a/fdbbackup/local.mk 45 - +++ b/fdbbackup/local.mk 46 - @@ -25,8 +25,7 @@ fdbbackup_LDFLAGS := $(fdbrpc_LDFLAGS) 47 - fdbbackup_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 48 - 49 - ifeq ($(PLATFORM),linux) 50 - - fdbbackup_LIBS += -ldl -lpthread -lrt 51 - - fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc 52 - + fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 53 - 54 - # GPerfTools profiler (uncomment to use) 55 - # fdbbackup_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1 56 - diff --git a/fdbcli/local.mk b/fdbcli/local.mk 57 - index 81a4a42..892c079 100644 58 - --- a/fdbcli/local.mk 59 - +++ b/fdbcli/local.mk 60 - @@ -22,14 +22,13 @@ 61 - 62 - fdbcli_CFLAGS := $(fdbclient_CFLAGS) 63 - fdbcli_LDFLAGS := $(fdbrpc_LDFLAGS) 64 - -fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a -ldl 65 - +fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 66 - fdbcli_STATIC_LIBS := 67 - 68 - fdbcli_GENERATED_SOURCES += versions.h 69 - 70 - ifeq ($(PLATFORM),linux) 71 - - fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc 72 - - fdbcli_LIBS += -lpthread -lrt 73 - + fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc -lpthread -lrt -ldl 74 - else ifeq ($(PLATFORM),osx) 75 - fdbcli_LDFLAGS += -lc++ 76 - endif 77 - diff --git a/fdbserver/local.mk b/fdbserver/local.mk 78 - index 78cad1b..36f2c0f 100644 79 - --- a/fdbserver/local.mk 80 - +++ b/fdbserver/local.mk 81 - @@ -25,8 +25,7 @@ fdbserver_LDFLAGS := $(fdbrpc_LDFLAGS) 82 - fdbserver_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 83 - 84 - ifeq ($(PLATFORM),linux) 85 - - fdbserver_LIBS += -ldl -lpthread -lrt 86 - - fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc 87 - + fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 88 - 89 - # GPerfTools profiler (uncomment to use) 90 - # fdbserver_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1
-90
pkgs/servers/foundationdb/patches/ldflags-5.2.patch
··· 1 - diff --git a/FDBLibTLS/local.mk b/FDBLibTLS/local.mk 2 - index 5e6b9cfb..73f4e5f3 100644 3 - --- a/FDBLibTLS/local.mk 4 - +++ b/FDBLibTLS/local.mk 5 - @@ -1,6 +1,5 @@ 6 - FDBLibTLS_CFLAGS := -fPIC -I/usr/local/include -I$(BOOSTDIR) -Ifdbrpc 7 - -FDBLibTLS_STATIC_LIBS := -ltls -lssl -lcrypto 8 - -FDBLibTLS_LDFLAGS := -L/usr/local/lib -static-libstdc++ -static-libgcc -lrt 9 - +FDBLibTLS_LDFLAGS := -L/usr/local/lib -static-libstdc++ -static-libgcc -lrt -ltls -lssl -lcrypto 10 - FDBLibTLS_LDFLAGS += -Wl,-soname,FDBLibTLS.so -Wl,--version-script=FDBLibTLS/FDBLibTLS.map 11 - 12 - # The plugin isn't a typical library, so it feels more sensible to have a copy 13 - diff --git a/bindings/c/local.mk b/bindings/c/local.mk 14 - index 44f0c31b..7aea5a4f 100644 15 - --- a/bindings/c/local.mk 16 - +++ b/bindings/c/local.mk 17 - @@ -29,8 +29,8 @@ fdb_c_tests_HEADERS := -Ibindings/c 18 - CLEAN_TARGETS += fdb_c_tests_clean 19 - 20 - ifeq ($(PLATFORM),linux) 21 - - fdb_c_LIBS += lib/libstdc++.a -lm -lpthread -lrt -ldl 22 - - fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete 23 - + fdb_c_LIBS += lib/libstdc++.a 24 - + fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete -lm -lpthread -lrt -ldl 25 - fdb_c_tests_LIBS += -lpthread 26 - endif 27 - 28 - diff --git a/bindings/flow/tester/local.mk b/bindings/flow/tester/local.mk 29 - index 2ef4fcb7..6e59625c 100644 30 - --- a/bindings/flow/tester/local.mk 31 - +++ b/bindings/flow/tester/local.mk 32 - @@ -35,8 +35,7 @@ _fdb_flow_tester_clean: 33 - @rm -rf bindings/flow/bin 34 - 35 - ifeq ($(PLATFORM),linux) 36 - - fdb_flow_tester_LIBS += -ldl -lpthread -lrt 37 - - fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc 38 - + fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 39 - else ifeq ($(PLATFORM),osx) 40 - fdb_flow_tester_LDFLAGS += -lc++ 41 - endif 42 - diff --git a/fdbbackup/local.mk b/fdbbackup/local.mk 43 - index 033fe7d4..865fc923 100644 44 - --- a/fdbbackup/local.mk 45 - +++ b/fdbbackup/local.mk 46 - @@ -25,8 +25,7 @@ fdbbackup_LDFLAGS := $(fdbrpc_LDFLAGS) 47 - fdbbackup_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 48 - 49 - ifeq ($(PLATFORM),linux) 50 - - fdbbackup_LIBS += -ldl -lpthread -lrt 51 - - fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc 52 - + fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 53 - 54 - # GPerfTools profiler (uncomment to use) 55 - # fdbbackup_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1 56 - diff --git a/fdbcli/local.mk b/fdbcli/local.mk 57 - index 81a4a42e..892c079c 100644 58 - --- a/fdbcli/local.mk 59 - +++ b/fdbcli/local.mk 60 - @@ -22,14 +22,13 @@ 61 - 62 - fdbcli_CFLAGS := $(fdbclient_CFLAGS) 63 - fdbcli_LDFLAGS := $(fdbrpc_LDFLAGS) 64 - -fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a -ldl 65 - +fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 66 - fdbcli_STATIC_LIBS := 67 - 68 - fdbcli_GENERATED_SOURCES += versions.h 69 - 70 - ifeq ($(PLATFORM),linux) 71 - - fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc 72 - - fdbcli_LIBS += -lpthread -lrt 73 - + fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc -lpthread -lrt -ldl 74 - else ifeq ($(PLATFORM),osx) 75 - fdbcli_LDFLAGS += -lc++ 76 - endif 77 - diff --git a/fdbserver/local.mk b/fdbserver/local.mk 78 - index 78cad1bf..36f2c0f7 100644 79 - --- a/fdbserver/local.mk 80 - +++ b/fdbserver/local.mk 81 - @@ -25,8 +25,7 @@ fdbserver_LDFLAGS := $(fdbrpc_LDFLAGS) 82 - fdbserver_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a 83 - 84 - ifeq ($(PLATFORM),linux) 85 - - fdbserver_LIBS += -ldl -lpthread -lrt 86 - - fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc 87 - + fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 88 - 89 - # GPerfTools profiler (uncomment to use) 90 - # fdbserver_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1
-78
pkgs/servers/foundationdb/patches/ldflags-6.0.patch
··· 1 - diff --git a/bindings/c/local.mk b/bindings/c/local.mk 2 - index c861a29c..ff886e93 100644 3 - --- a/bindings/c/local.mk 4 - +++ b/bindings/c/local.mk 5 - @@ -30,8 +30,8 @@ fdb_c_tests_HEADERS := -Ibindings/c 6 - CLEAN_TARGETS += fdb_c_tests_clean 7 - 8 - ifeq ($(PLATFORM),linux) 9 - - fdb_c_LIBS += lib/libstdc++.a -lm -lpthread -lrt -ldl 10 - - fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete 11 - + fdb_c_LIBS += lib/libstdc++.a 12 - + fdb_c_LDFLAGS += -Wl,--version-script=bindings/c/fdb_c.map -static-libgcc -Wl,-z,nodelete -lm -lpthread -lrt -ldl 13 - fdb_c_tests_LIBS += -lpthread 14 - endif 15 - 16 - diff --git a/bindings/flow/tester/local.mk b/bindings/flow/tester/local.mk 17 - index 2ef4fcb7..6e59625c 100644 18 - --- a/bindings/flow/tester/local.mk 19 - +++ b/bindings/flow/tester/local.mk 20 - @@ -35,8 +35,7 @@ _fdb_flow_tester_clean: 21 - @rm -rf bindings/flow/bin 22 - 23 - ifeq ($(PLATFORM),linux) 24 - - fdb_flow_tester_LIBS += -ldl -lpthread -lrt 25 - - fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc 26 - + fdb_flow_tester_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 27 - else ifeq ($(PLATFORM),osx) 28 - fdb_flow_tester_LDFLAGS += -lc++ 29 - endif 30 - diff --git a/fdbbackup/local.mk b/fdbbackup/local.mk 31 - index ca5dbab6..012f0130 100644 32 - --- a/fdbbackup/local.mk 33 - +++ b/fdbbackup/local.mk 34 - @@ -26,8 +26,7 @@ fdbbackup_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a $(FDB_TLS_LIB 35 - fdbbackup_STATIC_LIBS := $(TLS_LIBS) 36 - 37 - ifeq ($(PLATFORM),linux) 38 - - fdbbackup_LIBS += -ldl -lpthread -lrt 39 - - fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc 40 - + fdbbackup_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 41 - 42 - # GPerfTools profiler (uncomment to use) 43 - # fdbbackup_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1 44 - diff --git a/fdbcli/local.mk b/fdbcli/local.mk 45 - index fd738876..3af026b9 100644 46 - --- a/fdbcli/local.mk 47 - +++ b/fdbcli/local.mk 48 - @@ -22,14 +22,13 @@ 49 - 50 - fdbcli_CFLAGS := $(fdbclient_CFLAGS) 51 - fdbcli_LDFLAGS := $(fdbrpc_LDFLAGS) 52 - -fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a -ldl $(FDB_TLS_LIB) 53 - +fdbcli_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a $(FDB_TLS_LIB) 54 - fdbcli_STATIC_LIBS := $(TLS_LIBS) 55 - 56 - fdbcli_GENERATED_SOURCES += versions.h 57 - 58 - ifeq ($(PLATFORM),linux) 59 - - fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc 60 - - fdbcli_LIBS += -lpthread -lrt 61 - + fdbcli_LDFLAGS += -static-libstdc++ -static-libgcc -lpthread -lrt -ldl 62 - else ifeq ($(PLATFORM),osx) 63 - fdbcli_LDFLAGS += -lc++ 64 - endif 65 - diff --git a/fdbserver/local.mk b/fdbserver/local.mk 66 - index 690916d0..475abbaf 100644 67 - --- a/fdbserver/local.mk 68 - +++ b/fdbserver/local.mk 69 - @@ -26,8 +26,7 @@ fdbserver_LIBS := lib/libfdbclient.a lib/libfdbrpc.a lib/libflow.a $(FDB_TLS_LIB 70 - fdbserver_STATIC_LIBS := $(TLS_LIBS) 71 - 72 - ifeq ($(PLATFORM),linux) 73 - - fdbserver_LIBS += -ldl -lpthread -lrt 74 - - fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc 75 - + fdbserver_LDFLAGS += -static-libstdc++ -static-libgcc -ldl -lpthread -lrt 76 - 77 - # GPerfTools profiler (uncomment to use) 78 - # fdbserver_CFLAGS += -I/opt/gperftools/include -DUSE_GPERFTOOLS=1
-24
pkgs/servers/foundationdb/patches/stdexcept-6.1.patch
··· 1 - diff --git a/FDBLibTLS/FDBLibTLSPolicy.cpp b/FDBLibTLS/FDBLibTLSPolicy.cpp 2 - index 728ff871d..46e1dd289 100644 3 - --- a/FDBLibTLS/FDBLibTLSPolicy.cpp 4 - +++ b/FDBLibTLS/FDBLibTLSPolicy.cpp 5 - @@ -31,6 +31,7 @@ 6 - #include <algorithm> 7 - #include <exception> 8 - #include <map> 9 - +#include <stdexcept> 10 - #include <string> 11 - #include <vector> 12 - 13 - diff --git a/FDBLibTLS/FDBLibTLSVerify.cpp b/FDBLibTLS/FDBLibTLSVerify.cpp 14 - index 594389916..1c8b9b50d 100644 15 - --- a/FDBLibTLS/FDBLibTLSVerify.cpp 16 - +++ b/FDBLibTLS/FDBLibTLSVerify.cpp 17 - @@ -25,6 +25,7 @@ 18 - #include <algorithm> 19 - #include <exception> 20 - #include <cstring> 21 - +#include <stdexcept> 22 - 23 - static int hexValue(char c) { 24 - static char const digits[] = "0123456789ABCDEF";
-34
pkgs/servers/foundationdb/patches/suppress-clang-warnings.patch
··· 1 - commit 8076537a52bb026941f13f5542395aac69ef0825 2 - Author: Austin Seipp <aseipp@pobox.com> 3 - Date: Sat May 4 17:34:51 2019 -0500 4 - 5 - cmake: add workarounds for NixOS-specific deficiencies [NixOS] 6 - 7 - The NixOS debug builder hook adds '-Wa,--compress-debug-sections' to the 8 - link flags (it actually adds it to the compiler flags, but the compiler 9 - is used for linking, so...). This makes the compiler angry when -Werror 10 - is passed, because it's unused at link-time (-Wa applies to the 11 - assembler). Suppress this warning with -Wno-unused-command-line-argument 12 - 13 - NB: we *could* use -Wno-error=unused-command-line-argument, but that 14 - still results in warnings anyway, just not fatal ones. We'd like to 15 - remove them all for the sake of the build output. 16 - 17 - Signed-off-by: Austin Seipp <aseipp@pobox.com> 18 - 19 - diff --git a/cmake/ConfigureCompiler.cmake b/cmake/ConfigureCompiler.cmake 20 - index 03af9c10..7d059375 100644 21 - --- a/cmake/ConfigureCompiler.cmake 22 - +++ b/cmake/ConfigureCompiler.cmake 23 - @@ -119,6 +119,11 @@ else() 24 - else() 25 - add_compile_options(-Werror) 26 - endif() 27 - + if (CLANG) 28 - + # aseipp: NixOS hack 29 - + add_compile_options(-Wno-unused-command-line-argument) 30 - + add_link_options(-Wno-unused-command-line-argument) 31 - + endif() 32 - add_compile_options($<$<BOOL:${GCC}>:-Wno-pragmas>) 33 - add_compile_options(-Wno-error=format 34 - -Wunused-variable
-80
pkgs/servers/foundationdb/test-list.txt
··· 1 - fast/AtomicBackupCorrectness.txt 2 - fast/AtomicBackupToDBCorrectness.txt 3 - fast/AtomicOps.txt 4 - fast/AtomicOpsApiCorrectness.txt 5 - fast/BackupCorrectness.txt 6 - fast/BackupCorrectnessClean.txt 7 - fast/BackupToDBCorrectness.txt 8 - fast/BackupToDBCorrectnessClean.txt 9 - fast/CloggedSideband.txt 10 - fast/ConstrainedRandomSelector.txt 11 - fast/CycleAndLock.txt 12 - fast/CycleTest.txt 13 - fast/FuzzApiCorrectness.txt 14 - fast/FuzzApiCorrectnessClean.txt 15 - fast/IncrementTest.txt 16 - fast/InventoryTestAlmostReadOnly.txt 17 - fast/InventoryTestSomeWrites.txt 18 - fast/KillRegionCycle.txt 19 - fast/LongStackWriteDuringRead.txt 20 - fast/LowLatency.txt 21 - fast/MemoryLifetime.txt 22 - fast/MoveKeysCycle.txt 23 - fast/RandomSelector.txt 24 - fast/RandomUnitTests.txt 25 - fast/SelectorCorrectness.txt 26 - fast/Sideband.txt 27 - fast/SidebandWithStatus.txt 28 - fast/SwizzledRollbackSideband.txt 29 - fast/SystemRebootTestCycle.txt 30 - fast/TaskBucketCorrectness.txt 31 - fast/TimeKeeperCorrectness.txt 32 - fast/Unreadable.txt 33 - fast/VersionStamp.txt 34 - fast/Watches.txt 35 - fast/WriteDuringRead.txt 36 - fast/WriteDuringReadClean.txt 37 - rare/CheckRelocation.txt 38 - rare/ClogUnclog.txt 39 - rare/CloggedCycleWithKills.txt 40 - rare/ConflictRangeCheck.txt 41 - rare/ConflictRangeRYOWCheck.txt 42 - rare/CycleRollbackClogged.txt 43 - rare/CycleWithKills.txt 44 - rare/FuzzTest.txt 45 - rare/InventoryTestHeavyWrites.txt 46 - rare/LargeApiCorrectness.txt 47 - rare/LargeApiCorrectnessStatus.txt 48 - rare/RYWDisable.txt 49 - rare/RandomReadWriteTest.txt 50 - rare/SwizzledLargeApiCorrectness.txt 51 - slow/ApiCorrectness.txt 52 - slow/ApiCorrectnessAtomicRestore.txt 53 - slow/ApiCorrectnessSwitchover.txt 54 - slow/ClogWithRollbacks.txt 55 - slow/CloggedCycleTest.txt 56 - slow/CloggedStorefront.txt 57 - slow/CommitBug.txt 58 - slow/ConfigureTest.txt 59 - slow/CycleRollbackPlain.txt 60 - slow/DDBalanceAndRemove.txt 61 - slow/DDBalanceAndRemoveStatus.txt 62 - slow/FastTriggeredWatches.txt 63 - slow/LowLatencyWithFailures.txt 64 - slow/MoveKeysClean.txt 65 - slow/MoveKeysSideband.txt 66 - slow/RyowCorrectness.txt 67 - slow/Serializability.txt 68 - slow/SharedBackupCorrectness.txt 69 - slow/SharedBackupToDBCorrectness.txt 70 - slow/StorefrontTest.txt 71 - slow/SwizzledApiCorrectness.txt 72 - slow/SwizzledCycleTest.txt 73 - slow/SwizzledDdBalance.txt 74 - slow/SwizzledRollbackTimeLapse.txt 75 - slow/SwizzledRollbackTimeLapseIncrement.txt 76 - slow/VersionStampBackupToDB.txt 77 - slow/VersionStampSwitchover.txt 78 - slow/WriteDuringReadAtomicRestore.txt 79 - slow/WriteDuringReadSwitchover.txt 80 - slow/ddbalance.txt
-150
pkgs/servers/foundationdb/vsmake.nix
··· 1 - # This builder is for FoundationDB's original, somewhat strange visual studio + 2 - # make build system. In FoundationDB 6.1 and later, there's a new CMake system 3 - # (which will eventually become the default version.) 4 - { gcc6Stdenv, lib, fetchurl, fetchFromGitHub 5 - 6 - , which, m4 7 - , python2, openjdk, mono, libressl 8 - , ... 9 - }: 10 - 11 - let 12 - # hysterical raisins dictate a version of boost this old. however, 13 - # we luckily do not need to build anything, we just need the header 14 - # files. 15 - boost152 = gcc6Stdenv.mkDerivation { 16 - name = "boost-headers-1.52.0"; 17 - 18 - src = fetchurl { 19 - url = "mirror://sourceforge/boost/boost_1_52_0.tar.bz2"; 20 - sha256 = "14mc7gsnnahdjaxbbslzk79rc0d12h1i681cd3srdwr3fzynlar2"; 21 - }; 22 - 23 - dontConfigure = true; 24 - dontBuild = true; 25 - installPhase = "mkdir -p $out/include && cp -R boost $out/include/"; 26 - }; 27 - 28 - makeFdb = 29 - { version 30 - , branch 31 - , sha256 32 - 33 - # the revision can be inferred from the fdb tagging policy 34 - , rev ? "refs/tags/${version}" 35 - 36 - # in theory newer versions of fdb support newer boost versions, but they 37 - # don't :( maybe one day 38 - , boost ? boost152 39 - 40 - # if an release is unofficial/a prerelease, then make sure this is set 41 - , officialRelease ? true 42 - 43 - , patches ? [] 44 - }: gcc6Stdenv.mkDerivation { 45 - pname = "foundationdb"; 46 - inherit version; 47 - 48 - src = fetchFromGitHub { 49 - owner = "apple"; 50 - repo = "foundationdb"; 51 - inherit rev sha256; 52 - }; 53 - 54 - nativeBuildInputs = [ python2 openjdk which m4 mono ]; 55 - buildInputs = [ libressl boost ]; 56 - 57 - inherit patches; 58 - postPatch = '' 59 - # note: this does not do anything for 6.0+ 60 - substituteInPlace ./build/scver.mk \ 61 - --subst-var-by NIXOS_FDB_VERSION_ID "${rev}" \ 62 - --subst-var-by NIXOS_FDB_SCBRANCH "${branch}" 63 - 64 - substituteInPlace ./Makefile \ 65 - --replace 'shell which ccache' 'shell true' \ 66 - --replace -Werror "" 67 - 68 - substituteInPlace ./Makefile \ 69 - --replace libstdc++_pic libstdc++ 70 - 71 - substituteInPlace ./build/link-validate.sh \ 72 - --replace 'exit 1' '#exit 1' 73 - 74 - patchShebangs . 75 - '' + lib.optionalString (lib.versionAtLeast version "6.0") '' 76 - substituteInPlace ./Makefile \ 77 - --replace 'TLS_LIBS +=' '#TLS_LIBS +=' \ 78 - --replace 'LDFLAGS :=' 'LDFLAGS := -ltls -lssl -lcrypto' 79 - ''; 80 - 81 - separateDebugInfo = true; 82 - enableParallelBuilding = true; 83 - 84 - makeFlags = [ "all" "fdb_java" "fdb_python" ] 85 - # Don't compile FDBLibTLS if we don't need it in 6.0 or later; 86 - # it gets statically linked in 87 - ++ lib.optionals (lib.versionOlder version "6.0") [ "fdb_c" ] 88 - # Needed environment overrides 89 - ++ [ "KVRELEASE=1" 90 - "NOSTRIP=1" 91 - ] ++ lib.optionals officialRelease [ "RELEASE=true" ]; 92 - 93 - # on 6.0 and later, we can specify all this information manually 94 - configurePhase = lib.optionalString (lib.versionAtLeast version "6.0") '' 95 - export SOURCE_CONTROL=GIT 96 - export SCBRANCH="${branch}" 97 - export VERSION_ID="${rev}" 98 - ''; 99 - 100 - installPhase = '' 101 - mkdir -vp $out/{bin,libexec/plugins} $lib/{lib,share/java} $dev/include/foundationdb 102 - 103 - '' + lib.optionalString (lib.versionOlder version "6.0") '' 104 - # we only copy the TLS library on < 6.0, since it's compiled-in otherwise 105 - cp -v ./lib/libFDBLibTLS.so $out/libexec/plugins/FDBLibTLS.so 106 - '' + '' 107 - 108 - # C API 109 - cp -v ./lib/libfdb_c.so $lib/lib 110 - cp -v ./bindings/c/foundationdb/fdb_c.h $dev/include/foundationdb 111 - cp -v ./bindings/c/foundationdb/fdb_c_options.g.h $dev/include/foundationdb 112 - cp -v ./fdbclient/vexillographer/fdb.options $dev/include/foundationdb 113 - 114 - # java 115 - cp -v ./bindings/java/foundationdb-client.jar $lib/share/java/fdb-java.jar 116 - 117 - # python 118 - cp LICENSE ./bindings/python 119 - substitute ./bindings/python/setup.py.in ./bindings/python/setup.py \ 120 - --replace 'VERSION' "${version}" 121 - rm -f ./bindings/python/setup.py.in 122 - rm -f ./bindings/python/fdb/*.pth # remove useless files 123 - rm -f ./bindings/python/*.rst ./bindings/python/*.mk 124 - 125 - cp -R ./bindings/python/ tmp-pythonsrc/ 126 - tar -zcf $pythonsrc --transform s/tmp-pythonsrc/python-foundationdb/ ./tmp-pythonsrc/ 127 - 128 - # binaries 129 - for x in fdbbackup fdbcli fdbserver fdbmonitor; do 130 - cp -v "./bin/$x" $out/bin; 131 - done 132 - 133 - ln -sfv $out/bin/fdbbackup $out/bin/dr_agent 134 - ln -sfv $out/bin/fdbbackup $out/bin/fdbrestore 135 - ln -sfv $out/bin/fdbbackup $out/bin/fdbdr 136 - 137 - ln -sfv $out/bin/fdbbackup $out/libexec/backup_agent 138 - ''; 139 - 140 - outputs = [ "out" "lib" "dev" "pythonsrc" ]; 141 - 142 - meta = with lib; { 143 - description = "Open source, distributed, transactional key-value store"; 144 - homepage = "https://www.foundationdb.org"; 145 - license = licenses.asl20; 146 - platforms = [ "x86_64-linux" ]; 147 - maintainers = with maintainers; [ thoughtpolice ]; 148 - }; 149 - }; 150 - in makeFdb
+4
pkgs/top-level/aliases.nix
··· 524 524 ''; 525 525 526 526 foomatic_filters = throw "'foomatic_filters' has been renamed to/replaced by 'foomatic-filters'"; # Converted to throw 2022-02-22 527 + foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 528 + foundationdb52 = throw "foundationdb52 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 529 + foundationdb60 = throw "foundationdb60 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 530 + foundationdb61 = throw "foundationdb61 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 527 531 foxitreader = throw "foxitreader has been removed because it had vulnerabilities and was unmaintained"; # added 2023-02-20 528 532 fscryptctl-experimental = throw "The package fscryptctl-experimental has been removed. Please switch to fscryptctl"; # Added 2021-11-07 529 533 fsharp41 = throw "fsharp41 has been removed, please use dotnet-sdk_5 or later";
+1 -8
pkgs/top-level/all-packages.nix
··· 7808 7808 7809 7809 fusuma = callPackage ../tools/inputmethods/fusuma { }; 7810 7810 7811 - fdbPackages = dontRecurseIntoAttrs (callPackage ../servers/foundationdb { 7812 - openjdk = openjdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 7813 - libressl = libressl_3_4; 7814 - }); 7811 + fdbPackages = dontRecurseIntoAttrs (callPackage ../servers/foundationdb { }); 7815 7812 7816 7813 inherit (fdbPackages) 7817 - foundationdb51 7818 - foundationdb52 7819 - foundationdb60 7820 - foundationdb61 7821 7814 foundationdb71 7822 7815 ; 7823 7816
+4
pkgs/top-level/python-aliases.nix
··· 114 114 flask_testing = flask-testing; # added 2022-04-25 115 115 flask_wtf = flask-wtf; # added 2022-05-24 116 116 FormEncode = formencode; # added 2023-02-19 117 + foundationdb51 = throw "foundationdb51 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 118 + foundationdb52 = throw "foundationdb52 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 119 + foundationdb60 = throw "foundationdb60 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 120 + foundationdb61 = throw "foundationdb61 is no longer maintained, use foundationdb71 instead"; # added 2023-06-06 117 121 functorch = throw "functorch is now part of the torch package and has therefore been removed. See https://github.com/pytorch/functorch/releases/tag/v1.13.0 for more info."; # added 2022-12-01 118 122 garages-amsterdam = throw "garages-amsterdam has been renamed odp-amsterdam."; # added 2023-01-04 119 123 garminconnect-ha = garminconnect; # added 2022-02-05
-4
pkgs/top-level/python-packages.nix
··· 3824 3824 3825 3825 formulaic = callPackage ../development/python-modules/formulaic { }; 3826 3826 3827 - foundationdb51 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb51; }; 3828 - foundationdb52 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb52; }; 3829 - foundationdb60 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb60; }; 3830 - foundationdb61 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb61; }; 3831 3827 foundationdb71 = callPackage ../servers/foundationdb/python.nix { foundationdb = pkgs.foundationdb71; }; 3832 3828 3833 3829 fountains = callPackage ../development/python-modules/fountains { };