Gentoo Archives: gentoo-commits

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