1 |
commit: fb3ec4695deb9603c1fd7d5061af68e68041f75f |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Apr 17 06:56:42 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 20 01:27:56 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb3ec469 |
7 |
|
8 |
sys-cluster/ceph: remove unused patches |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/11718 |
12 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
13 |
|
14 |
.../files/ceph-10.2.0-dont-use-virtualenvs.patch | 95 ------ |
15 |
sys-cluster/ceph/files/ceph-10.2.1-libzfs.patch | 11 - |
16 |
.../ceph/files/ceph-10.2.1-unbundle-jerasure.patch | 355 --------------------- |
17 |
.../ceph/files/ceph-10.2.3-CVE-2016-8626.patch | 33 -- |
18 |
.../files/ceph-10.2.3-build-without-openldap.patch | 32 -- |
19 |
...ndings-and-tests-compatible-with-Python-3.patch | 22 -- |
20 |
...-Python-bindings-compatible-with-Python-3.patch | 45 --- |
21 |
.../ceph-10.2.7-fix-compilation-with-zstd.patch | 49 --- |
22 |
sys-cluster/ceph/files/ceph-10.2.9-cflags.patch | 15 - |
23 |
.../files/ceph-10.2.9-dont-run-lsb_release.patch | 65 ---- |
24 |
sys-cluster/ceph/files/ceph.confd-r1 | 4 - |
25 |
sys-cluster/ceph/files/ceph.confd-r3 | 63 ---- |
26 |
sys-cluster/ceph/files/ceph.initd-r2 | 40 --- |
27 |
sys-cluster/ceph/files/ceph.initd-r7 | 87 ----- |
28 |
14 files changed, 916 deletions(-) |
29 |
|
30 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.0-dont-use-virtualenvs.patch b/sys-cluster/ceph/files/ceph-10.2.0-dont-use-virtualenvs.patch |
31 |
deleted file mode 100644 |
32 |
index f3627636aeb..00000000000 |
33 |
--- a/sys-cluster/ceph/files/ceph-10.2.0-dont-use-virtualenvs.patch |
34 |
+++ /dev/null |
35 |
@@ -1,95 +0,0 @@ |
36 |
-diff --git a/Makefile.am b/Makefile.am |
37 |
-index 7734be2..ba33bda 100644 |
38 |
---- a/Makefile.am |
39 |
-+++ b/Makefile.am |
40 |
-@@ -79,7 +79,6 @@ clean-local: |
41 |
- cd src/gmock && $(MAKE) $(AM_MAKEFLAGS) clean; \ |
42 |
- fi |
43 |
- |
44 |
-- @rm -rf src/test/virtualenv |
45 |
- @rm -rf install-deps-* |
46 |
- |
47 |
- |
48 |
-diff --git a/src/Makefile-env.am b/src/Makefile-env.am |
49 |
-index df225d6..ca030cf 100644 |
50 |
---- a/src/Makefile-env.am |
51 |
-+++ b/src/Makefile-env.am |
52 |
-@@ -297,10 +297,6 @@ LIBCIVETWEB_DEPS = |
53 |
- DENCODER_SOURCES = |
54 |
- DENCODER_DEPS = |
55 |
- |
56 |
--# put virtualenvs in this directory |
57 |
--# otherwise it may overflow #! 80 kernel limit |
58 |
--# beware that some build environments might not be able to write to /tmp |
59 |
- export TMPDIR ?= /tmp |
60 |
--export CEPH_BUILD_VIRTUALENV = $(TMPDIR) |
61 |
- |
62 |
- radoslibdir = $(libdir)/rados-classes |
63 |
-diff --git a/src/ceph-detect-init/Makefile.am b/src/ceph-detect-init/Makefile.am |
64 |
-index 8ddcb1e..52dd5d5 100644 |
65 |
---- a/src/ceph-detect-init/Makefile.am |
66 |
-+++ b/src/ceph-detect-init/Makefile.am |
67 |
-@@ -53,15 +53,10 @@ EXTRA_DIST += \ |
68 |
- ceph-detect-init/tests/test_all.py \ |
69 |
- ceph-detect-init/tox.ini |
70 |
- |
71 |
--export CEPH_DETECT_INIT_VIRTUALENV = ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv |
72 |
-- |
73 |
--ceph-detect-init-all: ${CEPH_DETECT_INIT_VIRTUALENV} |
74 |
-- |
75 |
--${CEPH_DETECT_INIT_VIRTUALENV}: |
76 |
-- cd $(srcdir)/ceph-detect-init ; ../tools/setup-virtualenv.sh ${CEPH_DETECT_INIT_VIRTUALENV} ; test -d wheelhouse && export NO_INDEX=--no-index ; ${CEPH_DETECT_INIT_VIRTUALENV}/bin/pip install $$NO_INDEX --use-wheel --find-links=file://$$(pwd)/wheelhouse -e . |
77 |
-+ceph-detect-init-all: |
78 |
- |
79 |
- ceph-detect-init-clean: |
80 |
-- cd $(srcdir)/ceph-detect-init ; python setup.py clean ; rm -fr wheelhouse .tox build ${CEPH_DETECT_INIT_VIRTUALENV} .coverage *.egg-info |
81 |
-+ cd $(srcdir)/ceph-detect-init |
82 |
- |
83 |
- ceph-detect-init-install-data: |
84 |
- cd $(srcdir)/ceph-detect-init ; \ |
85 |
-diff --git a/src/ceph-disk/Makefile.am b/src/ceph-disk/Makefile.am |
86 |
-index 9006303..0b35b0f 100644 |
87 |
---- a/src/ceph-disk/Makefile.am |
88 |
-+++ b/src/ceph-disk/Makefile.am |
89 |
-@@ -29,15 +29,10 @@ EXTRA_DIST += \ |
90 |
- ceph-disk/tests/test_main.py \ |
91 |
- ceph-disk/tox.ini |
92 |
- |
93 |
--export CEPH_DISK_VIRTUALENV = ${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv |
94 |
-- |
95 |
--ceph-disk-all: ${CEPH_DISK_VIRTUALENV} |
96 |
-- |
97 |
--${CEPH_DISK_VIRTUALENV}: |
98 |
-- cd $(srcdir)/ceph-disk ; ../tools/setup-virtualenv.sh ${CEPH_DISK_VIRTUALENV} ; test -d wheelhouse && export NO_INDEX=--no-index ; ${CEPH_DISK_VIRTUALENV}/bin/pip install $$NO_INDEX --use-wheel --find-links=file://$$(pwd)/wheelhouse -e . |
99 |
-+ceph-disk-all: |
100 |
- |
101 |
- ceph-disk-clean: |
102 |
-- cd $(srcdir)/ceph-disk ; python setup.py clean ; rm -fr wheelhouse .tox build ${CEPH_DISK_VIRTUALENV} .coverage *.egg-info |
103 |
-+ cd $(srcdir)/ceph-disk |
104 |
- |
105 |
- ceph-disk-install-data: |
106 |
- cd $(srcdir)/ceph-disk ; \ |
107 |
-diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am |
108 |
-index e730850..9569947 100644 |
109 |
---- a/src/tools/Makefile.am |
110 |
-+++ b/src/tools/Makefile.am |
111 |
-@@ -45,6 +45,3 @@ noinst_HEADERS += \ |
112 |
- tools/rados/PoolDump.h \ |
113 |
- tools/cephfs/DataScan.h \ |
114 |
- tools/cephfs/RoleSelector.h |
115 |
-- |
116 |
--EXTRA_DIST += \ |
117 |
-- tools/setup-virtualenv.sh |
118 |
-diff --git a/src/tools/setup-virtualenv.sh b/src/tools/setup-virtualenv.sh |
119 |
-index 9ff2d26..b6fca0a 100755 |
120 |
---- a/src/tools/setup-virtualenv.sh |
121 |
-+++ b/src/tools/setup-virtualenv.sh |
122 |
-@@ -15,6 +15,8 @@ |
123 |
- # GNU Library Public License for more details. |
124 |
- # |
125 |
- |
126 |
-+exit 0 |
127 |
-+ |
128 |
- DIR=$1 |
129 |
- rm -fr $DIR |
130 |
- mkdir -p $DIR |
131 |
|
132 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.1-libzfs.patch b/sys-cluster/ceph/files/ceph-10.2.1-libzfs.patch |
133 |
deleted file mode 100644 |
134 |
index 34f8eb84bee..00000000000 |
135 |
--- a/sys-cluster/ceph/files/ceph-10.2.1-libzfs.patch |
136 |
+++ /dev/null |
137 |
@@ -1,11 +0,0 @@ |
138 |
---- ceph-10.2.1/configure.ac |
139 |
-+++ ceph-10.2.1/configure.ac |
140 |
-@@ -908,7 +908,7 @@ |
141 |
- , |
142 |
- [with_libzfs=no]) |
143 |
- AS_IF([test "x$with_libzfs" = xyes], |
144 |
-- [PKG_CHECK_MODULES([LIBZFS], [zfs], [], [true])]) |
145 |
-+ [PKG_CHECK_MODULES([LIBZFS], [libzfs], [], [true])]) |
146 |
- AS_IF([test "x$with_libzfs" = xyes], |
147 |
- [AC_DEFINE([HAVE_LIBZFS], [1], [Defined if you have libzfs enabled])]) |
148 |
- AM_CONDITIONAL(WITH_LIBZFS, [ test "$with_libzfs" = "yes" ]) |
149 |
|
150 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.1-unbundle-jerasure.patch b/sys-cluster/ceph/files/ceph-10.2.1-unbundle-jerasure.patch |
151 |
deleted file mode 100644 |
152 |
index 8340b4d18bf..00000000000 |
153 |
--- a/sys-cluster/ceph/files/ceph-10.2.1-unbundle-jerasure.patch |
154 |
+++ /dev/null |
155 |
@@ -1,355 +0,0 @@ |
156 |
-diff --git a/src/erasure-code/jerasure/Makefile.am b/src/erasure-code/jerasure/Makefile.am |
157 |
-index adcb95d..8099208 100644 |
158 |
---- a/src/erasure-code/jerasure/Makefile.am |
159 |
-+++ b/src/erasure-code/jerasure/Makefile.am |
160 |
-@@ -1,52 +1,17 @@ |
161 |
- # jerasure plugin |
162 |
- noinst_HEADERS += \ |
163 |
-- erasure-code/jerasure/gf-complete/include/gf_complete.h \ |
164 |
-- erasure-code/jerasure/gf-complete/include/gf_general.h \ |
165 |
-- erasure-code/jerasure/gf-complete/include/gf_int.h \ |
166 |
-- erasure-code/jerasure/gf-complete/include/gf_method.h \ |
167 |
-- erasure-code/jerasure/gf-complete/include/gf_rand.h \ |
168 |
-- erasure-code/jerasure/gf-complete/include/gf_w16.h \ |
169 |
-- erasure-code/jerasure/gf-complete/include/gf_w32.h \ |
170 |
-- erasure-code/jerasure/gf-complete/include/gf_w4.h \ |
171 |
-- erasure-code/jerasure/gf-complete/include/gf_w64.h \ |
172 |
-- erasure-code/jerasure/gf-complete/include/gf_w8.h \ |
173 |
-- erasure-code/jerasure/jerasure/include/cauchy.h \ |
174 |
-- erasure-code/jerasure/jerasure/include/galois.h \ |
175 |
-- erasure-code/jerasure/jerasure/include/jerasure.h \ |
176 |
-- erasure-code/jerasure/jerasure/include/liberation.h \ |
177 |
-- erasure-code/jerasure/jerasure/include/reed_sol.h \ |
178 |
- erasure-code/jerasure/ErasureCodeJerasure.h |
179 |
- |
180 |
- jerasure_sources = \ |
181 |
- erasure-code/ErasureCode.cc \ |
182 |
-- erasure-code/jerasure/jerasure/src/cauchy.c \ |
183 |
-- erasure-code/jerasure/jerasure/src/galois.c \ |
184 |
-- erasure-code/jerasure/jerasure/src/jerasure.c \ |
185 |
-- erasure-code/jerasure/jerasure/src/liberation.c \ |
186 |
-- erasure-code/jerasure/jerasure/src/reed_sol.c \ |
187 |
-- erasure-code/jerasure/gf-complete/src/gf_wgen.c \ |
188 |
-- erasure-code/jerasure/gf-complete/src/gf_method.c \ |
189 |
-- erasure-code/jerasure/gf-complete/src/gf_w16.c \ |
190 |
-- erasure-code/jerasure/gf-complete/src/gf.c \ |
191 |
-- erasure-code/jerasure/gf-complete/src/gf_w32.c \ |
192 |
-- erasure-code/jerasure/gf-complete/src/gf_w64.c \ |
193 |
-- erasure-code/jerasure/gf-complete/src/gf_w128.c \ |
194 |
-- erasure-code/jerasure/gf-complete/src/gf_general.c \ |
195 |
-- erasure-code/jerasure/gf-complete/src/gf_w4.c \ |
196 |
-- erasure-code/jerasure/gf-complete/src/gf_rand.c \ |
197 |
-- erasure-code/jerasure/gf-complete/src/gf_w8.c \ |
198 |
- erasure-code/jerasure/ErasureCodePluginJerasure.cc \ |
199 |
- erasure-code/jerasure/ErasureCodeJerasure.cc |
200 |
- |
201 |
- erasure-code/jerasure/ErasureCodePluginJerasure.cc: ./ceph_ver.h |
202 |
- |
203 |
- libec_jerasure_generic_la_SOURCES = ${jerasure_sources} |
204 |
--libec_jerasure_generic_la_CFLAGS = ${AM_CFLAGS} \ |
205 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
206 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
207 |
--libec_jerasure_generic_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
208 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
209 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
210 |
-+libec_jerasure_generic_la_CFLAGS = ${AM_CFLAGS} |
211 |
-+libec_jerasure_generic_la_CXXFLAGS= ${AM_CXXFLAGS} |
212 |
- libec_jerasure_generic_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
213 |
- libec_jerasure_generic_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -shared |
214 |
- if LINUX |
215 |
-@@ -55,20 +20,11 @@ endif |
216 |
- |
217 |
- erasure_codelib_LTLIBRARIES += libec_jerasure_generic.la |
218 |
- |
219 |
--libec_jerasure_neon_la_SOURCES = ${jerasure_sources} \ |
220 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w4_neon.c \ |
221 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w8_neon.c \ |
222 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w16_neon.c \ |
223 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w32_neon.c \ |
224 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w64_neon.c |
225 |
-+libec_jerasure_neon_la_SOURCES = ${jerasure_sources} |
226 |
- libec_jerasure_neon_la_CFLAGS = ${AM_CFLAGS} \ |
227 |
-- ${ARM_NEON_FLAGS} \ |
228 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
229 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
230 |
-+ ${ARM_NEON_FLAGS} |
231 |
- libec_jerasure_neon_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
232 |
-- ${ARM_NEON_FLAGS} \ |
233 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
234 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
235 |
-+ ${ARM_NEON_FLAGS} |
236 |
- libec_jerasure_neon_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
237 |
- libec_jerasure_neon_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -shared |
238 |
- if LINUX |
239 |
-@@ -84,16 +40,12 @@ libec_jerasure_sse3_la_CFLAGS = ${AM_CFLAGS} \ |
240 |
- ${INTEL_SSE_FLAGS} \ |
241 |
- ${INTEL_SSE2_FLAGS} \ |
242 |
- ${INTEL_SSE3_FLAGS} \ |
243 |
-- ${INTEL_SSSE3_FLAGS} \ |
244 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
245 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
246 |
-+ ${INTEL_SSSE3_FLAGS} |
247 |
- libec_jerasure_sse3_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
248 |
- ${INTEL_SSE_FLAGS} \ |
249 |
- ${INTEL_SSE2_FLAGS} \ |
250 |
- ${INTEL_SSE3_FLAGS} \ |
251 |
-- ${INTEL_SSSE3_FLAGS} \ |
252 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
253 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
254 |
-+ ${INTEL_SSSE3_FLAGS} |
255 |
- libec_jerasure_sse3_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
256 |
- libec_jerasure_sse3_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -shared |
257 |
- if LINUX |
258 |
-@@ -111,18 +63,14 @@ libec_jerasure_sse4_la_CFLAGS = ${AM_CFLAGS} \ |
259 |
- ${INTEL_SSE3_FLAGS} \ |
260 |
- ${INTEL_SSSE3_FLAGS} \ |
261 |
- ${INTEL_SSE4_1_FLAGS} \ |
262 |
-- ${INTEL_SSE4_2_FLAGS} \ |
263 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
264 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
265 |
-+ ${INTEL_SSE4_2_FLAGS} |
266 |
- libec_jerasure_sse4_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
267 |
- ${INTEL_SSE_FLAGS} \ |
268 |
- ${INTEL_SSE2_FLAGS} \ |
269 |
- ${INTEL_SSE3_FLAGS} \ |
270 |
- ${INTEL_SSSE3_FLAGS} \ |
271 |
- ${INTEL_SSE4_1_FLAGS} \ |
272 |
-- ${INTEL_SSE4_2_FLAGS} \ |
273 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
274 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include |
275 |
-+ ${INTEL_SSE4_2_FLAGS} |
276 |
- libec_jerasure_sse4_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
277 |
- libec_jerasure_sse4_la_LDFLAGS = ${AM_LDFLAGS} -module -avoid-version -shared |
278 |
- if LINUX |
279 |
-diff --git a/src/erasure-code/shec/ErasureCodePluginShec.cc b/src/erasure-code/shec/ErasureCodePluginShec.cc |
280 |
-index d2b72f5..acbd172 100644 |
281 |
---- a/src/erasure-code/shec/ErasureCodePluginShec.cc |
282 |
-+++ b/src/erasure-code/shec/ErasureCodePluginShec.cc |
283 |
-@@ -71,7 +71,7 @@ public: |
284 |
- }; |
285 |
- |
286 |
- extern "C" { |
287 |
--#include "jerasure/include/galois.h" |
288 |
-+#include "galois.h" |
289 |
- |
290 |
- extern gf_t *gfp_array[]; |
291 |
- extern int gfp_is_composite[]; |
292 |
-diff --git a/src/erasure-code/shec/ErasureCodeShec.cc b/src/erasure-code/shec/ErasureCodeShec.cc |
293 |
-index 2180328..c84ffc7 100644 |
294 |
---- a/src/erasure-code/shec/ErasureCodeShec.cc |
295 |
-+++ b/src/erasure-code/shec/ErasureCodeShec.cc |
296 |
-@@ -28,8 +28,8 @@ |
297 |
- #include "crush/CrushWrapper.h" |
298 |
- #include "osd/osd_types.h" |
299 |
- extern "C" { |
300 |
--#include "jerasure/include/jerasure.h" |
301 |
--#include "jerasure/include/galois.h" |
302 |
-+#include "jerasure.h" |
303 |
-+#include "galois.h" |
304 |
- |
305 |
- extern int calc_determinant(int *matrix, int dim); |
306 |
- extern int* reed_sol_vandermonde_coding_matrix(int k, int m, int w); |
307 |
-diff --git a/src/erasure-code/shec/Makefile.am b/src/erasure-code/shec/Makefile.am |
308 |
-index 6b658d5..3281c60 100644 |
309 |
---- a/src/erasure-code/shec/Makefile.am |
310 |
-+++ b/src/erasure-code/shec/Makefile.am |
311 |
-@@ -4,49 +4,19 @@ shec_sources = \ |
312 |
- erasure-code/shec/ErasureCodePluginShec.cc \ |
313 |
- erasure-code/shec/ErasureCodeShec.cc \ |
314 |
- erasure-code/shec/ErasureCodeShecTableCache.cc \ |
315 |
-- erasure-code/shec/determinant.c \ |
316 |
-- erasure-code/jerasure/jerasure/src/cauchy.c \ |
317 |
-- erasure-code/jerasure/jerasure/src/galois.c \ |
318 |
-- erasure-code/jerasure/jerasure/src/jerasure.c \ |
319 |
-- erasure-code/jerasure/jerasure/src/liberation.c \ |
320 |
-- erasure-code/jerasure/jerasure/src/reed_sol.c \ |
321 |
-- erasure-code/jerasure/gf-complete/src/gf_wgen.c \ |
322 |
-- erasure-code/jerasure/gf-complete/src/gf_method.c \ |
323 |
-- erasure-code/jerasure/gf-complete/src/gf_w16.c \ |
324 |
-- erasure-code/jerasure/gf-complete/src/gf.c \ |
325 |
-- erasure-code/jerasure/gf-complete/src/gf_w32.c \ |
326 |
-- erasure-code/jerasure/gf-complete/src/gf_w64.c \ |
327 |
-- erasure-code/jerasure/gf-complete/src/gf_w128.c \ |
328 |
-- erasure-code/jerasure/gf-complete/src/gf_general.c \ |
329 |
-- erasure-code/jerasure/gf-complete/src/gf_w4.c \ |
330 |
-- erasure-code/jerasure/gf-complete/src/gf_rand.c \ |
331 |
-- erasure-code/jerasure/gf-complete/src/gf_w8.c |
332 |
-+ erasure-code/shec/determinant.c |
333 |
- |
334 |
- noinst_HEADERS += \ |
335 |
- erasure-code/shec/ErasureCodeShec.h \ |
336 |
-- erasure-code/shec/ErasureCodeShecTableCache.h \ |
337 |
-- erasure-code/jerasure/jerasure/include/cauchy.h \ |
338 |
-- erasure-code/jerasure/jerasure/include/galois.h \ |
339 |
-- erasure-code/jerasure/jerasure/include/jerasure.h \ |
340 |
-- erasure-code/jerasure/jerasure/include/liberation.h \ |
341 |
-- erasure-code/jerasure/jerasure/include/reed_sol.h \ |
342 |
-- erasure-code/jerasure/gf-complete/include/gf_int.h \ |
343 |
-- erasure-code/jerasure/gf-complete/include/gf_complete.h \ |
344 |
-- erasure-code/jerasure/gf-complete/include/gf_rand.h \ |
345 |
-- erasure-code/jerasure/gf-complete/include/gf_method.h \ |
346 |
-- erasure-code/jerasure/gf-complete/include/gf_general.h |
347 |
-+ erasure-code/shec/ErasureCodeShecTableCache.h |
348 |
- |
349 |
- erasure-code/shec/ErasureCodePluginShec.cc: ./ceph_ver.h |
350 |
- |
351 |
- libec_shec_generic_la_SOURCES = ${shec_sources} |
352 |
- libec_shec_generic_la_CFLAGS = ${AM_CFLAGS} \ |
353 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
354 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
355 |
- -I$(srcdir)/erasure-code/jerasure \ |
356 |
- -I$(srcdir)/erasure-code/shec |
357 |
- libec_shec_generic_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
358 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
359 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
360 |
- -I$(srcdir)/erasure-code/jerasure \ |
361 |
- -I$(srcdir)/erasure-code/shec |
362 |
- libec_shec_generic_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
363 |
-@@ -57,22 +27,13 @@ endif |
364 |
- |
365 |
- erasure_codelib_LTLIBRARIES += libec_shec_generic.la |
366 |
- |
367 |
--libec_shec_neon_la_SOURCES = ${shec_sources} \ |
368 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w4_neon.c \ |
369 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w8_neon.c \ |
370 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w16_neon.c \ |
371 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w32_neon.c \ |
372 |
-- erasure-code/jerasure/gf-complete/src/neon/gf_w64_neon.c |
373 |
-+libec_shec_neon_la_SOURCES = ${shec_sources} |
374 |
- libec_shec_neon_la_CFLAGS = ${AM_CFLAGS} \ |
375 |
- ${ARM_NEON_FLAGS} \ |
376 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
377 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
378 |
- -I$(srcdir)/erasure-code/jerasure \ |
379 |
- -I$(srcdir)/erasure-code/shec |
380 |
- libec_shec_neon_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
381 |
- ${ARM_NEON_FLAGS} \ |
382 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
383 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
384 |
- -I$(srcdir)/erasure-code/jerasure \ |
385 |
- -I$(srcdir)/erasure-code/shec |
386 |
- libec_shec_neon_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
387 |
-@@ -91,8 +52,6 @@ libec_shec_sse3_la_CFLAGS = ${AM_CFLAGS} \ |
388 |
- ${INTEL_SSE2_FLAGS} \ |
389 |
- ${INTEL_SSE3_FLAGS} \ |
390 |
- ${INTEL_SSSE3_FLAGS} \ |
391 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
392 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
393 |
- -I$(srcdir)/erasure-code/jerasure \ |
394 |
- -I$(srcdir)/erasure-code/shec |
395 |
- libec_shec_sse3_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
396 |
-@@ -100,8 +59,6 @@ libec_shec_sse3_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
397 |
- ${INTEL_SSE2_FLAGS} \ |
398 |
- ${INTEL_SSE3_FLAGS} \ |
399 |
- ${INTEL_SSSE3_FLAGS} \ |
400 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
401 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
402 |
- -I$(srcdir)/erasure-code/jerasure \ |
403 |
- -I$(srcdir)/erasure-code/shec |
404 |
- libec_shec_sse3_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
405 |
-@@ -122,8 +79,6 @@ libec_shec_sse4_la_CFLAGS = ${AM_CFLAGS} \ |
406 |
- ${INTEL_SSSE3_FLAGS} \ |
407 |
- ${INTEL_SSE4_1_FLAGS} \ |
408 |
- ${INTEL_SSE4_2_FLAGS} \ |
409 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
410 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
411 |
- -I$(srcdir)/erasure-code/jerasure \ |
412 |
- -I$(srcdir)/erasure-code/shec |
413 |
- libec_shec_sse4_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
414 |
-@@ -133,8 +88,6 @@ libec_shec_sse4_la_CXXFLAGS= ${AM_CXXFLAGS} \ |
415 |
- ${INTEL_SSSE3_FLAGS} \ |
416 |
- ${INTEL_SSE4_1_FLAGS} \ |
417 |
- ${INTEL_SSE4_2_FLAGS} \ |
418 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
419 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
420 |
- -I$(srcdir)/erasure-code/jerasure \ |
421 |
- -I$(srcdir)/erasure-code/shec |
422 |
- libec_shec_sse4_la_LIBADD = $(LIBCRUSH) $(PTHREAD_LIBS) $(EXTRALIBS) |
423 |
-diff --git a/src/erasure-code/shec/determinant.c b/src/erasure-code/shec/determinant.c |
424 |
-index 15b62c9..bf5d290 100755 |
425 |
---- a/src/erasure-code/shec/determinant.c |
426 |
-+++ b/src/erasure-code/shec/determinant.c |
427 |
-@@ -19,7 +19,7 @@ |
428 |
- #include <stdlib.h> |
429 |
- #include <string.h> |
430 |
- |
431 |
--#include "jerasure/include/galois.h" |
432 |
-+#include "galois.h" |
433 |
- |
434 |
- void print_matrix(int *mat, int dim) |
435 |
- { |
436 |
-diff --git a/src/test/erasure-code/Makefile.am b/src/test/erasure-code/Makefile.am |
437 |
-index bdce080..11895ae 100644 |
438 |
---- a/src/test/erasure-code/Makefile.am |
439 |
-+++ b/src/test/erasure-code/Makefile.am |
440 |
-@@ -166,12 +166,8 @@ check_TESTPROGRAMS += unittest_erasure_code |
441 |
- unittest_erasure_code_jerasure_SOURCES = \ |
442 |
- test/erasure-code/TestErasureCodeJerasure.cc \ |
443 |
- ${jerasure_sources} |
444 |
--unittest_erasure_code_jerasure_CFLAGS = $(AM_CFLAGS) \ |
445 |
-- -Ierasure-code/jerasure/gf-complete/include \ |
446 |
-- -Ierasure-code/jerasure/jerasure/include |
447 |
--unittest_erasure_code_jerasure_CXXFLAGS = $(UNITTEST_CXXFLAGS) \ |
448 |
-- -Ierasure-code/jerasure/gf-complete/include \ |
449 |
-- -Ierasure-code/jerasure/jerasure/include |
450 |
-+unittest_erasure_code_jerasure_CFLAGS = $(AM_CFLAGS) |
451 |
-+unittest_erasure_code_jerasure_CXXFLAGS = $(UNITTEST_CXXFLAGS) |
452 |
- unittest_erasure_code_jerasure_LDADD = $(LIBOSD) $(LIBCOMMON) $(UNITTEST_LDADD) $(CEPH_GLOBAL) |
453 |
- if LINUX |
454 |
- unittest_erasure_code_jerasure_LDADD += -ldl |
455 |
-@@ -232,13 +228,9 @@ unittest_erasure_code_shec_SOURCES = \ |
456 |
- test/erasure-code/TestErasureCodeShec.cc \ |
457 |
- ${shec_sources} |
458 |
- unittest_erasure_code_shec_CFLAGS = ${libec_shec_la_CFLAGS} \ |
459 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
460 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
461 |
- -I$(srcdir)/erasure-code/jerasure \ |
462 |
- -I$(srcdir)/erasure-code/shec |
463 |
- unittest_erasure_code_shec_CXXFLAGS = ${libec_shec_la_CXXFLAGS} $(UNITTEST_CXXFLAGS) \ |
464 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
465 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
466 |
- -I$(srcdir)/erasure-code/jerasure \ |
467 |
- -I$(srcdir)/erasure-code/shec |
468 |
- unittest_erasure_code_shec_LDADD = $(LIBOSD) $(LIBCOMMON) $(UNITTEST_LDADD) $(CEPH_GLOBAL) |
469 |
-@@ -251,13 +243,9 @@ unittest_erasure_code_shec_all_SOURCES = \ |
470 |
- test/erasure-code/TestErasureCodeShec_all.cc \ |
471 |
- ${shec_sources} |
472 |
- unittest_erasure_code_shec_all_CFLAGS = ${libec_shec_la_CFLAGS} \ |
473 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
474 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
475 |
- -I$(srcdir)/erasure-code/jerasure \ |
476 |
- -I$(srcdir)/erasure-code/shec |
477 |
- unittest_erasure_code_shec_all_CXXFLAGS = ${libec_shec_la_CXXFLAGS} $(UNITTEST_CXXFLAGS) \ |
478 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
479 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
480 |
- -I$(srcdir)/erasure-code/jerasure \ |
481 |
- -I$(srcdir)/erasure-code/shec |
482 |
- unittest_erasure_code_shec_all_LDADD = $(LIBOSD) $(LIBCOMMON) $(UNITTEST_LDADD) $(CEPH_GLOBAL) |
483 |
-@@ -270,13 +258,9 @@ unittest_erasure_code_shec_thread_SOURCES = \ |
484 |
- test/erasure-code/TestErasureCodeShec_thread.cc \ |
485 |
- ${shec_sources} |
486 |
- unittest_erasure_code_shec_thread_CFLAGS = ${libec_shec_la_CFLAGS} \ |
487 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
488 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
489 |
- -I$(srcdir)/erasure-code/jerasure \ |
490 |
- -I$(srcdir)/erasure-code/shec |
491 |
- unittest_erasure_code_shec_thread_CXXFLAGS = ${libec_shec_la_CXXFLAGS} $(UNITTEST_CXXFLAGS) \ |
492 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
493 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
494 |
- -I$(srcdir)/erasure-code/jerasure \ |
495 |
- -I$(srcdir)/erasure-code/shec |
496 |
- unittest_erasure_code_shec_thread_LDADD = $(LIBOSD) $(LIBCOMMON) $(UNITTEST_LDADD) $(CEPH_GLOBAL) |
497 |
-@@ -289,13 +273,9 @@ unittest_erasure_code_shec_arguments_SOURCES = \ |
498 |
- test/erasure-code/TestErasureCodeShec_arguments.cc \ |
499 |
- ${shec_sources} |
500 |
- unittest_erasure_code_shec_arguments_CFLAGS = ${libec_shec_la_CFLAGS} \ |
501 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
502 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
503 |
- -I$(srcdir)/erasure-code/jerasure \ |
504 |
- -I$(srcdir)/erasure-code/shec |
505 |
- unittest_erasure_code_shec_arguments_CXXFLAGS = ${libec_shec_la_CXXFLAGS} $(UNITTEST_CXXFLAGS) \ |
506 |
-- -I$(srcdir)/erasure-code/jerasure/jerasure/include \ |
507 |
-- -I$(srcdir)/erasure-code/jerasure/gf-complete/include \ |
508 |
- -I$(srcdir)/erasure-code/jerasure \ |
509 |
- -I$(srcdir)/erasure-code/shec |
510 |
- unittest_erasure_code_shec_arguments_LDADD = $(LIBOSD) $(LIBCOMMON) $(UNITTEST_LDADD) $(CEPH_GLOBAL) |
511 |
|
512 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.3-CVE-2016-8626.patch b/sys-cluster/ceph/files/ceph-10.2.3-CVE-2016-8626.patch |
513 |
deleted file mode 100644 |
514 |
index d767d8170df..00000000000 |
515 |
--- a/sys-cluster/ceph/files/ceph-10.2.3-CVE-2016-8626.patch |
516 |
+++ /dev/null |
517 |
@@ -1,33 +0,0 @@ |
518 |
-commit dc2ffda7819d2ebeed3526d9e6da8f53221818de |
519 |
-Author: Yehuda Sadeh <yehuda@××××××.com> |
520 |
-Date: Thu Oct 20 10:17:36 2016 -0700 |
521 |
- |
522 |
- rgw: handle empty POST condition |
523 |
- |
524 |
- Fixes: http://tracker.ceph.com/issues/17635 |
525 |
- |
526 |
- Before accessing json entity, need to check that iterator is valid. |
527 |
- If there is no entry return appropriate error code. |
528 |
- |
529 |
- Signed-off-by: Yehuda Sadeh <yehuda@××××××.com> |
530 |
- (cherry picked from commit 23cb642243e09ca4a8e104f62a3bb7b2cbb6ea12) |
531 |
- |
532 |
-diff --git a/src/rgw/rgw_policy_s3.cc b/src/rgw/rgw_policy_s3.cc |
533 |
-index 3843511..8af70a8 100644 |
534 |
---- a/src/rgw/rgw_policy_s3.cc |
535 |
-+++ b/src/rgw/rgw_policy_s3.cc |
536 |
-@@ -286,11 +286,13 @@ int RGWPolicy::from_json(bufferlist& bl, string& err_msg) |
537 |
- int r = add_condition(v[0], v[1], v[2], err_msg); |
538 |
- if (r < 0) |
539 |
- return r; |
540 |
-- } else { |
541 |
-+ } else if (!citer.end()) { |
542 |
- JSONObj *c = *citer; |
543 |
- dout(0) << "adding simple_check: " << c->get_name() << " : " << c->get_data() << dendl; |
544 |
- |
545 |
- add_simple_check(c->get_name(), c->get_data()); |
546 |
-+ } else { |
547 |
-+ return -EINVAL; |
548 |
- } |
549 |
- } |
550 |
- return 0; |
551 |
|
552 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.3-build-without-openldap.patch b/sys-cluster/ceph/files/ceph-10.2.3-build-without-openldap.patch |
553 |
deleted file mode 100644 |
554 |
index ffc16453604..00000000000 |
555 |
--- a/sys-cluster/ceph/files/ceph-10.2.3-build-without-openldap.patch |
556 |
+++ /dev/null |
557 |
@@ -1,32 +0,0 @@ |
558 |
-diff --git a/src/rgw/librgw.cc b/src/rgw/librgw.cc |
559 |
-index c476129..cad54b8 100644 |
560 |
---- a/src/rgw/librgw.cc |
561 |
-+++ b/src/rgw/librgw.cc |
562 |
-@@ -470,7 +470,11 @@ namespace rgw { |
563 |
- const string& ldap_searchdn = store->ctx()->_conf->rgw_ldap_searchdn; |
564 |
- const string& ldap_dnattr = |
565 |
- store->ctx()->_conf->rgw_ldap_dnattr; |
566 |
-+#ifdef HAVE_OPENLDAP |
567 |
- std::string ldap_bindpw = parse_rgw_ldap_bindpw(store->ctx()); |
568 |
-+#else |
569 |
-+ std::string ldap_bindpw; |
570 |
-+#endif /* HAVE_OPENLDAP */ |
571 |
- |
572 |
- ldh = new rgw::LDAPHelper(ldap_uri, ldap_binddn, ldap_bindpw.c_str(), |
573 |
- ldap_searchdn, ldap_dnattr); |
574 |
-diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc |
575 |
-index e9f24f3..7291e69 100644 |
576 |
---- a/src/rgw/rgw_rest_s3.cc |
577 |
-+++ b/src/rgw/rgw_rest_s3.cc |
578 |
-@@ -3091,7 +3091,11 @@ void RGW_Auth_S3::init_impl(RGWRados* store) |
579 |
- const string& ldap_searchdn = store->ctx()->_conf->rgw_ldap_searchdn; |
580 |
- const string& ldap_dnattr = |
581 |
- store->ctx()->_conf->rgw_ldap_dnattr; |
582 |
-+#ifdef HAVE_OPENLDAP |
583 |
- std::string ldap_bindpw = parse_rgw_ldap_bindpw(store->ctx()); |
584 |
-+#else |
585 |
-+ std::string ldap_bindpw; |
586 |
-+#endif /* HAVE_OPENLDAP */ |
587 |
- |
588 |
- ldh = new rgw::LDAPHelper(ldap_uri, ldap_binddn, ldap_bindpw, |
589 |
- ldap_searchdn, ldap_dnattr); |
590 |
|
591 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch b/sys-cluster/ceph/files/ceph-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch |
592 |
deleted file mode 100644 |
593 |
index 08a7920035a..00000000000 |
594 |
--- a/sys-cluster/ceph/files/ceph-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch |
595 |
+++ /dev/null |
596 |
@@ -1,22 +0,0 @@ |
597 |
-commit e1dc386f93eb4613dc7e89cc76a031aeee5022ba |
598 |
-Author: Oleh Prypin <oleh@××××.in> |
599 |
-Date: Thu Jul 21 18:33:25 2016 +0300 |
600 |
- |
601 |
- pybind: Make CephFS bindings and tests compatible with Python 3 |
602 |
- |
603 |
- Signed-off-by: Oleh Prypin <oleh@××××.in> |
604 |
- |
605 |
-diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx |
606 |
-index ac17ada1a1..bd14de3b16 100644 |
607 |
---- a/src/pybind/cephfs/cephfs.pyx |
608 |
-+++ b/src/pybind/cephfs/cephfs.pyx |
609 |
-@@ -613,8 +613,7 @@ cdef class LibCephFS(object): |
610 |
- |
611 |
- if not isinstance(mode, int): |
612 |
- raise TypeError('mode must be an int') |
613 |
-- if isinstance(flags, basestring): |
614 |
-- flags = cstr(flags, 'flags') |
615 |
-+ if isinstance(flags, str_type): |
616 |
- cephfs_flags = 0 |
617 |
- if flags == '': |
618 |
- cephfs_flags = os.O_RDONLY |
619 |
|
620 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch b/sys-cluster/ceph/files/ceph-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch |
621 |
deleted file mode 100644 |
622 |
index a81aae6e7ce..00000000000 |
623 |
--- a/sys-cluster/ceph/files/ceph-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch |
624 |
+++ /dev/null |
625 |
@@ -1,45 +0,0 @@ |
626 |
-commit 773e01294da518c6ec18f0a8b72e05def85fef6c |
627 |
-Author: Oleh Prypin <oleh@××××.in> |
628 |
-Date: Fri Jun 24 15:48:57 2016 +0300 |
629 |
- |
630 |
- pybind: Make RBD Python bindings compatible with Python 3 |
631 |
- |
632 |
- Signed-off-by: Oleh Prypin <oleh@××××.in> |
633 |
- |
634 |
-diff --git a/src/pybind/rbd/rbd.pyx b/src/pybind/rbd/rbd.pyx |
635 |
-index 52727bf39e..8f25dfbee0 100644 |
636 |
---- a/src/pybind/rbd/rbd.pyx |
637 |
-+++ b/src/pybind/rbd/rbd.pyx |
638 |
-@@ -745,7 +745,7 @@ class RBD(object): |
639 |
- break |
640 |
- elif ret != -errno.ERANGE: |
641 |
- raise make_ex(ret, 'error listing images') |
642 |
-- return [decode_cstr(name) for name in c_names[:ret].split('\0') |
643 |
-+ return [decode_cstr(name) for name in c_names[:ret].split(b'\0') |
644 |
- if name] |
645 |
- finally: |
646 |
- free(c_names) |
647 |
-@@ -1885,8 +1885,8 @@ written." % (self.name, ret, length)) |
648 |
- raise make_ex(ret, 'error listing images') |
649 |
- if ret == 0: |
650 |
- return [] |
651 |
-- pools = map(decode_cstr, c_pools[:pools_size - 1].split('\0')) |
652 |
-- images = map(decode_cstr, c_images[:images_size - 1].split('\0')) |
653 |
-+ pools = map(decode_cstr, c_pools[:pools_size - 1].split(b'\0')) |
654 |
-+ images = map(decode_cstr, c_images[:images_size - 1].split(b'\0')) |
655 |
- return list(zip(pools, images)) |
656 |
- finally: |
657 |
- free(c_pools) |
658 |
-@@ -1933,9 +1933,9 @@ written." % (self.name, ret, length)) |
659 |
- raise make_ex(ret, 'error listing images') |
660 |
- if ret == 0: |
661 |
- return [] |
662 |
-- clients = map(decode_cstr, c_clients[:clients_size - 1].split('\0')) |
663 |
-- cookies = map(decode_cstr, c_cookies[:cookies_size - 1].split('\0')) |
664 |
-- addrs = map(decode_cstr, c_addrs[:addrs_size - 1].split('\0')) |
665 |
-+ clients = map(decode_cstr, c_clients[:clients_size - 1].split(b'\0')) |
666 |
-+ cookies = map(decode_cstr, c_cookies[:cookies_size - 1].split(b'\0')) |
667 |
-+ addrs = map(decode_cstr, c_addrs[:addrs_size - 1].split(b'\0')) |
668 |
- return { |
669 |
- 'tag' : decode_cstr(c_tag), |
670 |
- 'exclusive' : exclusive == 1, |
671 |
|
672 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.7-fix-compilation-with-zstd.patch b/sys-cluster/ceph/files/ceph-10.2.7-fix-compilation-with-zstd.patch |
673 |
deleted file mode 100644 |
674 |
index 4e76deabe65..00000000000 |
675 |
--- a/sys-cluster/ceph/files/ceph-10.2.7-fix-compilation-with-zstd.patch |
676 |
+++ /dev/null |
677 |
@@ -1,49 +0,0 @@ |
678 |
-From 5a11f31aac4fa6a5c5ebb4fa0964e1c07a420e8c Mon Sep 17 00:00:00 2001 |
679 |
-From: Zac Medico <zmedico@g.o> |
680 |
-Date: Wed, 12 Apr 2017 01:49:09 -0700 |
681 |
-Subject: [PATCH] configure: link against zstd if detected |
682 |
- |
683 |
-https://bugs.gentoo.org/show_bug.cgi?id=601610 |
684 |
---- |
685 |
- configure.ac | 6 ++++-- |
686 |
- src/Makefile-env.am | 3 +++ |
687 |
- 2 files changed, 7 insertions(+), 2 deletions(-) |
688 |
- |
689 |
-diff --git a/configure.ac b/configure.ac |
690 |
-index 51daf91..8914b71 100644 |
691 |
---- a/configure.ac |
692 |
-+++ b/configure.ac |
693 |
-@@ -851,12 +851,14 @@ AS_IF([test "x$with_librocksdb_static" = "xyes"], |
694 |
- AM_CONDITIONAL(WITH_SLIBROCKSDB, [ test "x$with_librocksdb_static" = "xyes" ]) |
695 |
- AM_CONDITIONAL(WITH_LIBROCKSDB, [ test "x$with_librocksdb_static" = "xyes" -o "x$with_librocksdb" = "xyes" ]) |
696 |
- |
697 |
--# rocksdb detects bzlib and lz4 in its Makefile, which forces us to do the same. |
698 |
-+# rocksdb detects headers in its Makefile, which forces us to do the same. |
699 |
- AS_IF([test "x$with_librocksdb_static" = "xyes"], [ |
700 |
- AC_CHECK_HEADER([bzlib.h], [have_bzlib=yes]) |
701 |
-- AC_CHECK_HEADER([lz4.h], [have_lz4=yes])]) |
702 |
-+ AC_CHECK_HEADER([lz4.h], [have_lz4=yes])] |
703 |
-+ AC_CHECK_HEADER([zstd.h], [have_zstd=yes])]) |
704 |
- AM_CONDITIONAL(HAVE_BZLIB, [test "x$have_bzlib" = "xyes"]) |
705 |
- AM_CONDITIONAL(HAVE_LZ4, [test "x$have_lz4" = "xyes"]) |
706 |
-+AM_CONDITIONAL(HAVE_ZSTD, [test "x$have_zstd" = "xyes"]) |
707 |
- |
708 |
- # needs libcurl and libxml2 |
709 |
- if test "x$with_rest_bench" = xyes && test "x$with_system_libs3" = xno; then |
710 |
-diff --git a/src/Makefile-env.am b/src/Makefile-env.am |
711 |
-index 4771bad..0ee42f8 100644 |
712 |
---- a/src/Makefile-env.am |
713 |
-+++ b/src/Makefile-env.am |
714 |
-@@ -280,6 +280,9 @@ endif |
715 |
- if HAVE_LZ4 |
716 |
- LIBKV += -llz4 |
717 |
- endif |
718 |
-+if HAVE_ZSTD |
719 |
-+LIBKV += -lzstd |
720 |
-+endif |
721 |
- endif # WITH_SLIBROCKSDB |
722 |
- LIBKV += -lz -lleveldb -lsnappy |
723 |
- LIBOS += $(LIBOS_TYPES) $(LIBKV) $(LIBFUSE_LIBS) |
724 |
--- |
725 |
-2.10.2 |
726 |
- |
727 |
|
728 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.9-cflags.patch b/sys-cluster/ceph/files/ceph-10.2.9-cflags.patch |
729 |
deleted file mode 100644 |
730 |
index 31221ae2f99..00000000000 |
731 |
--- a/sys-cluster/ceph/files/ceph-10.2.9-cflags.patch |
732 |
+++ /dev/null |
733 |
@@ -1,15 +0,0 @@ |
734 |
-diff --git a/src/Makefile-env.am b/src/Makefile-env.am |
735 |
-index 4771bad02d..f92e20479b 100644 |
736 |
---- a/src/Makefile-env.am |
737 |
-+++ b/src/Makefile-env.am |
738 |
-@@ -53,10 +53,6 @@ endif |
739 |
- ## automake environment |
740 |
- |
741 |
- HARDENING_CFLAGS = \ |
742 |
-- -O2 \ |
743 |
-- -g \ |
744 |
-- -pipe \ |
745 |
-- -Wall \ |
746 |
- -Wp,-U_FORTIFY_SOURCE \ |
747 |
- -Wp,-D_FORTIFY_SOURCE=2 \ |
748 |
- -fexceptions \ |
749 |
|
750 |
diff --git a/sys-cluster/ceph/files/ceph-10.2.9-dont-run-lsb_release.patch b/sys-cluster/ceph/files/ceph-10.2.9-dont-run-lsb_release.patch |
751 |
deleted file mode 100644 |
752 |
index a6b5515cee2..00000000000 |
753 |
--- a/sys-cluster/ceph/files/ceph-10.2.9-dont-run-lsb_release.patch |
754 |
+++ /dev/null |
755 |
@@ -1,65 +0,0 @@ |
756 |
-diff --git a/src/ceph-detect-init/Makefile.am b/src/ceph-detect-init/Makefile.am |
757 |
-index 3926ac4bec..90e2eae50c 100644 |
758 |
---- a/src/ceph-detect-init/Makefile.am |
759 |
-+++ b/src/ceph-detect-init/Makefile.am |
760 |
-@@ -67,7 +67,7 @@ ceph-detect-init-clean: |
761 |
- ceph-detect-init-install-data: |
762 |
- cd $(srcdir)/ceph-detect-init ; \ |
763 |
- if test "$(DESTDIR)" ; then \ |
764 |
-- if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
765 |
-+ if command -v lsb_release >/dev/null && lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
766 |
- options=--install-layout=deb ; \ |
767 |
- else \ |
768 |
- options=--prefix=/usr ; \ |
769 |
-diff --git a/src/ceph-disk/Makefile.am b/src/ceph-disk/Makefile.am |
770 |
-index a8532878c8..d908b1649a 100644 |
771 |
---- a/src/ceph-disk/Makefile.am |
772 |
-+++ b/src/ceph-disk/Makefile.am |
773 |
-@@ -43,7 +43,7 @@ ceph-disk-clean: |
774 |
- ceph-disk-install-data: |
775 |
- cd $(srcdir)/ceph-disk ; \ |
776 |
- if test "$(DESTDIR)" ; then \ |
777 |
-- if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
778 |
-+ if command -v lsb_release >/dev/null && lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
779 |
- options=--install-layout=deb ; \ |
780 |
- else \ |
781 |
- options=--prefix=/usr ; \ |
782 |
-diff --git a/src/pybind/cephfs/Makefile.am b/src/pybind/cephfs/Makefile.am |
783 |
-index 698522daa4..c49c190986 100644 |
784 |
---- a/src/pybind/cephfs/Makefile.am |
785 |
-+++ b/src/pybind/cephfs/Makefile.am |
786 |
-@@ -15,7 +15,7 @@ cephfs-pybind-clean: ${srcdir}/ceph_ver.h |
787 |
- |
788 |
- cephfs-pybind-install-exec: ${srcdir}/ceph_ver.h |
789 |
- if test "$(DESTDIR)" ; then \ |
790 |
-- if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
791 |
-+ if command -v lsb_release >/dev/null && lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
792 |
- options=--install-layout=deb ; \ |
793 |
- else \ |
794 |
- options=--prefix=/usr ; \ |
795 |
-diff --git a/src/pybind/rados/Makefile.am b/src/pybind/rados/Makefile.am |
796 |
-index a4145bf0f4..960395fee8 100644 |
797 |
---- a/src/pybind/rados/Makefile.am |
798 |
-+++ b/src/pybind/rados/Makefile.am |
799 |
-@@ -15,7 +15,7 @@ rados-pybind-clean: ${srcdir}/ceph_ver.h |
800 |
- |
801 |
- rados-pybind-install-exec: ${srcdir}/ceph_ver.h |
802 |
- if test "$(DESTDIR)" ; then \ |
803 |
-- if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
804 |
-+ if command -v lsb_release >/dev/null && lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
805 |
- options=--install-layout=deb ; \ |
806 |
- else \ |
807 |
- options=--prefix=/usr ; \ |
808 |
-diff --git a/src/pybind/rbd/Makefile.am b/src/pybind/rbd/Makefile.am |
809 |
-index 7dd49333fa..fbb940d07d 100644 |
810 |
---- a/src/pybind/rbd/Makefile.am |
811 |
-+++ b/src/pybind/rbd/Makefile.am |
812 |
-@@ -15,7 +15,7 @@ rbd-pybind-clean: ${srcdir}/ceph_ver.h |
813 |
- |
814 |
- rbd-pybind-install-exec: ${srcdir}/ceph_ver.h |
815 |
- if test "$(DESTDIR)" ; then \ |
816 |
-- if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
817 |
-+ if command -v lsb_release >/dev/null && lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \ |
818 |
- options=--install-layout=deb ; \ |
819 |
- else \ |
820 |
- options=--prefix=/usr ; \ |
821 |
|
822 |
diff --git a/sys-cluster/ceph/files/ceph.confd-r1 b/sys-cluster/ceph/files/ceph.confd-r1 |
823 |
deleted file mode 100644 |
824 |
index 3bdb8b485ed..00000000000 |
825 |
--- a/sys-cluster/ceph/files/ceph.confd-r1 |
826 |
+++ /dev/null |
827 |
@@ -1,4 +0,0 @@ |
828 |
-# Example |
829 |
- |
830 |
-# default ceph conf file |
831 |
-#ceph_conf="/etc/ceph/ceph.conf" |
832 |
|
833 |
diff --git a/sys-cluster/ceph/files/ceph.confd-r3 b/sys-cluster/ceph/files/ceph.confd-r3 |
834 |
deleted file mode 100644 |
835 |
index 281037c5998..00000000000 |
836 |
--- a/sys-cluster/ceph/files/ceph.confd-r3 |
837 |
+++ /dev/null |
838 |
@@ -1,63 +0,0 @@ |
839 |
-# /etc/conf.d/ceph: startup configurations for ceph |
840 |
- |
841 |
-# default ceph conf file |
842 |
-#ceph_conf="/etc/ceph/ceph.conf" |
843 |
- |
844 |
-# Set ulimits for Ceph services. |
845 |
-#rc_ulimit="-n 131072 -u 257256" |
846 |
- |
847 |
-# the directory under /run to store runtime information in |
848 |
-#rundir=/run/ceph |
849 |
- |
850 |
-# the user and group to run ceph as |
851 |
- |
852 |
-# settings for openrc supervisor for various ceph daemons |
853 |
-# |
854 |
-# defaults (can be overidden for each daemon) |
855 |
-# stderr and stdout values get .${id}-std{out,err}.log appended to the provided value |
856 |
-# |
857 |
-#respawn_delay=20 |
858 |
-#respawn_max=5 |
859 |
-#respawn_period=1800 |
860 |
-#stdout="/dev/null" |
861 |
-#stderr="/dev/null" |
862 |
- |
863 |
-# radosgw |
864 |
-#radosgw_respawn_max |
865 |
-#radosgw_respawn_delay=20 |
866 |
-#radosgw_respawn_period=1800 |
867 |
-#radosgw_stdout="/dev/null" |
868 |
-#radosgw_stderr="/dev/null" |
869 |
- |
870 |
-# mon |
871 |
-#mon_respawn_max=5 |
872 |
-#mon_respawn_delay=20 |
873 |
-#mon_respawn_period=1800 |
874 |
-#mon_stdout="/dev/null" |
875 |
-#mon_stderr="/dev/null" |
876 |
- |
877 |
-# osd |
878 |
-#osd_respawn_max=5 |
879 |
-#osd_respawn_delay=30 |
880 |
-#osd_respawn_period=1800 |
881 |
-#osd_stdout="/dev/null" |
882 |
-#osd_stderr="/dev/null" |
883 |
- |
884 |
-# mds |
885 |
-#mds_respawn_max=5 |
886 |
-#mds_respawn_delay=20 |
887 |
-#mds_respawn_period=1800 |
888 |
-#mds_stdout="/dev/null" |
889 |
-#mds_stderr="/dev/null" |
890 |
- |
891 |
-# mgr |
892 |
-#mgr_respawn_max=5 |
893 |
-#mgr_respawn_delay=20 |
894 |
-#mgr_respawn_period=1800 |
895 |
-#mgr_stdout="/dev/null" |
896 |
-#mgr_stderr="/dev/null" |
897 |
- |
898 |
-# initd stop timeout. |
899 |
-#CEPH_TERMTIMEOUT="TERM/120/KILL/5" |
900 |
-# |
901 |
-# vim:ft=gentoo-conf-d:ts=4:sts=4:sw=4:noet: |
902 |
|
903 |
diff --git a/sys-cluster/ceph/files/ceph.initd-r2 b/sys-cluster/ceph/files/ceph.initd-r2 |
904 |
deleted file mode 100644 |
905 |
index 16267c58a13..00000000000 |
906 |
--- a/sys-cluster/ceph/files/ceph.initd-r2 |
907 |
+++ /dev/null |
908 |
@@ -1,40 +0,0 @@ |
909 |
-#!/sbin/openrc-run |
910 |
- |
911 |
-ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}" |
912 |
-extra_commands="reload" |
913 |
-daemon_type="${RC_SVCNAME#ceph-}" |
914 |
-daemon_type="${daemon_type%.*}" |
915 |
-daemon_id="${RC_SVCNAME#ceph-*.}" |
916 |
-daemon_id="${daemon_id:-0}" |
917 |
-command="/usr/bin/ceph-${daemon_type}" |
918 |
-pidfile="/run/ceph/${daemon_type}.${daemon_id}.pid" |
919 |
-command_args="-i ${daemon_id} --pid-file ${pidfile} -c ${ceph_conf}" |
920 |
-start_stop_daemon_args="--user ceph --group ceph" |
921 |
- |
922 |
-depend() { |
923 |
- after net ntpd ntp-client chronyd |
924 |
- before netmount |
925 |
-} |
926 |
- |
927 |
-is_type_valid() { |
928 |
- case ${daemon_type} in |
929 |
- mon|mds|osd) return 0;; |
930 |
- *) return 1;; |
931 |
- esac |
932 |
-} |
933 |
- |
934 |
-start_pre() { |
935 |
- checkpath -d -q -o ceph "$(dirname "${pidfile}")" |
936 |
- if ! is_type_valid ;then |
937 |
- eerror "Please give valid Ceph Server Type: mds, mon, osd" |
938 |
- return 1 |
939 |
- fi |
940 |
-} |
941 |
- |
942 |
-reload() { |
943 |
- ebegin "Reloading Ceph ${daemon_type}.${daemon_id}" |
944 |
- start-stop-daemon --signal 1 ${start_stop_daemon_args} --pidfile "${pidfile}" |
945 |
- eend $? |
946 |
-} |
947 |
- |
948 |
-# vim:ft=gentoo-init-d:ts=4:sts=4:sw=4:noet: |
949 |
|
950 |
diff --git a/sys-cluster/ceph/files/ceph.initd-r7 b/sys-cluster/ceph/files/ceph.initd-r7 |
951 |
deleted file mode 100644 |
952 |
index 110d7bd0b63..00000000000 |
953 |
--- a/sys-cluster/ceph/files/ceph.initd-r7 |
954 |
+++ /dev/null |
955 |
@@ -1,87 +0,0 @@ |
956 |
-#!/sbin/openrc-run |
957 |
- |
958 |
-ceph_conf="${ceph_conf:-/etc/ceph/ceph.conf}" |
959 |
-extra_commands="reload" |
960 |
-daemon_type="${RC_SVCNAME#ceph-}" |
961 |
-daemon_type="${daemon_type%%.*}" |
962 |
-daemon_id="${RC_SVCNAME#ceph-*.}" |
963 |
-daemon_id="${daemon_id:-0}" |
964 |
-: ${rundir:=/run/ceph} |
965 |
-: ${user:=ceph} |
966 |
-: ${group:=ceph} |
967 |
-: ${rc_ulimit:=-n 1048576 -u 1048576} |
968 |
- |
969 |
-pidfile="${rundir}/supervisor-${daemon_type}.${daemon_id}.pid" |
970 |
-daemon_pidfile="${rundir}/${daemon_type}.${daemon_id}.pid" |
971 |
- |
972 |
-command="/usr/bin/${RC_SVCNAME%%.*}" |
973 |
-command_args="-i ${daemon_id} --pid-file ${daemon_pidfile} -c ${ceph_conf}" |
974 |
-command_args_foreground="--foreground" |
975 |
- |
976 |
-retry="${CEPH_TERMTIMEOUT:-TERM/120/KILL/5}" |
977 |
-start_stop_daemon_args="--user ${user} --group ${group}" |
978 |
-supervise_daemon_args="--user ${user} --group ${group}" |
979 |
- |
980 |
-: ${supervisor:=supervise-daemon} |
981 |
-: ${stdout:=/var/log/ceph/ceph} |
982 |
-: ${stderr:=/var/log/ceph/ceph} |
983 |
-: ${respawn_delay:=10} |
984 |
-: ${respawn_max:=5} |
985 |
-: ${respawn_period:=1800} |
986 |
- |
987 |
-: ${osd_respawn_delay:=15} |
988 |
-: ${osd_respawn_max:=10} |
989 |
- |
990 |
-: ${radosgw_respawn_max:=5} |
991 |
-: ${radosgw_respawn_period:=30} |
992 |
- |
993 |
-depend() { |
994 |
- use dns logger |
995 |
- after net ntpd ntp-client chronyd |
996 |
- before netmount |
997 |
-} |
998 |
- |
999 |
-is_type_valid() { |
1000 |
- case ${daemon_type} in |
1001 |
- mon|mds|osd|mgr|radosgw) return 0;; |
1002 |
- *) return 1;; |
1003 |
- esac |
1004 |
-} |
1005 |
- |
1006 |
-start_pre() { |
1007 |
- export CEPH_CONF="${ceph_conf}" |
1008 |
- |
1009 |
- checkpath -d -q -o "${user}:${group}" "${rundir}" |
1010 |
- |
1011 |
- if ! is_type_valid ;then |
1012 |
- eerror "Please give valid Ceph Server Type: mds, mon, osd" |
1013 |
- return 1 |
1014 |
- |
1015 |
- elif pgrep -f "[c]eph-${daemon_type} -i ${daemon_id} "; then |
1016 |
- eerror "${daemon_type}.${daemon_id} is still running, refusing to start" |
1017 |
- return 1 |
1018 |
- fi |
1019 |
- |
1020 |
- local arg_name arg_val |
1021 |
- for arg_name in std{out,err} respawn_{delay,max,period}; do |
1022 |
- eval arg_val="\${${daemon_type}_${arg_name}}" |
1023 |
- |
1024 |
- if [ -z "${arg_val}" ]; then |
1025 |
- eval arg_val="\${${arg_name}}" |
1026 |
- else |
1027 |
- eval "${arg_name}=\"${arg_val}\"" |
1028 |
- fi |
1029 |
- |
1030 |
- if [ "${arg_name}" = "stderr" ] || [ "${arg_name}" = "stdout" ]; then |
1031 |
- supervise_daemon_args="${supervise_daemon_args} --${arg_name//_/-}=${arg_val}.${daemon_id}-${arg_name}.log" |
1032 |
- fi |
1033 |
- done |
1034 |
-} |
1035 |
- |
1036 |
-reload() { |
1037 |
- ebegin "Reloading Ceph ${daemon_type}.${daemon_id}" |
1038 |
- start-stop-daemon --signal 1 "${start_stop_daemon_args}" |
1039 |
- eend ${?} |
1040 |
-} |
1041 |
- |
1042 |
-# vim:ft=gentoo-init-d:ts=4:sts=4:sw=4:noet: |