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: Mon, 29 Apr 2019 22:58:01
Message-Id: 1556578651.53199345ac75d5d3695fd304430eeebbf14e5685.chutzpah@gentoo
1 commit: 53199345ac75d5d3695fd304430eeebbf14e5685
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Mon Apr 29 22:57:31 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 29 22:57:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53199345
7
8 sys-cluster/ceph: Remove old
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.65, Repoman-2.3.12
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 sys-cluster/ceph/Manifest | 1 -
15 sys-cluster/ceph/ceph-14.2.0-r5.ebuild | 344 ---------------------------------
16 2 files changed, 345 deletions(-)
17
18 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
19 index 4c6e42c016e..9b0137e2714 100644
20 --- a/sys-cluster/ceph/Manifest
21 +++ b/sys-cluster/ceph/Manifest
22 @@ -2,5 +2,4 @@ DIST ceph-12.2.11.tar.gz 79009034 BLAKE2B d8b1c188fe39603e90511eb436100ba14c0a9c
23 DIST ceph-12.2.12.tar.gz 77467762 BLAKE2B a5224432121db9ef49c1e22771d847399df2f7881cd9c2e185eca12096efb79d21578659d248eb5bae678924983d57452d370e23ab7e78663764d7bea834a461 SHA512 e694c9a8c1f9836c08fb74b54423bdc16d4900252e34643c56cf1a615d4dacddfb13df06a6a9f68bb9d438f5f07069ed358f9fa4b5a362640a3046f9c7722dcc
24 DIST ceph-12.2.8.tar.gz 77243685 BLAKE2B 37c34396a0c276b8d79735e14934ac70da024822c2a060061531c234e03e5d41aad6c41dc64b05c2ce47f03287d0cae9ef9bed67e4a0861b6380c8ce1de4ea69 SHA512 91c5c11aaeef701b3e31c9f8a1192b6b79fd34f3b96c61595c65173c98bfce0009c5b7c9b29764f5e4d4b1f5ac2ca7109fed5ae598c176aba717a34a132fabac
25 DIST ceph-13.2.5.tar.gz 91006057 BLAKE2B 68551e2f54d78aff7b0e9ec3c62e6a3394dd7c23e80924a5b400cd9666a05a42e5f22445deee4040f1b78201c6a6660b283109878d4c92d845821bff831c8a5e SHA512 6daea524523f829e725609328ea71f416b2c3a9530fa8956720a7bc69dc08e55a169654f500704579dc9ba693f04eedd7e04614c0850e9ab1169cd45f19039f8
26 -DIST ceph-14.2.0.tar.gz 118882504 BLAKE2B e650d99dceb11c7b035480c8cdd9f63ee4a5f81ffea27988e180a2956433e3e4b34e496a73bf5992c428eff859311c623b92a6f006eb694ebf928d8204dc9b06 SHA512 c86a335714fd5678988133ec0e60cb10cd948250a133c073d1ed055c5bba232fa6f1e102dd7fcb0c70b37a07c9c2d1220d4a1713720e4dcab9659152ee577480
27 DIST ceph-14.2.1.tar.gz 117111511 BLAKE2B c00181223c6e02e7fe696ed4226f1751eca48e799f8b5377a06621eb3300f81b58dc20f325b455df04fcbd0c28b981fae1cfc778a8d69414247ddd206d0c6175 SHA512 fccde341344c721fbfc7f7cb73db4f65933d7fcacc9495398b55b37d1e208f0bad0cd78a4da08a3b5e26cca3175e7707f7dfb76fae5aa094f58afaed8603c866
28
29 diff --git a/sys-cluster/ceph/ceph-14.2.0-r5.ebuild b/sys-cluster/ceph/ceph-14.2.0-r5.ebuild
30 deleted file mode 100644
31 index 52a0a5582ab..00000000000
32 --- a/sys-cluster/ceph/ceph-14.2.0-r5.ebuild
33 +++ /dev/null
34 @@ -1,344 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
40 -DISTUTILS_OPTIONAL=1
41 -
42 -inherit check-reqs bash-completion-r1 cmake-utils distutils-r1 flag-o-matic \
43 - multiprocessing python-r1 udev user readme.gentoo-r1 toolchain-funcs \
44 - systemd
45 -
46 -if [[ ${PV} == *9999* ]]; then
47 - inherit git-r3
48 - EGIT_REPO_URI="https://github.com/ceph/ceph.git"
49 - SRC_URI=""
50 -else
51 - SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz"
52 - KEYWORDS="~amd64 ~arm64 ~x86"
53 -fi
54 -
55 -DESCRIPTION="Ceph distributed filesystem"
56 -HOMEPAGE="https://ceph.com/"
57 -
58 -LICENSE="LGPL-2.1 CC-BY-SA-3.0 GPL-2 BSD Boost-1.0 MIT"
59 -SLOT="0"
60 -
61 -CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3)
62 -
63 -IUSE="babeltrace cephfs dpdk fuse grafana jemalloc kerberos ldap libressl"
64 -IUSE+=" lttng +mgr numa rabbitmq +radosgw +ssl static-libs +system-boost"
65 -IUSE+=" systemd +tcmalloc test xfs zfs"
66 -IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})"
67 -
68 -COMMON_DEPEND="
69 - virtual/libudev:=
70 - app-arch/bzip2:=[static-libs?]
71 - app-arch/lz4:=[static-libs?]
72 - app-arch/snappy:=[static-libs?]
73 - app-arch/zstd:=[static-libs?]
74 - app-misc/jq:=[static-libs?]
75 - dev-libs/crypto++:=[static-libs?]
76 - dev-libs/leveldb:=[snappy,static-libs?,tcmalloc?]
77 - dev-libs/libaio:=[static-libs?]
78 - dev-libs/libxml2:=[static-libs?]
79 - dev-libs/nss:=
80 - sys-auth/oath-toolkit:=
81 - sys-apps/keyutils:=[static-libs?]
82 - sys-apps/util-linux:=[static-libs?]
83 - sys-libs/ncurses:0=[static-libs?]
84 - sys-libs/zlib:=[static-libs?]
85 - babeltrace? ( dev-util/babeltrace )
86 - ldap? ( net-nds/openldap:=[static-libs?] )
87 - lttng? ( dev-util/lttng-ust:= )
88 - fuse? ( sys-fs/fuse:0=[static-libs?] )
89 - kerberos? ( virtual/krb5 )
90 - rabbitmq? ( net-libs/rabbitmq-c:=[static-libs?] )
91 - ssl? (
92 - !libressl? ( dev-libs/openssl:=[static-libs?] )
93 - libressl? ( dev-libs/libressl:=[static-libs?] )
94 - )
95 - xfs? ( sys-fs/xfsprogs:=[static-libs?] )
96 - zfs? ( sys-fs/zfs:=[static-libs?] )
97 - radosgw? (
98 - dev-libs/expat:=[static-libs?]
99 - !libressl? (
100 - dev-libs/openssl:=[static-libs?]
101 - net-misc/curl:=[curl_ssl_openssl,static-libs?]
102 - )
103 - libressl? (
104 - dev-libs/libressl:=[static-libs?]
105 - net-misc/curl:=[curl_ssl_libressl,static-libs?]
106 - )
107 - )
108 - system-boost? (
109 - ~dev-libs/boost-1.67:=[threads,context,python,static-libs?,${PYTHON_USEDEP}]
110 - )
111 - jemalloc? ( dev-libs/jemalloc:=[static-libs?] )
112 - !jemalloc? ( >=dev-util/google-perftools-2.4:=[static-libs?] )
113 - ${PYTHON_DEPS}
114 - "
115 -DEPEND="${COMMON_DEPEND}
116 - amd64? ( dev-lang/yasm )
117 - x86? ( dev-lang/yasm )
118 - dev-python/cython[${PYTHON_USEDEP}]
119 - dev-python/sphinx
120 - dev-util/cunit
121 - test? (
122 - dev-python/coverage[${PYTHON_USEDEP}]
123 - dev-python/virtualenv[${PYTHON_USEDEP}]
124 - sys-apps/grep[pcre]
125 - sys-fs/btrfs-progs
126 - )
127 - "
128 -BDEPEND=" app-arch/cpio
129 - >=dev-util/cmake-3.5.0
130 - dev-util/gperf
131 - dev-util/valgrind
132 - sys-apps/which
133 - sys-devel/bc
134 - virtual/pkgconfig
135 - "
136 -RDEPEND="${COMMON_DEPEND}
137 - net-misc/socat
138 - sys-apps/gptfdisk
139 - sys-block/parted
140 - sys-fs/cryptsetup
141 - sys-fs/lvm2[-device-mapper-only(-)]
142 - !<sys-apps/openrc-0.26.3
143 - dev-python/bcrypt[${PYTHON_USEDEP}]
144 - dev-python/cherrypy[${PYTHON_USEDEP}]
145 - dev-python/flask[${PYTHON_USEDEP}]
146 - dev-python/jinja[${PYTHON_USEDEP}]
147 - dev-python/pecan[${PYTHON_USEDEP}]
148 - dev-python/prettytable[${PYTHON_USEDEP}]
149 - dev-python/pyopenssl[${PYTHON_USEDEP}]
150 - dev-python/requests[${PYTHON_USEDEP}]
151 - dev-python/werkzeug[${PYTHON_USEDEP}]
152 - "
153 -REQUIRED_USE="
154 - ${PYTHON_REQUIRED_USE}
155 - || ( $(python_gen_useflags 'python3*') )
156 - ?? ( jemalloc tcmalloc )
157 - rabbitmq? ( radosgw )
158 - "
159 -
160 -# the tests need root access
161 -RESTRICT="test? ( userpriv )"
162 -
163 -# distribution tarball does not include everything needed for tests
164 -RESTRICT+=" test"
165 -
166 -# false positives unless all USE flags are on
167 -CMAKE_WARN_UNUSED_CLI="no"
168 -
169 -UNBUNDLE_LIBS=(
170 - src/erasure-code/jerasure/jerasure
171 - src/erasure-code/jerasure/gf-complete
172 -)
173 -
174 -PATCHES=(
175 - "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch"
176 - "${FILESDIR}/ceph-14.2.0-cflags.patch"
177 - "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch"
178 - "${FILESDIR}/ceph-13.2.0-cflags.patch"
179 - "${FILESDIR}/ceph-14.2.0-mgr-python-version.patch"
180 - "${FILESDIR}/ceph-14.2.0-no-virtualenvs.patch"
181 - "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch"
182 - "${FILESDIR}/ceph-14.2.0-dpdk-cflags.patch"
183 - "${FILESDIR}/ceph-14.2.0-link-crc32-statically.patch"
184 - "${FILESDIR}/ceph-14.2.0-cython-0.29.patch"
185 - "${FILESDIR}/ceph-14.2.1-ncurses-tinfo.patch"
186 -)
187 -
188 -# dpdk and ninja don't get along
189 -CMAKE_MAKEFILE_GENERATOR="emake"
190 -
191 -check-reqs_export_vars() {
192 - if use amd64; then
193 - CHECKREQS_DISK_BUILD="12G"
194 - CHECKREQS_DISK_USR="460M"
195 - else
196 - CHECKREQS_DISK_BUILD="1400M"
197 - CHECKREQS_DISK_USR="450M"
198 - fi
199 -
200 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
201 -}
202 -
203 -user_setup() {
204 - enewgroup ceph ${CEPH_GID}
205 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
206 -}
207 -
208 -pkg_pretend() {
209 - check-reqs_export_vars
210 - check-reqs_pkg_pretend
211 -}
212 -
213 -pkg_setup() {
214 - python_setup 'python3*'
215 - check-reqs_export_vars
216 - check-reqs_pkg_setup
217 - user_setup
218 -}
219 -
220 -src_prepare() {
221 - cmake-utils_src_prepare
222 -
223 - if use system-boost; then
224 - eapply "${FILESDIR}/ceph-14.2.0-boost-sonames.patch"
225 - fi
226 -
227 - sed -i -r "s:DESTINATION .+\\):DESTINATION $(get_bashcompdir)\\):" \
228 - src/bash_completion/CMakeLists.txt || die
229 -
230 - # remove tests that need root access
231 - rm src/test/cli/ceph-authtool/cap*.t || die
232 -
233 - #rm -rf "${UNBUNDLE_LIBS[@]}"
234 -}
235 -
236 -ceph_src_configure() {
237 - local flag
238 - local mycmakeargs=(
239 - -DWITH_BABELTRACE=$(usex babeltrace)
240 - -DWITH_CEPHFS=$(usex cephfs)
241 - -DWITH_DPDK=$(usex dpdk)
242 - -DWITH_FUSE=$(usex fuse)
243 - -DWITH_LTTNG=$(usex lttng)
244 - -DWITH_GSSAPI=$(usex kerberos)
245 - -DWITH_GRAFANA=$(usex grafana)
246 - -DWITH_MGR=$(usex mgr)
247 - -DWITH_MGR_DASHBOARD_FRONTEND=NO
248 - -DWITH_NUMA=$(usex numa)
249 - -DWITH_OPENLDAP=$(usex ldap)
250 - -DWITH_RADOSGW=$(usex radosgw)
251 - -DWITH_RADOSGW_AMQP_ENDPOINT=$(usex rabbitmq)
252 - -DWITH_SSL=$(usex ssl)
253 - -DWITH_SYSTEMD=$(usex systemd)
254 - -DWITH_TESTS=$(usex test)
255 - -DWITH_XFS=$(usex xfs)
256 - -DWITH_ZFS=$(usex zfs)
257 - -DENABLE_SHARED=$(usex static-libs '' 'ON' 'OFF')
258 - -DALLOCATOR=$(usex tcmalloc 'tcmalloc' "$(usex jemalloc 'jemalloc' 'libc')")
259 - -DWITH_SYSTEM_BOOST=$(usex system-boost)
260 - -DBOOST_J=$(makeopts_jobs)
261 - -DWITH_RDMA=no
262 - -DWITH_TBB=no
263 - -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir)
264 - -DEPYTHON_VERSION="${EPYTHON#python}"
265 - -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PN}"
266 - -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
267 - -Wno-dev
268 - )
269 - if use amd64 || use x86; then
270 - for flag in ${CPU_FLAGS_X86[@]}; do
271 - mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")")
272 - done
273 - fi
274 -
275 - rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt"
276 - cmake-utils_src_configure
277 -
278 - # bug #630232
279 - sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \
280 - "${BUILD_DIR:-${S}}"/include/acconfig.h \
281 - || die "sed failed"
282 -}
283 -
284 -src_configure() {
285 - ceph_src_configure
286 -}
287 -
288 -python_compile() {
289 - local CMAKE_USE_DIR="${S}"
290 - ceph_src_configure
291 -
292 - pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
293 - emake VERBOSE=1 clean
294 - emake VERBOSE=1 all
295 -
296 - # python modules are only compiled with "make install" so we need to do this to
297 - # prevent doing a bunch of compilation in src_install
298 - DESTDIR="${T}" emake VERBOSE=1 install
299 - popd >/dev/null || die
300 -}
301 -
302 -src_compile() {
303 - cmake-utils_src_make VERBOSE=1 all
304 -
305 - # we have to do this here to prevent from building everything multiple times
306 - python_copy_sources
307 - python_foreach_impl python_compile
308 -}
309 -
310 -src_test() {
311 - make check || die "make check failed"
312 -}
313 -
314 -python_install() {
315 - local CMAKE_USE_DIR="${S}"
316 - pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
317 - DESTDIR="${ED}" emake install
318 - popd >/dev/null || die
319 -}
320 -
321 -src_install() {
322 - cmake-utils_src_install
323 - python_foreach_impl python_install
324 -
325 - find "${ED}" -name '*.la' -type f -delete || die
326 -
327 - exeinto /usr/$(get_libdir)/ceph
328 - newexe "${BUILD_DIR}/bin/init-ceph" init-ceph
329 -
330 - insinto /etc/logrotate.d/
331 - newins "${FILESDIR}"/ceph.logrotate-r2 ${PN}
332 -
333 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
334 -
335 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
336 -
337 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
338 - newinitd "${FILESDIR}/${PN}.initd-r11" ${PN}
339 - newconfd "${FILESDIR}/${PN}.confd-r5" ${PN}
340 -
341 - insinto /etc/sysctl.d
342 - newins "${FILESDIR}"/sysctld 90-${PN}.conf
343 -
344 - use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc
345 -
346 - # units aren't installed by the build system unless systemd is enabled
347 - # so no point installing these with the USE flag disabled
348 - if use systemd; then
349 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \
350 - "ceph-mds@.service"
351 -
352 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \
353 - "ceph-osd@.service"
354 - fi
355 -
356 - udev_dorules udev/*.rules
357 -
358 - readme.gentoo_create_doc
359 -
360 - python_setup 'python3*'
361 -
362 - # bug #630232
363 - sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph \
364 - || die "sed failed"
365 -
366 - python_fix_shebang "${ED}"/usr/{,s}bin/
367 -
368 - # python_fix_shebang apparently is not idempotent
369 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
370 - "${ED}"/usr/sbin/{mount.*,ceph-volume{,-systemd}} || die "sed failed"
371 -
372 - local -a rados_classes=( "${D}/usr/$(get_libdir)/rados-classes"/* )
373 - dostrip -x "${rados_classes[@]#${D}}"
374 -}
375 -
376 -pkg_postinst() {
377 - readme.gentoo_print_elog
378 -}