Merge pull request #35479 from lejonet/ceph-patch-python-env
ceph: Modify ceph package so that it compiles and runs fine on nixos
This commit is contained in:
commit
0db6ad2da3
@ -0,0 +1,19 @@
|
|||||||
|
diff -ru ceph/src/key_value_store/kv_flat_btree_async.cc ceph-copy/src/key_value_store/kv_flat_btree_async.cc
|
||||||
|
--- ceph/src/key_value_store/kv_flat_btree_async.cc 1980-01-02 00:00:00.000000000 +0100
|
||||||
|
+++ ceph-copy/src/key_value_store/kv_flat_btree_async.cc 2018-02-13 21:49:59.232860487 +0100
|
||||||
|
@@ -15,13 +15,13 @@
|
||||||
|
#include "key_value_store/kv_flat_btree_async.h"
|
||||||
|
#include "key_value_store/kvs_arg_types.h"
|
||||||
|
#include "include/rados/librados.hpp"
|
||||||
|
-#include "/usr/include/asm-generic/errno.h"
|
||||||
|
-#include "/usr/include/asm-generic/errno-base.h"
|
||||||
|
#include "common/ceph_context.h"
|
||||||
|
#include "common/Clock.h"
|
||||||
|
#include "include/types.h"
|
||||||
|
|
||||||
|
|
||||||
|
+#include <asm-generic/errno.h>
|
||||||
|
+#include <asm-generic/errno-base.h>
|
||||||
|
#include <string>
|
||||||
|
#include <iostream>
|
||||||
|
#include <cassert>
|
@ -86,12 +86,17 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
ceph-python-env = python2Packages.python.withPackages (ps: [
|
ceph-python-env = python2Packages.python.withPackages (ps: [
|
||||||
ps.sphinx
|
ps.sphinx
|
||||||
ps.flask
|
ps.flask
|
||||||
ps.argparse
|
ps.argparse
|
||||||
ps.cython
|
ps.cython
|
||||||
ps.setuptools
|
ps.setuptools
|
||||||
ps.pip
|
ps.pip
|
||||||
|
# Libraries needed by the python tools
|
||||||
|
ps.Mako
|
||||||
|
ps.pecan
|
||||||
|
ps.prettytable
|
||||||
|
ps.webob
|
||||||
]);
|
]);
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -103,11 +108,13 @@ stdenv.mkDerivation {
|
|||||||
patches = [
|
patches = [
|
||||||
# ./ceph-patch-cmake-path.patch
|
# ./ceph-patch-cmake-path.patch
|
||||||
./0001-kv-RocksDBStore-API-break-additional.patch
|
./0001-kv-RocksDBStore-API-break-additional.patch
|
||||||
|
] ++ optionals stdenv.isLinux [
|
||||||
|
./0002-fix-absolute-include-path.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkgconfig which git
|
pkgconfig which git python2Packages.wrapPython
|
||||||
(ensureNewerSourcesHook { year = "1980"; })
|
(ensureNewerSourcesHook { year = "1980"; })
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -122,6 +129,7 @@ stdenv.mkDerivation {
|
|||||||
] ++ optionals hasKinetic [
|
] ++ optionals hasKinetic [
|
||||||
optKinetic-cpp-client
|
optKinetic-cpp-client
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
preConfigure =''
|
preConfigure =''
|
||||||
# rip off submodule that interfer with system libs
|
# rip off submodule that interfer with system libs
|
||||||
@ -149,6 +157,10 @@ stdenv.mkDerivation {
|
|||||||
"-DWITH_LIBCEPHFS=OFF"
|
"-DWITH_LIBCEPHFS=OFF"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapPythonPrograms
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
outputs = [ "dev" "lib" "out" "doc" ];
|
outputs = [ "dev" "lib" "out" "doc" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user