Merge pull request #113137 from lukegb/ceph

ceph: fix bluestore by using bundled rocksdb
This commit is contained in:
Florian Klink
2021-02-27 00:26:47 +01:00
committed by GitHub
3 changed files with 202 additions and 5 deletions
+5 -5
View File
@@ -9,10 +9,11 @@
, babeltrace, gperf
, gtest
, cunit, snappy
, rocksdb, makeWrapper
, makeWrapper
, leveldb, oathToolkit
, libnl, libcap_ng
, rdkafka
, nixosTests
# Optional Dependencies
, yasm ? null, fcgi ? null, expat ? null
@@ -146,7 +147,7 @@ in rec {
buildInputs = cryptoLibsMap.${cryptoStr} ++ [
boost ceph-python-env libxml2 optYasm optLibatomic_ops optLibs3
malloc zlib openldap lttng-ust babeltrace gperf gtest cunit
snappy rocksdb lz4 oathToolkit leveldb libnl libcap_ng rdkafka
snappy lz4 oathToolkit leveldb libnl libcap_ng rdkafka
] ++ lib.optionals stdenv.isLinux [
linuxHeaders util-linux libuuid udev keyutils optLibaio optLibxfs optZfs
# ceph 14
@@ -171,12 +172,10 @@ in rec {
cmakeFlags = [
"-DWITH_PYTHON3=ON"
"-DWITH_SYSTEM_ROCKSDB=OFF"
"-DWITH_SYSTEM_ROCKSDB=OFF" # breaks Bluestore
"-DCMAKE_INSTALL_DATADIR=${placeholder "lib"}/lib"
"-DWITH_SYSTEM_BOOST=ON"
"-DWITH_SYSTEM_ROCKSDB=ON"
"-DWITH_SYSTEM_GTEST=ON"
"-DMGR_PYTHON_VERSION=${ceph-python-env.python.pythonVersion}"
"-DWITH_SYSTEMD=OFF"
@@ -201,6 +200,7 @@ in rec {
meta = getMeta "Distributed storage system";
passthru.version = version;
passthru.tests = { inherit (nixosTests) ceph-single-node ceph-multi-node ceph-single-node-bluestore; };
};
ceph-client = runCommand "ceph-client-${version}" {