1 |
commit: 9365926d82ac11358f816bac6ada444f80030528 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 02:34:10 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 02:35:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9365926d |
7 |
|
8 |
Revert "sys-cluster/ceph: Remove old" |
9 |
|
10 |
This reverts commit 81596064dffbaf2d838af575d833cd9b21693a51. |
11 |
|
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
sys-cluster/ceph/Manifest | 1 + |
15 |
sys-cluster/ceph/ceph-14.2.11-r1.ebuild | 401 +++++++++++++++++++++ |
16 |
.../ceph/files/ceph-14.2.10-missing-includes.patch | 26 ++ |
17 |
3 files changed, 428 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest |
20 |
index 032b580567d..ae0df28d34b 100644 |
21 |
--- a/sys-cluster/ceph/Manifest |
22 |
+++ b/sys-cluster/ceph/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
+DIST ceph-14.2.11.tar.gz 129327263 BLAKE2B fb04f3fde6642905dd21836c7472cf3b6cb484f69367ecf01b7d427c757e0fd1db4bd483bf9b0e485e1f8924a8e9201e8d47713a1de9281d5d96e45939bd1078 SHA512 765e8982d457cfd900acddc8f82c23824b32dc6d925d45e7693cba48c06fab798b6d57991dc9ad18a9ace9aff6fb2b917bd97f2d6435a7caceb03c9733e9602a |
25 |
DIST ceph-14.2.13.tar.gz 129255298 BLAKE2B 32d12ede10ff657e9341e2fc31412018041a327a4c62219105a4e9576fa46643c12b936c3eaa003a78677c4ef401ef6bd73fe150604e8031482f1d237d483ff1 SHA512 3d51b729ccf26aa9a40c1320f4051755ec405abc714ae5257ec5433a13549e34fed0945f3091525fd8118d00c36fe4ae793125728d9e17f4221cdd1ee7de5b12 |
26 |
DIST ceph-14.2.15.tar.gz 129254705 BLAKE2B bb30f04ace31c2175c6678a9f252fc31951fd32f47362fb460ed9b8edec3a6535752d28214530e9b996c384a6e6a23eebce5caa89cb2746a2e258f5a1e1f8a3c SHA512 20ac9244974cc1312b7c642acf00142f5b7f59b09ae338f73b6c8e1ee2054b4ebd62701b18653cc792ca575a77b98644903ebb11bee6a9f1ab3aec6b37a2ef1b |
27 |
DIST ceph-15.2.5.tar.gz 149219528 BLAKE2B 8f2cea9a258b7c530bff72a46d45fabf5364cf919f098c7d77857afa0dfdbcd7c290aa5a0d88cce1d99923588cc303d27c0b85179378ff1c394d9ce0f135a1b1 SHA512 55de068886c48293e92ef95cf8343ae44825fd2bf9c3fa7d47cda92907a47bae79e0af730cd34d0155b0777901d0fd6f9d1f30537c66c54c95098df7368fca2e |
28 |
|
29 |
diff --git a/sys-cluster/ceph/ceph-14.2.11-r1.ebuild b/sys-cluster/ceph/ceph-14.2.11-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..43094784627 |
32 |
--- /dev/null |
33 |
+++ b/sys-cluster/ceph/ceph-14.2.11-r1.ebuild |
34 |
@@ -0,0 +1,401 @@ |
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 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
41 |
+CMAKE_MAKEFILE_GENERATOR=emake |
42 |
+ |
43 |
+DISTUTILS_OPTIONAL=1 |
44 |
+ |
45 |
+inherit check-reqs bash-completion-r1 cmake distutils-r1 flag-o-matic \ |
46 |
+ python-r1 udev readme.gentoo-r1 toolchain-funcs systemd tmpfiles |
47 |
+ |
48 |
+if [[ ${PV} == *9999* ]]; then |
49 |
+ inherit git-r3 |
50 |
+ EGIT_REPO_URI="https://github.com/ceph/ceph.git" |
51 |
+ SRC_URI="" |
52 |
+else |
53 |
+ SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz" |
54 |
+ KEYWORDS="~amd64 ~ppc64" |
55 |
+fi |
56 |
+ |
57 |
+DESCRIPTION="Ceph distributed filesystem" |
58 |
+HOMEPAGE="https://ceph.com/" |
59 |
+ |
60 |
+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" |
61 |
+SLOT="0" |
62 |
+ |
63 |
+CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3) |
64 |
+ |
65 |
+IUSE="babeltrace +cephfs custom-cflags diskprediction dpdk fuse grafana jemalloc |
66 |
+ kafka kerberos ldap libressl lttng +mgr numa +openssl rabbitmq +radosgw +ssl |
67 |
+ spdk system-boost systemd +tcmalloc test xfs zfs" |
68 |
+IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" |
69 |
+ |
70 |
+DEPEND=" |
71 |
+ acct-group/ceph |
72 |
+ acct-user/ceph |
73 |
+ virtual/libudev:= |
74 |
+ app-arch/bzip2:= |
75 |
+ app-arch/lz4:= |
76 |
+ app-arch/snappy:= |
77 |
+ app-arch/zstd:= |
78 |
+ app-shells/bash:0 |
79 |
+ app-misc/jq:= |
80 |
+ dev-libs/crypto++:= |
81 |
+ dev-libs/leveldb:=[snappy,tcmalloc(-)?] |
82 |
+ dev-libs/libaio:= |
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 |
+ xfs? ( sys-fs/xfsprogs:= ) |
130 |
+ zfs? ( sys-fs/zfs:= ) |
131 |
+ ${PYTHON_DEPS} |
132 |
+" |
133 |
+BDEPEND=" |
134 |
+ amd64? ( dev-lang/yasm ) |
135 |
+ x86? ( dev-lang/yasm ) |
136 |
+ app-arch/cpio |
137 |
+ >=dev-util/cmake-3.5.0 |
138 |
+ dev-python/cython[${PYTHON_USEDEP}] |
139 |
+ dev-python/sphinx |
140 |
+ dev-util/cunit |
141 |
+ dev-util/gperf |
142 |
+ dev-util/ragel |
143 |
+ dev-util/valgrind |
144 |
+ sys-apps/coreutils |
145 |
+ sys-apps/findutils |
146 |
+ sys-apps/grep |
147 |
+ sys-apps/sed |
148 |
+ sys-apps/which |
149 |
+ sys-devel/bc |
150 |
+ sys-devel/patch |
151 |
+ virtual/pkgconfig |
152 |
+ test? ( |
153 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
154 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
155 |
+ dev-python/requests-mock[${PYTHON_USEDEP}] |
156 |
+ sys-apps/grep[pcre] |
157 |
+ sys-fs/btrfs-progs |
158 |
+ ) |
159 |
+" |
160 |
+RDEPEND="${DEPEND} |
161 |
+ app-admin/sudo |
162 |
+ net-misc/socat |
163 |
+ sys-apps/gptfdisk |
164 |
+ >=sys-apps/smartmontools-7.0 |
165 |
+ sys-block/parted |
166 |
+ sys-fs/cryptsetup |
167 |
+ sys-fs/lsscsi |
168 |
+ sys-fs/lvm2[-device-mapper-only(-)] |
169 |
+ virtual/awk |
170 |
+ dev-python/bcrypt[${PYTHON_USEDEP}] |
171 |
+ dev-python/cherrypy[${PYTHON_USEDEP}] |
172 |
+ dev-python/flask[${PYTHON_USEDEP}] |
173 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
174 |
+ dev-python/pecan[${PYTHON_USEDEP}] |
175 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
176 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
177 |
+ dev-python/requests[${PYTHON_USEDEP}] |
178 |
+ dev-python/werkzeug[${PYTHON_USEDEP}] |
179 |
+ mgr? ( |
180 |
+ dev-python/more-itertools[${PYTHON_USEDEP}] |
181 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
182 |
+ dev-python/pyjwt[${PYTHON_USEDEP}] |
183 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
184 |
+ dev-python/routes[${PYTHON_USEDEP}] |
185 |
+ diskprediction? ( |
186 |
+ $(python_gen_cond_dep '<dev-python/scipy-1.4.0[${PYTHON_USEDEP}]' python3_{6,7}) |
187 |
+ ) |
188 |
+ sci-libs/scikit-learn[${PYTHON_USEDEP}] |
189 |
+ dev-python/six[${PYTHON_USEDEP}] |
190 |
+ ) |
191 |
+" |
192 |
+# diskprediction needs older scipy not compatible with py38 |
193 |
+# bug #724438 |
194 |
+REQUIRED_USE=" |
195 |
+ ${PYTHON_REQUIRED_USE} |
196 |
+ ?? ( jemalloc tcmalloc ) |
197 |
+ ^^ ( openssl libressl ) |
198 |
+ diskprediction? ( mgr !python_targets_python3_8 ) |
199 |
+ kafka? ( radosgw ) |
200 |
+ mgr? ( cephfs ) |
201 |
+ rabbitmq? ( radosgw ) |
202 |
+" |
203 |
+RESTRICT="!test? ( test )" |
204 |
+ |
205 |
+# the tests need root access |
206 |
+RESTRICT="test? ( userpriv )" |
207 |
+ |
208 |
+# distribution tarball does not include everything needed for tests |
209 |
+RESTRICT+=" test" |
210 |
+ |
211 |
+# create a non-debug release |
212 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
213 |
+ |
214 |
+# false positives unless all USE flags are on |
215 |
+CMAKE_WARN_UNUSED_CLI=no |
216 |
+ |
217 |
+PATCHES=( |
218 |
+ "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch" |
219 |
+ "${FILESDIR}/ceph-14.2.0-cflags.patch" |
220 |
+ "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch" |
221 |
+ "${FILESDIR}/ceph-13.2.0-cflags.patch" |
222 |
+ "${FILESDIR}/ceph-14.2.0-mgr-python-version.patch" |
223 |
+ "${FILESDIR}/ceph-14.2.5-no-virtualenvs.patch" |
224 |
+ "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch" |
225 |
+ "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch" |
226 |
+ "${FILESDIR}/ceph-14.2.0-link-crc32-statically.patch" |
227 |
+ "${FILESDIR}/ceph-14.2.0-cython-0.29.patch" |
228 |
+ "${FILESDIR}/ceph-14.2.3-dpdk-compile-fix-1.patch" |
229 |
+ "${FILESDIR}/ceph-14.2.4-python-executable.patch" |
230 |
+ "${FILESDIR}/ceph-14.2.4-undefined-behaviour.patch" |
231 |
+ "${FILESDIR}/ceph-14.2.10-missing-includes.patch" |
232 |
+ "${FILESDIR}/ceph-14.2.10-python-warnings.patch" |
233 |
+ "${FILESDIR}/ceph-14.2.10-build-without-mgr.patch" |
234 |
+ "${FILESDIR}/ceph-14.2.11-systemd-unit-fix.patch" |
235 |
+) |
236 |
+ |
237 |
+check-reqs_export_vars() { |
238 |
+ CHECKREQS_DISK_BUILD="5200M" |
239 |
+ CHECKREQS_DISK_USR="510M" |
240 |
+ |
241 |
+ export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
242 |
+} |
243 |
+ |
244 |
+pkg_pretend() { |
245 |
+ check-reqs_export_vars |
246 |
+ check-reqs_pkg_pretend |
247 |
+} |
248 |
+ |
249 |
+pkg_setup() { |
250 |
+ python_setup |
251 |
+ check-reqs_export_vars |
252 |
+ check-reqs_pkg_setup |
253 |
+} |
254 |
+ |
255 |
+src_prepare() { |
256 |
+ cmake_src_prepare |
257 |
+ |
258 |
+ if use system-boost; then |
259 |
+ find "${S}" -name '*.cmake' -or -name 'CMakeLists.txt' -print0 \ |
260 |
+ | xargs --null sed -r \ |
261 |
+ -e 's|Boost::|boost_|g' \ |
262 |
+ -e 's|Boost_|boost_|g' \ |
263 |
+ -e 's|[Bb]oost_boost|boost_system|g' -i || die |
264 |
+ fi |
265 |
+ |
266 |
+ sed -i -r "s:DESTINATION .+\\):DESTINATION $(get_bashcompdir)\\):" \ |
267 |
+ src/bash_completion/CMakeLists.txt || die |
268 |
+ |
269 |
+ if ! use diskprediction; then |
270 |
+ rm -rf src/pybind/mgr/diskprediction_local || die |
271 |
+ fi |
272 |
+ |
273 |
+ # remove tests that need root access |
274 |
+ rm src/test/cli/ceph-authtool/cap*.t || die |
275 |
+} |
276 |
+ |
277 |
+ceph_src_configure() { |
278 |
+ local flag |
279 |
+ local mycmakeargs=( |
280 |
+ -DWITH_BABELTRACE=$(usex babeltrace) |
281 |
+ -DWITH_CEPHFS=$(usex cephfs) |
282 |
+ -DWITH_CEPHFS_SHELL=$(usex cephfs) |
283 |
+ -DWITH_DPDK=$(usex dpdk) |
284 |
+ -DWITH_SPDK=$(usex spdk) |
285 |
+ -DWITH_FUSE=$(usex fuse) |
286 |
+ -DWITH_LTTNG=$(usex lttng) |
287 |
+ -DWITH_GSSAPI=$(usex kerberos) |
288 |
+ -DWITH_GRAFANA=$(usex grafana) |
289 |
+ -DWITH_MGR=$(usex mgr) |
290 |
+ -DWITH_MGR_DASHBOARD_FRONTEND=OFF |
291 |
+ -DWITH_NUMA=$(usex numa) |
292 |
+ -DWITH_OPENLDAP=$(usex ldap) |
293 |
+ -DWITH_PYTHON3=3 |
294 |
+ -DWITH_RADOSGW=$(usex radosgw) |
295 |
+ -DWITH_RADOSGW_AMQP_ENDPOINT=$(usex rabbitmq) |
296 |
+ -DWITH_RADOSGW_KAFKA_ENDPOINT=$(usex kafka) |
297 |
+ -DWITH_SSL=$(usex ssl) |
298 |
+ -DWITH_SYSTEMD=$(usex systemd) |
299 |
+ -DWITH_TESTS=$(usex test) |
300 |
+ -DWITH_XFS=$(usex xfs) |
301 |
+ -DWITH_ZFS=$(usex zfs) |
302 |
+ -DENABLE_SHARED="ON" |
303 |
+ -DALLOCATOR=$(usex tcmalloc 'tcmalloc' "$(usex jemalloc 'jemalloc' 'libc')") |
304 |
+ -DWITH_SYSTEM_BOOST=$(usex system-boost) |
305 |
+ -DBOOST_J=$(makeopts_jobs) |
306 |
+ -DWITH_RDMA=OFF |
307 |
+ -DWITH_TBB=OFF |
308 |
+ -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir) |
309 |
+ -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=$(systemd_get_systemunitdir) |
310 |
+ -DEPYTHON_VERSION="${EPYTHON#python}" |
311 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
312 |
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc" |
313 |
+ -Wno-dev |
314 |
+ ) |
315 |
+ if use amd64 || use x86; then |
316 |
+ for flag in ${CPU_FLAGS_X86[@]}; do |
317 |
+ mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")") |
318 |
+ done |
319 |
+ fi |
320 |
+ |
321 |
+ # needed for >=glibc-2.32 |
322 |
+ has_version '>=sys-libs/glibc-2.32' && mycmakeargs+=(-DWITH_REENTRANT_STRSIGNAL:BOOL=ON) |
323 |
+ |
324 |
+ rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt" \ |
325 |
+ || die "failed to remove cmake cache" |
326 |
+ |
327 |
+ cmake_src_configure |
328 |
+ |
329 |
+ # bug #630232 |
330 |
+ sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \ |
331 |
+ "${BUILD_DIR:-${S}}"/include/acconfig.h \ |
332 |
+ || die "sed failed" |
333 |
+} |
334 |
+ |
335 |
+src_configure() { |
336 |
+ use custom-cflags || strip-flags |
337 |
+ ceph_src_configure |
338 |
+} |
339 |
+ |
340 |
+python_compile() { |
341 |
+ local CMAKE_USE_DIR="${S}" |
342 |
+ ceph_src_configure |
343 |
+ |
344 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
345 |
+ emake VERBOSE=1 clean |
346 |
+ emake VERBOSE=1 all |
347 |
+ |
348 |
+ # python modules are only compiled with "make install" so we need to do this to |
349 |
+ # prevent doing a bunch of compilation in src_install |
350 |
+ DESTDIR="${T}" emake VERBOSE=1 install |
351 |
+ popd >/dev/null || die |
352 |
+} |
353 |
+ |
354 |
+src_compile() { |
355 |
+ cmake_build VERBOSE=1 all |
356 |
+ |
357 |
+ # we have to do this here to prevent from building everything multiple times |
358 |
+ python_copy_sources |
359 |
+ python_foreach_impl python_compile |
360 |
+} |
361 |
+ |
362 |
+src_test() { |
363 |
+ make check || die "make check failed" |
364 |
+} |
365 |
+ |
366 |
+python_install() { |
367 |
+ local CMAKE_USE_DIR="${S}" |
368 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
369 |
+ DESTDIR="${ED}" emake VERBOSE=1 install |
370 |
+ popd >/dev/null || die |
371 |
+ |
372 |
+ python_optimize |
373 |
+} |
374 |
+ |
375 |
+src_install() { |
376 |
+ cmake_src_install |
377 |
+ python_foreach_impl python_install |
378 |
+ |
379 |
+ find "${ED}" -name '*.la' -type f -delete || die |
380 |
+ |
381 |
+ exeinto /usr/$(get_libdir)/ceph |
382 |
+ newexe "${BUILD_DIR}/bin/init-ceph" init-ceph |
383 |
+ |
384 |
+ insinto /etc/logrotate.d/ |
385 |
+ newins "${FILESDIR}"/ceph.logrotate-r2 ${PN} |
386 |
+ |
387 |
+ keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
388 |
+ |
389 |
+ fowners -R ceph:ceph /var/log/ceph |
390 |
+ |
391 |
+ newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
392 |
+ newinitd "${FILESDIR}/${PN}.initd-r12" ${PN} |
393 |
+ newconfd "${FILESDIR}/${PN}.confd-r5" ${PN} |
394 |
+ |
395 |
+ insinto /etc/sysctl.d |
396 |
+ newins "${FILESDIR}"/sysctld 90-${PN}.conf |
397 |
+ |
398 |
+ use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc |
399 |
+ |
400 |
+ # units aren't installed by the build system unless systemd is enabled |
401 |
+ # so no point installing these with the USE flag disabled |
402 |
+ if use systemd; then |
403 |
+ systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \ |
404 |
+ "ceph-mds@.service" |
405 |
+ |
406 |
+ systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \ |
407 |
+ "ceph-osd@.service" |
408 |
+ |
409 |
+ fi |
410 |
+ |
411 |
+ udev_dorules udev/*.rules |
412 |
+ newtmpfiles "${FILESDIR}"/ceph-tmpfilesd ${PN}.conf |
413 |
+ |
414 |
+ readme.gentoo_create_doc |
415 |
+ |
416 |
+ python_setup |
417 |
+ |
418 |
+ # bug #630232 |
419 |
+ sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph{,-crash} \ |
420 |
+ || die "sed failed" |
421 |
+ |
422 |
+ python_fix_shebang "${ED}"/usr/{,s}bin/ |
423 |
+ |
424 |
+ # python_fix_shebang apparently is not idempotent |
425 |
+ local shebang_regex='(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]' |
426 |
+ grep -r -E -l --null "${shebang_regex}" "${ED}"/usr/{s,}bin/ \ |
427 |
+ | xargs --null --no-run-if-empty -- sed -i -r "s:${shebang_regex}:\1:" || die |
428 |
+ |
429 |
+ local -a rados_classes=( "${ED}/usr/$(get_libdir)/rados-classes"/* ) |
430 |
+ dostrip -x "${rados_classes[@]#${ED}}" |
431 |
+} |
432 |
+ |
433 |
+pkg_postinst() { |
434 |
+ readme.gentoo_print_elog |
435 |
+} |
436 |
|
437 |
diff --git a/sys-cluster/ceph/files/ceph-14.2.10-missing-includes.patch b/sys-cluster/ceph/files/ceph-14.2.10-missing-includes.patch |
438 |
new file mode 100644 |
439 |
index 00000000000..aaa6ee080a3 |
440 |
--- /dev/null |
441 |
+++ b/sys-cluster/ceph/files/ceph-14.2.10-missing-includes.patch |
442 |
@@ -0,0 +1,26 @@ |
443 |
+diff --git a/src/common/bit_str.h b/src/common/bit_str.h |
444 |
+index c4c24f6a75..b5631e8b84 100644 |
445 |
+--- a/src/common/bit_str.h |
446 |
++++ b/src/common/bit_str.h |
447 |
+@@ -14,6 +14,8 @@ |
448 |
+ #ifndef CEPH_COMMON_BIT_STR_H |
449 |
+ #define CEPH_COMMON_BIT_STR_H |
450 |
+ |
451 |
++#include <cstdint> |
452 |
++#include <iosfwd> |
453 |
+ #include <functional> |
454 |
+ |
455 |
+ namespace ceph { |
456 |
+diff --git a/src/librbd/api/PoolMetadata.h b/src/librbd/api/PoolMetadata.h |
457 |
+index 977ce3638d..8d982879aa 100644 |
458 |
+--- a/src/librbd/api/PoolMetadata.h |
459 |
++++ b/src/librbd/api/PoolMetadata.h |
460 |
+@@ -8,6 +8,8 @@ |
461 |
+ #include "include/rados/librados_fwd.hpp" |
462 |
+ |
463 |
+ #include <map> |
464 |
++#include <string> |
465 |
++#include <cstdint> |
466 |
+ |
467 |
+ namespace librbd { |
468 |
+ |