1 |
commit: 41a7f968034751ec631c565f33358422ade80f2e |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Sep 16 23:47:17 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 23:52:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41a7f968 |
7 |
|
8 |
sys-cluster/ceph-15.2.5: Version bump |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
sys-cluster/ceph/Manifest | 1 + |
15 |
sys-cluster/ceph/ceph-15.2.5.ebuild | 405 +++++++++++++++++++++ |
16 |
.../ceph/files/ceph-15.2.5-missing-includes.patch | 12 + |
17 |
3 files changed, 418 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest |
20 |
index f4b36595d39..450e1c1f19b 100644 |
21 |
--- a/sys-cluster/ceph/Manifest |
22 |
+++ b/sys-cluster/ceph/Manifest |
23 |
@@ -3,3 +3,4 @@ DIST ceph-14.2.10.tar.gz 129274835 BLAKE2B b3f14897db478418b982281bf367a0c497cdf |
24 |
DIST ceph-14.2.11.tar.gz 129327263 BLAKE2B fb04f3fde6642905dd21836c7472cf3b6cb484f69367ecf01b7d427c757e0fd1db4bd483bf9b0e485e1f8924a8e9201e8d47713a1de9281d5d96e45939bd1078 SHA512 765e8982d457cfd900acddc8f82c23824b32dc6d925d45e7693cba48c06fab798b6d57991dc9ad18a9ace9aff6fb2b917bd97f2d6435a7caceb03c9733e9602a |
25 |
DIST ceph-14.2.9.tar.gz 128419205 BLAKE2B bace7469d9066a3da7320a0eb894013fae5b7139c15679dddae7df28c593a1029956234a1ba0d3bbdf1639e3a975aa776c695efefb915113a16099c80d563675 SHA512 0a26372d0037c32fe1d24be880e272fcce5089b02adfb0e791e0406155f6e66c913fa43762028f49c1fa3f30c6c8d819c521dd11702a37cc7040dfd3097c068e |
26 |
DIST ceph-15.2.4.tar.gz 148011928 BLAKE2B c0222725227cf922ed10bb19840b8cbfe0c0b8ae77a4f83f03a95c3fc198165740f7a1dee5e1983e9403634ce389c858e71ed3f2731202630e19961a5de0247a SHA512 94e9b4c87d9f27dbfc9961b853f2cf159d65b614bf50ac3dabad9d801a181c547550ab4bca1f48c7a6e11aa6188e5858b110a9023dc214a043ed5ba375b3dee2 |
27 |
+DIST ceph-15.2.5.tar.gz 149219528 BLAKE2B 8f2cea9a258b7c530bff72a46d45fabf5364cf919f098c7d77857afa0dfdbcd7c290aa5a0d88cce1d99923588cc303d27c0b85179378ff1c394d9ce0f135a1b1 SHA512 55de068886c48293e92ef95cf8343ae44825fd2bf9c3fa7d47cda92907a47bae79e0af730cd34d0155b0777901d0fd6f9d1f30537c66c54c95098df7368fca2e |
28 |
|
29 |
diff --git a/sys-cluster/ceph/ceph-15.2.5.ebuild b/sys-cluster/ceph/ceph-15.2.5.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..5368ad7d8d0 |
32 |
--- /dev/null |
33 |
+++ b/sys-cluster/ceph/ceph-15.2.5.ebuild |
34 |
@@ -0,0 +1,405 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
40 |
+CMAKE_MAKEFILE_GENERATOR=emake |
41 |
+ |
42 |
+DISTUTILS_OPTIONAL=1 |
43 |
+ |
44 |
+inherit check-reqs bash-completion-r1 cmake distutils-r1 flag-o-matic \ |
45 |
+ python-r1 udev readme.gentoo-r1 toolchain-funcs systemd tmpfiles |
46 |
+ |
47 |
+if [[ ${PV} == *9999* ]]; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/ceph/ceph.git" |
50 |
+ SRC_URI="" |
51 |
+else |
52 |
+ SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~arm64 ~ppc64" |
54 |
+fi |
55 |
+ |
56 |
+DESCRIPTION="Ceph distributed filesystem" |
57 |
+HOMEPAGE="https://ceph.com/" |
58 |
+ |
59 |
+LICENSE="Apache-2.0 LGPL-2.1 CC-BY-SA-3.0 GPL-2 GPL-2+ LGPL-2+ LGPL-2.1 LGPL-3 GPL-3 BSD Boost-1.0 MIT public-domain" |
60 |
+SLOT="0" |
61 |
+ |
62 |
+CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3) |
63 |
+ |
64 |
+IUSE="babeltrace +cephfs custom-cflags diskprediction dpdk fuse grafana jemalloc |
65 |
+ kafka kerberos ldap libressl lttng +mgr numa +openssl pmdk rabbitmq +radosgw |
66 |
+ rbd-rwl +ssl spdk system-boost systemd +tcmalloc test uring xfs zfs" |
67 |
+IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" |
68 |
+ |
69 |
+DEPEND=" |
70 |
+ acct-group/ceph |
71 |
+ acct-user/ceph |
72 |
+ virtual/libudev:= |
73 |
+ app-arch/bzip2:= |
74 |
+ app-arch/lz4:= |
75 |
+ app-arch/snappy:= |
76 |
+ app-arch/zstd:= |
77 |
+ app-shells/bash:0 |
78 |
+ app-misc/jq:= |
79 |
+ dev-libs/crypto++:= |
80 |
+ dev-libs/leveldb:=[snappy,tcmalloc(-)?] |
81 |
+ dev-libs/libaio:= |
82 |
+ dev-libs/libfmt:= |
83 |
+ dev-libs/libnl:3= |
84 |
+ dev-libs/libxml2:= |
85 |
+ dev-libs/xmlsec:=[!openssl?,!libressl?] |
86 |
+ dev-cpp/yaml-cpp:= |
87 |
+ dev-libs/nss:= |
88 |
+ dev-libs/protobuf:= |
89 |
+ net-dns/c-ares:= |
90 |
+ net-libs/gnutls:= |
91 |
+ sys-auth/oath-toolkit:= |
92 |
+ sys-apps/coreutils |
93 |
+ sys-apps/grep |
94 |
+ sys-apps/hwloc:= |
95 |
+ sys-apps/keyutils:= |
96 |
+ sys-apps/util-linux:= |
97 |
+ sys-apps/sed |
98 |
+ sys-apps/util-linux |
99 |
+ sys-libs/libcap-ng:= |
100 |
+ sys-libs/ncurses:0= |
101 |
+ sys-libs/zlib:= |
102 |
+ sys-process/numactl:= |
103 |
+ x11-libs/libpciaccess:= |
104 |
+ babeltrace? ( dev-util/babeltrace ) |
105 |
+ fuse? ( sys-fs/fuse:0= ) |
106 |
+ jemalloc? ( dev-libs/jemalloc:= ) |
107 |
+ !jemalloc? ( >=dev-util/google-perftools-2.6.1:= ) |
108 |
+ kafka? ( dev-libs/librdkafka:= ) |
109 |
+ kerberos? ( virtual/krb5 ) |
110 |
+ ldap? ( net-nds/openldap:= ) |
111 |
+ lttng? ( dev-util/lttng-ust:= ) |
112 |
+ rabbitmq? ( net-libs/rabbitmq-c:= ) |
113 |
+ radosgw? ( |
114 |
+ dev-libs/expat:= |
115 |
+ openssl? ( |
116 |
+ dev-libs/openssl:= |
117 |
+ net-misc/curl:=[curl_ssl_openssl] |
118 |
+ ) |
119 |
+ libressl? ( |
120 |
+ dev-libs/libressl:= |
121 |
+ net-misc/curl:=[curl_ssl_libressl] |
122 |
+ ) |
123 |
+ ) |
124 |
+ ssl? ( |
125 |
+ openssl? ( dev-libs/openssl:= ) |
126 |
+ libressl? ( dev-libs/libressl:= ) |
127 |
+ ) |
128 |
+ system-boost? ( =dev-libs/boost-1.72*[threads,context,python,${PYTHON_USEDEP}] ) |
129 |
+ uring? ( sys-libs/liburing:= ) |
130 |
+ xfs? ( sys-fs/xfsprogs:= ) |
131 |
+ zfs? ( sys-fs/zfs:= ) |
132 |
+ ${PYTHON_DEPS} |
133 |
+" |
134 |
+BDEPEND=" |
135 |
+ amd64? ( dev-lang/yasm ) |
136 |
+ x86? ( dev-lang/yasm ) |
137 |
+ app-arch/cpio |
138 |
+ >=dev-util/cmake-3.5.0 |
139 |
+ dev-python/cython[${PYTHON_USEDEP}] |
140 |
+ dev-python/sphinx |
141 |
+ dev-util/cunit |
142 |
+ dev-util/gperf |
143 |
+ dev-util/ragel |
144 |
+ dev-util/valgrind |
145 |
+ sys-apps/coreutils |
146 |
+ sys-apps/findutils |
147 |
+ sys-apps/grep |
148 |
+ sys-apps/sed |
149 |
+ sys-apps/which |
150 |
+ sys-devel/bc |
151 |
+ sys-devel/patch |
152 |
+ virtual/pkgconfig |
153 |
+ test? ( |
154 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
155 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
156 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
157 |
+ sys-apps/grep[pcre] |
158 |
+ sys-fs/btrfs-progs |
159 |
+ ) |
160 |
+" |
161 |
+RDEPEND="${DEPEND} |
162 |
+ app-admin/sudo |
163 |
+ net-misc/socat |
164 |
+ sys-apps/gptfdisk |
165 |
+ sys-apps/nvme-cli |
166 |
+ >=sys-apps/smartmontools-7.0 |
167 |
+ sys-block/parted |
168 |
+ sys-fs/cryptsetup |
169 |
+ sys-fs/lsscsi |
170 |
+ sys-fs/lvm2[-device-mapper-only(-)] |
171 |
+ virtual/awk |
172 |
+ dev-python/bcrypt[${PYTHON_USEDEP}] |
173 |
+ dev-python/cherrypy[${PYTHON_USEDEP}] |
174 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
175 |
+ dev-python/flask[${PYTHON_USEDEP}] |
176 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
177 |
+ dev-python/pecan[${PYTHON_USEDEP}] |
178 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
179 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
180 |
+ dev-python/requests[${PYTHON_USEDEP}] |
181 |
+ dev-python/werkzeug[${PYTHON_USEDEP}] |
182 |
+ mgr? ( |
183 |
+ dev-python/jsonpatch[${PYTHON_USEDEP}] |
184 |
+ dev-python/more-itertools[${PYTHON_USEDEP}] |
185 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
186 |
+ dev-python/pyjwt[${PYTHON_USEDEP}] |
187 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
188 |
+ dev-python/routes[${PYTHON_USEDEP}] |
189 |
+ diskprediction? ( |
190 |
+ $(python_gen_cond_dep '<sci-libs/scipy-1.4.0[${PYTHON_USEDEP}]' python3_{6,7}) |
191 |
+ ) |
192 |
+ sci-libs/scikits_learn[${PYTHON_USEDEP}] |
193 |
+ dev-python/six[${PYTHON_USEDEP}] |
194 |
+ ) |
195 |
+" |
196 |
+# diskprediction needs older scipy not compatible with py38 |
197 |
+# bug #724438 |
198 |
+REQUIRED_USE=" |
199 |
+ ${PYTHON_REQUIRED_USE} |
200 |
+ ?? ( jemalloc tcmalloc ) |
201 |
+ ^^ ( openssl libressl ) |
202 |
+ diskprediction? ( mgr !python_targets_python3_8 ) |
203 |
+ kafka? ( radosgw ) |
204 |
+ mgr? ( cephfs ) |
205 |
+ rabbitmq? ( radosgw ) |
206 |
+" |
207 |
+RESTRICT="!test? ( test )" |
208 |
+ |
209 |
+# the tests need root access |
210 |
+RESTRICT="test? ( userpriv )" |
211 |
+ |
212 |
+# distribution tarball does not include everything needed for tests |
213 |
+RESTRICT+=" test" |
214 |
+ |
215 |
+# create a non-debug release |
216 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
217 |
+ |
218 |
+# false positives unless all USE flags are on |
219 |
+CMAKE_WARN_UNUSED_CLI=no |
220 |
+ |
221 |
+PATCHES=( |
222 |
+ "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch" |
223 |
+ "${FILESDIR}/ceph-14.2.0-cflags.patch" |
224 |
+ "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch" |
225 |
+ "${FILESDIR}/ceph-13.2.0-cflags.patch" |
226 |
+ "${FILESDIR}/ceph-15.2.0-no-virtualenvs.patch" |
227 |
+ "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch" |
228 |
+ "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch" |
229 |
+ "${FILESDIR}/ceph-14.2.0-link-crc32-statically.patch" |
230 |
+ "${FILESDIR}/ceph-14.2.0-cython-0.29.patch" |
231 |
+ "${FILESDIR}/ceph-15.2.0-rocksdb-cmake.patch" |
232 |
+ "${FILESDIR}/ceph-15.2.2-systemd-unit.patch" |
233 |
+ "${FILESDIR}/ceph-15.2.3-spdk-compile.patch" |
234 |
+ "${FILESDIR}/ceph-15.2.4-system-uring.patch" |
235 |
+ "${FILESDIR}/ceph-15.2.5-missing-includes.patch" |
236 |
+) |
237 |
+ |
238 |
+check-reqs_export_vars() { |
239 |
+ CHECKREQS_DISK_BUILD="5200M" |
240 |
+ CHECKREQS_DISK_USR="510M" |
241 |
+ |
242 |
+ export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
243 |
+} |
244 |
+ |
245 |
+pkg_pretend() { |
246 |
+ check-reqs_export_vars |
247 |
+ check-reqs_pkg_pretend |
248 |
+} |
249 |
+ |
250 |
+pkg_setup() { |
251 |
+ python_setup |
252 |
+ check-reqs_export_vars |
253 |
+ check-reqs_pkg_setup |
254 |
+} |
255 |
+ |
256 |
+src_prepare() { |
257 |
+ cmake_src_prepare |
258 |
+ |
259 |
+ if use system-boost; then |
260 |
+ find "${S}" -name '*.cmake' -or -name 'CMakeLists.txt' -print0 \ |
261 |
+ | xargs --null sed -r \ |
262 |
+ -e 's|Boost::|boost_|g' \ |
263 |
+ -e 's|Boost_|boost_|g' \ |
264 |
+ -e 's|[Bb]oost_boost|boost_system|g' -i || die |
265 |
+ fi |
266 |
+ |
267 |
+ sed -i -r "s:DESTINATION .+\\):DESTINATION $(get_bashcompdir)\\):" \ |
268 |
+ src/bash_completion/CMakeLists.txt || die |
269 |
+ |
270 |
+ if ! use diskprediction; then |
271 |
+ rm -rf src/pybind/mgr/diskprediction_local || die |
272 |
+ fi |
273 |
+ |
274 |
+ # remove tests that need root access |
275 |
+ rm src/test/cli/ceph-authtool/cap*.t || die |
276 |
+} |
277 |
+ |
278 |
+ceph_src_configure() { |
279 |
+ local flag |
280 |
+ local mycmakeargs=( |
281 |
+ -DWITH_BABELTRACE=$(usex babeltrace) |
282 |
+ -DWITH_BLUESTORE_PMEM=$(usex pmdk) |
283 |
+ -DWITH_CEPHFS=$(usex cephfs) |
284 |
+ -DWITH_CEPHFS_SHELL=$(usex cephfs) |
285 |
+ -DWITH_DPDK=$(usex dpdk) |
286 |
+ -DWITH_SPDK=$(usex spdk) |
287 |
+ -DWITH_FUSE=$(usex fuse) |
288 |
+ -DWITH_LTTNG=$(usex lttng) |
289 |
+ -DWITH_GSSAPI=$(usex kerberos) |
290 |
+ -DWITH_GRAFANA=$(usex grafana) |
291 |
+ -DWITH_MGR=$(usex mgr) |
292 |
+ -DWITH_MGR_DASHBOARD_FRONTEND=OFF |
293 |
+ -DWITH_NUMA=$(usex numa) |
294 |
+ -DWITH_OPENLDAP=$(usex ldap) |
295 |
+ -DWITH_PYTHON3=3 |
296 |
+ -DWITH_RADOSGW=$(usex radosgw) |
297 |
+ -DWITH_RADOSGW_AMQP_ENDPOINT=$(usex rabbitmq) |
298 |
+ -DWITH_RADOSGW_KAFKA_ENDPOINT=$(usex kafka) |
299 |
+ -DWITH_RBD_RWL=$(usex rbd-rwl) |
300 |
+ -DWITH_SSL=$(usex ssl) |
301 |
+ -DWITH_SYSTEMD=$(usex systemd) |
302 |
+ -DWITH_TESTS=$(usex test) |
303 |
+ -DWITH_LIBURING=$(usex uring) |
304 |
+ -DWITH_XFS=$(usex xfs) |
305 |
+ -DWITH_ZFS=$(usex zfs) |
306 |
+ -DENABLE_SHARED="ON" |
307 |
+ -DALLOCATOR=$(usex tcmalloc 'tcmalloc' "$(usex jemalloc 'jemalloc' 'libc')") |
308 |
+ -DWITH_SYSTEM_BOOST=$(usex system-boost) |
309 |
+ -DBOOST_J=$(makeopts_jobs) |
310 |
+ -DWITH_RDMA=OFF |
311 |
+ -DWITH_TBB=OFF |
312 |
+ -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir) |
313 |
+ -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=$(systemd_get_systemunitdir) |
314 |
+ -DEPYTHON_VERSION="${EPYTHON#python}" |
315 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
316 |
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" |
317 |
+ -Wno-dev |
318 |
+ ) |
319 |
+ if use amd64 || use x86; then |
320 |
+ for flag in ${CPU_FLAGS_X86[@]}; do |
321 |
+ mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")") |
322 |
+ done |
323 |
+ fi |
324 |
+ |
325 |
+ # needed for >=glibc-2.32 |
326 |
+ has_version '>=sys-libs/glibc-2.32' && mycmakeargs+=(-DWITH_REENTRANT_STRSIGNAL:BOOL=ON) |
327 |
+ |
328 |
+ rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt" \ |
329 |
+ || die "failed to remove cmake cache" |
330 |
+ |
331 |
+ cmake_src_configure |
332 |
+ |
333 |
+ # bug #630232 |
334 |
+ sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \ |
335 |
+ "${BUILD_DIR:-${S}}"/include/acconfig.h \ |
336 |
+ || die "sed failed" |
337 |
+} |
338 |
+ |
339 |
+src_configure() { |
340 |
+ use custom-cflags || strip-flags |
341 |
+ ceph_src_configure |
342 |
+} |
343 |
+ |
344 |
+python_compile() { |
345 |
+ local CMAKE_USE_DIR="${S}" |
346 |
+ ceph_src_configure |
347 |
+ |
348 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
349 |
+ emake VERBOSE=1 clean |
350 |
+ emake VERBOSE=1 all |
351 |
+ |
352 |
+ # python modules are only compiled with "make install" so we need to do this to |
353 |
+ # prevent doing a bunch of compilation in src_install |
354 |
+ DESTDIR="${T}" emake VERBOSE=1 install |
355 |
+ popd >/dev/null || die |
356 |
+} |
357 |
+ |
358 |
+src_compile() { |
359 |
+ cmake_build VERBOSE=1 all |
360 |
+ |
361 |
+ # we have to do this here to prevent from building everything multiple times |
362 |
+ python_copy_sources |
363 |
+ python_foreach_impl python_compile |
364 |
+} |
365 |
+ |
366 |
+src_test() { |
367 |
+ make check || die "make check failed" |
368 |
+} |
369 |
+ |
370 |
+python_install() { |
371 |
+ local CMAKE_USE_DIR="${S}" |
372 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
373 |
+ DESTDIR="${ED}" emake VERBOSE=1 install |
374 |
+ popd >/dev/null || die |
375 |
+ |
376 |
+ python_optimize |
377 |
+} |
378 |
+ |
379 |
+src_install() { |
380 |
+ cmake_src_install |
381 |
+ python_foreach_impl python_install |
382 |
+ |
383 |
+ find "${ED}" -name '*.la' -type f -delete || die |
384 |
+ |
385 |
+ exeinto /usr/$(get_libdir)/ceph |
386 |
+ newexe "${BUILD_DIR}/bin/init-ceph" init-ceph |
387 |
+ |
388 |
+ insinto /etc/logrotate.d/ |
389 |
+ newins "${FILESDIR}"/ceph.logrotate-r2 ${PN} |
390 |
+ |
391 |
+ keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
392 |
+ |
393 |
+ fowners -R ceph:ceph /var/log/ceph |
394 |
+ |
395 |
+ newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
396 |
+ newinitd "${FILESDIR}/${PN}.initd-r12" ${PN} |
397 |
+ newconfd "${FILESDIR}/${PN}.confd-r5" ${PN} |
398 |
+ |
399 |
+ insinto /etc/sysctl.d |
400 |
+ newins "${FILESDIR}"/sysctld 90-${PN}.conf |
401 |
+ |
402 |
+ use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc |
403 |
+ |
404 |
+ # units aren't installed by the build system unless systemd is enabled |
405 |
+ # so no point installing these with the USE flag disabled |
406 |
+ if use systemd; then |
407 |
+ systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \ |
408 |
+ "ceph-mds@.service" |
409 |
+ |
410 |
+ systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \ |
411 |
+ "ceph-osd@.service" |
412 |
+ |
413 |
+ fi |
414 |
+ |
415 |
+ udev_dorules udev/*.rules |
416 |
+ newtmpfiles "${FILESDIR}"/ceph-tmpfilesd ${PN}.conf |
417 |
+ |
418 |
+ readme.gentoo_create_doc |
419 |
+ |
420 |
+ python_setup |
421 |
+ |
422 |
+ # bug #630232 |
423 |
+ sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph{,-crash} \ |
424 |
+ || die "sed failed" |
425 |
+ |
426 |
+ python_fix_shebang "${ED}"/usr/{,s}bin/ |
427 |
+ |
428 |
+ # python_fix_shebang apparently is not idempotent |
429 |
+ local shebang_regex='(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]' |
430 |
+ grep -r -E -l --null "${shebang_regex}" "${ED}"/usr/{s,}bin/ \ |
431 |
+ | xargs --null --no-run-if-empty -- sed -i -r "s:${shebang_regex}:\1:" || die |
432 |
+ |
433 |
+ local -a rados_classes=( "${ED}/usr/$(get_libdir)/rados-classes"/* ) |
434 |
+ dostrip -x "${rados_classes[@]#${ED}}" |
435 |
+} |
436 |
+ |
437 |
+pkg_postinst() { |
438 |
+ readme.gentoo_print_elog |
439 |
+} |
440 |
|
441 |
diff --git a/sys-cluster/ceph/files/ceph-15.2.5-missing-includes.patch b/sys-cluster/ceph/files/ceph-15.2.5-missing-includes.patch |
442 |
new file mode 100644 |
443 |
index 00000000000..5f4ed843ddc |
444 |
--- /dev/null |
445 |
+++ b/sys-cluster/ceph/files/ceph-15.2.5-missing-includes.patch |
446 |
@@ -0,0 +1,12 @@ |
447 |
+diff --git a/src/tools/rbd/action/Bench.cc b/src/tools/rbd/action/Bench.cc |
448 |
+index aa6edbc18b..90c551c179 100644 |
449 |
+--- a/src/tools/rbd/action/Bench.cc |
450 |
++++ b/src/tools/rbd/action/Bench.cc |
451 |
+@@ -9,6 +9,7 @@ |
452 |
+ #include "common/ceph_mutex.h" |
453 |
+ #include "include/types.h" |
454 |
+ #include "global/signal_handler.h" |
455 |
++#include <atomic> |
456 |
+ #include <iostream> |
457 |
+ #include <boost/accumulators/accumulators.hpp> |
458 |
+ #include <boost/accumulators/statistics/stats.hpp> |