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: Thu, 03 Mar 2022 01:52:53
Message-Id: 1646272320.a449eb7c433b7d6c0cd4597dc83a40f86a6273f6.chutzpah@gentoo
1 commit: a449eb7c433b7d6c0cd4597dc83a40f86a6273f6
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 3 01:52:00 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 3 01:52:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a449eb7c
7
8 sys-cluster/ceph: remove old
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 sys-cluster/ceph/Manifest | 1 -
14 sys-cluster/ceph/ceph-15.2.15-r2.ebuild | 407 --------------------------------
15 2 files changed, 408 deletions(-)
16
17 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
18 index 88d06bae3ea1..93b972d33a05 100644
19 --- a/sys-cluster/ceph/Manifest
20 +++ b/sys-cluster/ceph/Manifest
21 @@ -1,5 +1,4 @@
22 DIST ceph-14.2.22.tar.gz 130597047 BLAKE2B 58bbb3243de076ed1d25dfd7bd75717c50ad15d16690dcbd1511d1b506477845efc3ff7fbe713cf18fb8cfcc8c16707ad2a0f30159e3198ff82e57fbd2eb3cf2 SHA512 1c66661e1a39fa9151e95e33c390b810ffe269465d8785e2197cc15b8d83bd2edde77de48a8abd71a4da68cd5830ff14bcdf6b98fd17edabe85caeb1eca018d3
23 -DIST ceph-15.2.15.tar.gz 148584988 BLAKE2B 6ff629846a74c9b30c7e5d54731e2c85c67942f1871194cc8e704c56826b86cdd6163d6693805d9d6210bc0e3fc4d84fada12b9d81a5640e34d76be83cfe6e47 SHA512 e4d929ffda5c3e31767d93340fb97b5d49ca1d5641f6c30134ce5542486fc4f72684aef2ef47cb940a332e8b9144d8cec63ce8a9f86c773dbc0ccebdd8e7fb19
24 DIST ceph-15.2.16.tar.gz 148628915 BLAKE2B 4f624078027c706428eae3eddd5b5479efe3b4442c19a4e6b6cdf8d3839cf56e2863b18249dc3c5079a7e25f60796bfec3202ffd695537587654f5e2f820caaa SHA512 532b8a5073e157fe9ed552b26976faeb64dc29b79a249910c0982134ad5f945d4f57d8bf451adf63487b6d285c6e4bd5c39f0e3fcd449230d6fb3087539f8c3b
25 DIST ceph-16.2.5.tar.gz 155933825 BLAKE2B 3c8f3f1663b91d4de1e3736317add0b88d9083db5ab2fc3e2e913278977deec076bd4410e309f4e47ccc169d74356c2ab1221c94532cc45ee75ec73673fc42a0 SHA512 5c32f9aa817ecfa788725bcfe5743756853ca9b3f9ee453242110f1b5e1bdd1feaef79ad9ccf2b185445c9644bcecb1355e151a2255bfd27edc9818e0d6d4c4a
26 DIST ceph-16.2.6.tar.gz 156087762 BLAKE2B e2595d1a958200e4f1877e4597c53319a9eee2e95606ea1b3ba2966a0d17f1cfcf52e05cca59752cc6ac383e32d944c380920d111aec840631235aef273a4de1 SHA512 f01e29088ae566d4111c21b5d0c173ddb02badaa0d8272f7f1548eb8e66a95dc7052b3945d9fb342e6c97a65c57648fda394317340d1f4236a57af7580073658
27
28 diff --git a/sys-cluster/ceph/ceph-15.2.15-r2.ebuild b/sys-cluster/ceph/ceph-15.2.15-r2.ebuild
29 deleted file mode 100644
30 index 6faac62ff814..000000000000
31 --- a/sys-cluster/ceph/ceph-15.2.15-r2.ebuild
32 +++ /dev/null
33 @@ -1,407 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -PYTHON_COMPAT=( python3_{7..9} )
39 -CMAKE_MAKEFILE_GENERATOR=emake
40 -
41 -DISTUTILS_OPTIONAL=1
42 -
43 -inherit check-reqs bash-completion-r1 cmake distutils-r1 flag-o-matic \
44 - python-r1 udev readme.gentoo-r1 toolchain-funcs systemd tmpfiles \
45 - multiprocessing
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 lttng +mgr numa pmdk rabbitmq +radosgw rbd-rwl +ssl spdk
66 - +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/snappy-1.1.9-r1 <app-arch/snappy-1.1.9 )
77 - app-arch/zstd:=
78 - app-shells/bash:0
79 - app-misc/jq:=
80 - dev-libs/crypto++:=
81 - dev-cpp/gflags:=
82 - dev-libs/leveldb:=[snappy,tcmalloc(-)?]
83 - dev-libs/libaio:=
84 - dev-libs/libfmt:=
85 - dev-libs/libnl:3=
86 - dev-libs/libxml2:=
87 - <dev-libs/rocksdb-6.15:=
88 - dev-libs/xmlsec:=[openssl]
89 - dev-cpp/yaml-cpp:=
90 - dev-libs/nss:=
91 - dev-libs/protobuf:=
92 - net-dns/c-ares:=
93 - net-libs/gnutls:=
94 - sys-auth/oath-toolkit:=
95 - sys-apps/coreutils
96 - sys-apps/grep
97 - sys-apps/hwloc:=
98 - sys-apps/keyutils:=
99 - sys-apps/util-linux:=
100 - sys-apps/sed
101 - sys-apps/util-linux
102 - sys-libs/libcap-ng:=
103 - sys-libs/ncurses:0=
104 - sys-libs/zlib:=
105 - sys-process/numactl:=
106 - virtual/libcrypt:=
107 - x11-libs/libpciaccess:=
108 - babeltrace? ( dev-util/babeltrace )
109 - fuse? ( sys-fs/fuse:0= )
110 - jemalloc? ( dev-libs/jemalloc:= )
111 - !jemalloc? ( >=dev-util/google-perftools-2.6.1:= )
112 - kafka? ( dev-libs/librdkafka:= )
113 - kerberos? ( virtual/krb5 )
114 - ldap? ( net-nds/openldap:= )
115 - lttng? ( dev-util/lttng-ust:= )
116 - pmdk? ( dev-libs/pmdk:= )
117 - rabbitmq? ( net-libs/rabbitmq-c:= )
118 - radosgw? (
119 - dev-libs/expat:=
120 - dev-libs/openssl:=
121 - net-misc/curl:=[curl_ssl_openssl]
122 - )
123 - rbd-rwl? ( dev-libs/pmdk:= )
124 - ssl? ( dev-libs/openssl:= )
125 - system-boost? ( >=dev-libs/boost-1.72:=[threads(+),context,python,${PYTHON_USEDEP}] )
126 - !system-boost? ( <sys-libs/glibc-2.34 )
127 - uring? ( sys-libs/liburing:= )
128 - xfs? ( sys-fs/xfsprogs:= )
129 - zfs? ( sys-fs/zfs:= )
130 -"
131 -BDEPEND="
132 - ${PYTHON_DEPS}
133 - amd64? ( dev-lang/yasm )
134 - x86? ( dev-lang/yasm )
135 - app-arch/cpio
136 - >=dev-util/cmake-3.5.0
137 - dev-python/cython[${PYTHON_USEDEP}]
138 - dev-python/setuptools[${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/grep
146 - sys-apps/sed
147 - sys-apps/which
148 - sys-devel/bc
149 - sys-devel/patch
150 - virtual/pkgconfig
151 - test? (
152 - dev-python/coverage[${PYTHON_USEDEP}]
153 - dev-python/virtualenv[${PYTHON_USEDEP}]
154 - dev-python/requests-mock[${PYTHON_USEDEP}]
155 - sys-apps/grep[pcre]
156 - sys-fs/btrfs-progs
157 - )
158 -"
159 -RDEPEND="${DEPEND}
160 - ${PYTHON_DEPS}
161 - app-admin/sudo
162 - net-misc/socat
163 - sys-apps/gptfdisk
164 - sys-apps/nvme-cli
165 - >=sys-apps/smartmontools-7.0
166 - sys-block/parted
167 - sys-fs/cryptsetup
168 - sys-fs/lsscsi
169 - sys-fs/lvm2[-device-mapper-only(-)]
170 - virtual/awk
171 - dev-python/bcrypt[${PYTHON_USEDEP}]
172 - dev-python/cherrypy[${PYTHON_USEDEP}]
173 - dev-python/python-dateutil[${PYTHON_USEDEP}]
174 - dev-python/flask[${PYTHON_USEDEP}]
175 - dev-python/jinja[${PYTHON_USEDEP}]
176 - dev-python/pecan[${PYTHON_USEDEP}]
177 - dev-python/prettytable[${PYTHON_USEDEP}]
178 - dev-python/pyopenssl[${PYTHON_USEDEP}]
179 - dev-python/requests[${PYTHON_USEDEP}]
180 - dev-python/setuptools[${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 - sci-libs/scikit-learn[${PYTHON_USEDEP}]
190 - dev-python/six[${PYTHON_USEDEP}]
191 - )
192 -"
193 -# diskprediction needs older scipy not compatible with py38
194 -# bug #724438
195 -REQUIRED_USE="
196 - ${PYTHON_REQUIRED_USE}
197 - ?? ( jemalloc tcmalloc )
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-15.2.15-no-virtualenvs.patch"
223 - "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch"
224 - "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch"
225 - "${FILESDIR}/ceph-14.2.0-cython-0.29.patch"
226 - "${FILESDIR}/ceph-15.2.0-rocksdb-cmake.patch"
227 - "${FILESDIR}/ceph-15.2.2-systemd-unit.patch"
228 - "${FILESDIR}/ceph-15.2.3-spdk-compile.patch"
229 - "${FILESDIR}/ceph-15.2.4-system-uring.patch"
230 - "${FILESDIR}/ceph-15.2.9-dont-compile-isal_compress-if-don-t-have-SSE4_1.patch"
231 - "${FILESDIR}/ceph-15.2.15-snappy-1.1.9.patch"
232 -)
233 -
234 -check-reqs_export_vars() {
235 - CHECKREQS_DISK_BUILD="5400M"
236 - CHECKREQS_DISK_USR="510M"
237 -
238 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
239 -}
240 -
241 -pkg_pretend() {
242 - check-reqs_export_vars
243 - check-reqs_pkg_pretend
244 -}
245 -
246 -pkg_setup() {
247 - python_setup
248 - check-reqs_export_vars
249 - check-reqs_pkg_setup
250 -}
251 -
252 -src_prepare() {
253 - cmake_src_prepare
254 -
255 - if use system-boost; then
256 - find "${S}" -name '*.cmake' -or -name 'CMakeLists.txt' -print0 \
257 - | xargs --null sed -r \
258 - -e 's|Boost::|boost_|g' \
259 - -e 's|Boost_|boost_|g' \
260 - -e 's|[Bb]oost_boost|boost_system|g' -i || die
261 - fi
262 -
263 - sed -r -e "s:DESTINATION .+\\):DESTINATION $(get_bashcompdir)\\):" \
264 - -i src/bash_completion/CMakeLists.txt || die
265 -
266 - sed -e "s:objdump -p:$(tc-getOBJDUMP) -p:" -i CMakeLists.txt || die
267 -
268 - if ! use diskprediction; then
269 - rm -rf src/pybind/mgr/diskprediction_local || die
270 - fi
271 -
272 - # remove tests that need root access
273 - rm src/test/cli/ceph-authtool/cap*.t || die
274 -}
275 -
276 -ceph_src_configure() {
277 - local flag
278 - local mycmakeargs=(
279 - -DWITH_BABELTRACE=$(usex babeltrace)
280 - -DWITH_BLUESTORE_PMEM=$(usex pmdk)
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_RBD_RWL=$(usex rbd-rwl)
298 - -DWITH_SSL=$(usex ssl)
299 - -DWITH_SYSTEMD=$(usex systemd)
300 - -DWITH_TESTS=$(usex test)
301 - -DWITH_LIBURING=$(usex uring)
302 - -DWITH_XFS=$(usex xfs)
303 - -DWITH_ZFS=$(usex zfs)
304 - -DENABLE_SHARED="ON"
305 - -DALLOCATOR=$(usex tcmalloc 'tcmalloc' "$(usex jemalloc 'jemalloc' 'libc')")
306 - -DWITH_SYSTEM_PMDK=$(usex pmdk 'YES' "$(usex rbd-rwl)")
307 - -DWITH_SYSTEM_BOOST=$(usex system-boost)
308 - -DBOOST_J=$(makeopts_jobs)
309 - -DWITH_SYSTEM_ROCKSDB=ON
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-r1" 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 - tmpfiles_process ${PN}.conf
440 -}