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, 31 Jul 2018 23:54:09
Message-Id: 1533081053.4fa35b879237e7bf6a643453df6bfbd9480d7e16.chutzpah@gentoo
1 commit: 4fa35b879237e7bf6a643453df6bfbd9480d7e16
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 23:50:53 2018 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 23:50:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fa35b87
7
8 sys-cluster/ceph: Remove old version 10.2.9-r3
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 sys-cluster/ceph/Manifest | 1 -
13 sys-cluster/ceph/ceph-10.2.9-r3.ebuild | 313 ---------------------------------
14 2 files changed, 314 deletions(-)
15
16 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
17 index 517df2e739b..79a3f0487bd 100644
18 --- a/sys-cluster/ceph/Manifest
19 +++ b/sys-cluster/ceph/Manifest
20 @@ -1,6 +1,5 @@
21 DIST ceph-10.2.10.tar.gz 14573701 BLAKE2B 78c68deb8537cae8394b4d35569983431e938eff42b01f448dea68016b33ca5770c83d1e1d382bfd6c8164d5259e821779c6515f8c8fb4d5d52ee90b7df43180 SHA512 883d1b8340aaefc7a1eee4bbfb5b1d1cc15bffed8f35fb1e8fb86b1208a4d0d16753eb6c688ea0e661c4877d3d148b2b6c2b41620c4e8a61e47c69f46f98e537
22 DIST ceph-10.2.3.tar.gz 11596171 BLAKE2B c24c879649f0d42f58cfb1d03701797bc685d83c157031156d13308c731412a4a0149b658193722b358ebf0c4f9760d9664668cd797b69d207e81dc572f49700 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19
23 -DIST ceph-10.2.9.tar.gz 14550219 BLAKE2B 5ec20b88badefc6ed793c2538ffd9436e4b23877aa9d5ac7348a9d7b353e3c6c759677f6b77635c4f2017cccfbd93636d0e3bda6a1d793f6881b52aa3f3b2758 SHA512 1d59146614aa87ca551b05b795a684071a3cfb4ce6013e978ba650403c6732b2aa13f3c3cc191e6a1ea34b4631c82e97700593c24e200c41ec2f2b43b3ef5547
24 DIST ceph-12.2.1.tar.gz 148738778 BLAKE2B df4bea1ad552ab2361174c1e2f285f42b4a07ad23daf4eb9baa9e21e5513f6508b141f7b819f75918d2c55e4b812ba9985b9414496e7c1eaf28c68f9a101c3f5 SHA512 ec2623c1f6ab563c6fd0bb5fd046c78528fdbedca7cde347c92a9b15005d2ab2b1a46d7294e93f56933386462f1066750285109aafb6bf94f7d5bcdb7214d8a8
25 DIST ceph-12.2.2.tar.gz 148763718 BLAKE2B 5c9a56bc536b723ca3a6a0aa68c7f456032c892716167dfa213cda4964e3a45e970efe6dd67e5c43ef6f6018bd9367e0c890de270acccf3217b848b58cb98488 SHA512 89b166dc4b58e0110ebe0147eef9f47e1090ccee01702b3f72cfbdca856d02bf03b2663de9e88c84b21a2a61f8f92211e217a05b8bdcf7d5de3158adbe49db88
26 DIST ceph-12.2.4.tar.gz 78694838 BLAKE2B 862c275eb5e42065b2f42d417f8efd2ee8ee67c19575eb19bc799d5923d0720fa4810e1c51915fee6f96a44d433059ca6b180861013b735287751ad24235e611 SHA512 ce9ec49e8693d11345adb3a219763cc76b626db2c26d8d9ba08ff0a4d6fdeb08739da29bb87ff0946fed8e6fd55c8db0672cb286f7ebb90cf2e11a47042ba5d6
27
28 diff --git a/sys-cluster/ceph/ceph-10.2.9-r3.ebuild b/sys-cluster/ceph/ceph-10.2.9-r3.ebuild
29 deleted file mode 100644
30 index 73d8983868d..00000000000
31 --- a/sys-cluster/ceph/ceph-10.2.9-r3.ebuild
32 +++ /dev/null
33 @@ -1,313 +0,0 @@
34 -# Copyright 1999-2017 Gentoo Foundation
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=6
38 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
39 -
40 -inherit check-reqs autotools eutils python-r1 udev user \
41 - readme.gentoo-r1 systemd versionator flag-o-matic toolchain-funcs
42 -
43 -if [[ ${PV} == *9999* ]]; then
44 - inherit git-r3
45 - EGIT_REPO_URI="https://github.com/ceph/ceph.git"
46 - SRC_URI=""
47 -else
48 - SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz"
49 - KEYWORDS="~amd64 ~arm64 ~x86"
50 -fi
51 -
52 -DESCRIPTION="Ceph distributed filesystem"
53 -HOMEPAGE="https://ceph.com/"
54 -
55 -LICENSE="LGPL-2.1"
56 -SLOT="0"
57 -
58 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
59 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
60 -
61 -# unbundling code commented out pending bugs 584056 and 584058
62 -#>=dev-libs/jerasure-2.0.0-r1
63 -#>=dev-libs/gf-complete-2.0.0
64 -COMMON_DEPEND="
65 - app-arch/snappy:=
66 - sys-libs/zlib:=
67 - app-arch/lz4:=
68 - app-arch/bzip2:=
69 - app-arch/zstd:=
70 - dev-libs/boost:=[threads]
71 - dev-libs/libaio:=
72 - dev-libs/leveldb:=[snappy]
73 - nss? ( dev-libs/nss:= )
74 - libatomic? ( dev-libs/libatomic_ops:= )
75 - cryptopp? ( dev-libs/crypto++:= )
76 - sys-apps/keyutils
77 - sys-apps/util-linux
78 - dev-libs/libxml2:=
79 - radosgw? ( dev-libs/fcgi:= )
80 - ldap? ( net-nds/openldap:= )
81 - babeltrace? ( dev-util/babeltrace )
82 - fuse? ( sys-fs/fuse:0= )
83 - xfs? ( sys-fs/xfsprogs:= )
84 - zfs? ( sys-fs/zfs:= )
85 - gtk? (
86 - x11-libs/gtk+:2=
87 - dev-cpp/gtkmm:2.4
88 - gnome-base/librsvg:=
89 - )
90 - radosgw? (
91 - dev-libs/fcgi:=
92 - dev-libs/expat:=
93 - net-misc/curl:=
94 - )
95 - jemalloc? ( dev-libs/jemalloc:= )
96 - !jemalloc? ( =dev-util/google-perftools-2.4*:= )
97 - lttng? ( dev-util/lttng-ust:= )
98 - ${PYTHON_DEPS}
99 - "
100 -DEPEND="${COMMON_DEPEND}
101 - dev-python/cython[${PYTHON_USEDEP}]
102 - app-arch/cpio
103 - virtual/pkgconfig
104 - dev-python/sphinx
105 - test? (
106 - sys-fs/btrfs-progs
107 - sys-apps/grep[pcre]
108 - dev-python/tox[${PYTHON_USEDEP}]
109 - dev-python/virtualenv[${PYTHON_USEDEP}]
110 - )"
111 -RDEPEND="${COMMON_DEPEND}
112 - sys-apps/hdparm
113 - sys-block/parted
114 - sys-fs/cryptsetup
115 - sys-apps/gptfdisk
116 - !<sys-apps/openrc-0.26.3
117 - dev-python/flask[${PYTHON_USEDEP}]
118 - dev-python/requests[${PYTHON_USEDEP}]
119 - "
120 -REQUIRED_USE="
121 - $(python_gen_useflags 'python2*')
122 - ${PYTHON_REQUIRED_USE}
123 - ^^ ( nss cryptopp )
124 - ?? ( jemalloc tcmalloc )
125 - "
126 -
127 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
128 -REQUIRED_USE+=" radosgw"
129 -
130 -#RESTRICT="test? ( userpriv )"
131 -
132 -# distribution tarball does not include everything needed for tests
133 -RESTRICT+=" test"
134 -
135 -STRIP_MASK="/usr/lib*/rados-classes/*"
136 -
137 -UNBUNDLE_LIBS=(
138 - src/erasure-code/jerasure/jerasure
139 - src/erasure-code/jerasure/gf-complete
140 -)
141 -
142 -PATCHES=(
143 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
144 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
145 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
146 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
147 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
148 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
149 - "${FILESDIR}/${PN}-10.2.7-fix-compilation-with-zstd.patch"
150 - "${FILESDIR}/${PN}-10.2.9-cflags.patch"
151 - "${FILESDIR}/${PN}-10.2.9-dont-run-lsb_release.patch"
152 - # pull in some bugfixes from upstream
153 - "${FILESDIR}/${PN}-10.2.9-libradosstriper_fix_format_injection_vulnerability.patch"
154 - "${FILESDIR}/${PN}-10.2.9-rbd-nbd_relax_size_check_for_newer_kernel_versions.patch"
155 - "${FILESDIR}/${PN}-10.2.9-filestore_fix_infinit_loops_in_fiemap.patch"
156 - "${FILESDIR}/${PN}-10.2.9-librbd_filter_expected_error_codes_from_is_exclusive_lock_owner.patch"
157 - "${FILESDIR}/${PN}-10.2.9-osd-scrub_to_specifies_clone_ver_but_transaction_include.patch"
158 - "${FILESDIR}/${PN}-10.2.9-rbd-do_not_attempt_to_load_key_if_auth_is_disabled.patch"
159 - "${FILESDIR}/${PN}-10.2.9-unlock_sdata_op_ordering_lock_with_sdata_lock.patch"
160 -)
161 -
162 -check-reqs_export_vars() {
163 - if use debug; then
164 - CHECKREQS_DISK_BUILD="23G"
165 - CHECKREQS_DISK_USR="7G"
166 - elif use amd64; then
167 - CHECKREQS_DISK_BUILD="12G"
168 - CHECKREQS_DISK_USR="450M"
169 - else
170 - CHECKREQS_DISK_BUILD="1400M"
171 - CHECKREQS_DISK_USR="450M"
172 - fi
173 -
174 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
175 -}
176 -
177 -user_setup() {
178 - enewgroup ceph ${CEPH_GID}
179 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
180 -}
181 -
182 -emake_python_bindings() {
183 - local action="${1}" params binding module
184 - shift
185 - params=("${@}")
186 -
187 - __emake_python_bindings_do_impl() {
188 - ceph_run_econf "${EPYTHON}"
189 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
190 -
191 - # these don't work and aren't needed on python3
192 - if [[ ${EBUILD_PHASE} == install ]]; then
193 - for module in "${S}"/src/pybind/*.py; do
194 - module_basename="$(basename "${module}")"
195 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
196 - continue
197 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
198 - python_domodule ${module}
199 - fi
200 - done
201 - fi
202 - }
203 -
204 - pushd "${S}/src"
205 - for binding in rados rbd $(use cephfs && echo cephfs); do
206 - python_foreach_impl __emake_python_bindings_do_impl
207 - done
208 - popd
209 -
210 - unset __emake_python_bindings_do_impl
211 -}
212 -
213 -pkg_pretend() {
214 - check-reqs_export_vars
215 - check-reqs_pkg_pretend
216 -}
217 -
218 -pkg_setup() {
219 - python_setup
220 - check-reqs_export_vars
221 - check-reqs_pkg_setup
222 - user_setup
223 -}
224 -
225 -src_prepare() {
226 - default
227 -
228 - # remove tests that need root access
229 - rm src/test/cli/ceph-authtool/cap*.t
230 -
231 - #rm -rf "${UNBUNDLE_LIBS[@]}"
232 -
233 - append-flags -fPIC
234 -
235 - if tc-is-gcc && [[ $(gcc-fullversion) == "7.2.0" ]] && is-flag "-g*"; then
236 - ewarn "Filtering out -g* flags since gcc-7.2 tends to ICE with them and ceph"
237 - filter-flags "-g*"
238 - fi
239 - eautoreconf
240 -}
241 -
242 -src_configure() {
243 - ECONFARGS=(
244 - --without-hadoop
245 - --includedir=/usr/include
246 - $(use_with cephfs)
247 - $(use_with debug)
248 - $(use_with fuse)
249 - $(use_with libaio)
250 - $(use_with libatomic libatomic-ops)
251 - $(use_with nss)
252 - $(use_with cryptopp)
253 - $(use_with radosgw)
254 - $(use_with gtk gtk2)
255 - $(use_enable static-libs static)
256 - $(use_with jemalloc)
257 - $(use_with xfs libxfs)
258 - $(use_with zfs libzfs)
259 - $(use_with lttng )
260 - $(use_with babeltrace)
261 - $(use_with ldap openldap)
262 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
263 - --with-mon
264 - --with-eventfd
265 - --with-cython
266 - --without-kinetic
267 - --without-librocksdb
268 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
269 - )
270 -
271 - # we can only use python2.7 for building at the moment
272 - ceph_run_econf "python2*"
273 -}
274 -
275 -ceph_run_econf() {
276 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
277 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
278 -
279 - pushd "${S}" >/dev/null || die
280 - #
281 - # This generates a QA warning about running econf in src_compile
282 - # and src_install. Unfortunately the only other way to do this would
283 - # involve building all of for each python implementation times, which
284 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
285 - # be needed with >=ceph-11.2.
286 - #
287 - python_setup "${1}"
288 - econf "${ECONFARGS[@]}"
289 -
290 - popd >/dev/null || die
291 -}
292 -
293 -src_compile() {
294 - emake
295 - emake_python_bindings all
296 -
297 - use test && emake check-local
298 -}
299 -
300 -src_test() {
301 - make check || die "make check failed"
302 -}
303 -
304 -src_install() {
305 - default
306 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
307 -
308 - prune_libtool_files --all
309 -
310 - exeinto /usr/$(get_libdir)/ceph
311 - newexe src/init-ceph ceph_init.sh
312 -
313 - insinto /etc/logrotate.d/
314 - newins "${FILESDIR}"/ceph.logrotate ${PN}
315 -
316 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
317 -
318 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
319 -
320 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
321 - newinitd "${FILESDIR}/${PN}.initd-r5" ${PN}
322 - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
323 -
324 - insinto /etc/sysctl.d
325 - newins "${FILESDIR}"/sysctld 90-${PN}.conf
326 -
327 - use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc
328 -
329 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
330 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
331 -
332 - udev_dorules udev/*.rules
333 -
334 - readme.gentoo_create_doc
335 -
336 - python_setup 'python2*'
337 - python_fix_shebang "${ED}"/usr/{,s}bin/
338 -
339 - # python_fix_shebang apparently is not idempotent
340 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
341 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
342 -}
343 -
344 -pkg_postinst() {
345 - readme.gentoo_print_elog
346 -}