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