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:07
Message-Id: 1533080933.9add05dcdc5f7349d17aa15be31efef434a7cfeb.chutzpah@gentoo
1 commit: 9add05dcdc5f7349d17aa15be31efef434a7cfeb
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 23:48:53 2018 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 23:48:53 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9add05dc
7
8 sys-cluster/ceph: Remove old version 10.2.7-r1
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.7-r1.ebuild | 292 ---------------------------------
14 2 files changed, 293 deletions(-)
15
16 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
17 index ab120b5cbe2..517df2e739b 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.7.tar.gz 14518491 BLAKE2B c81fb852680fa24dd30224d276dde3ceb9a5c94def36159abdc9dba6fc0840e34d6d0603f11252f470b56b928a1ca126f34a368119d52a12188b06355bf9048a SHA512 7e0686e9efa4ddd9d548f4145b448f8232f1ca29b08428daa5cd60a74ce26f1176a1f2ebbf2ac1761d9e6c1d364a5ffa194d2b3a18a8111f59b7c27f7a1d7734
24 DIST ceph-10.2.9.tar.gz 14550219 BLAKE2B 5ec20b88badefc6ed793c2538ffd9436e4b23877aa9d5ac7348a9d7b353e3c6c759677f6b77635c4f2017cccfbd93636d0e3bda6a1d793f6881b52aa3f3b2758 SHA512 1d59146614aa87ca551b05b795a684071a3cfb4ce6013e978ba650403c6732b2aa13f3c3cc191e6a1ea34b4631c82e97700593c24e200c41ec2f2b43b3ef5547
25 DIST ceph-12.2.1.tar.gz 148738778 BLAKE2B df4bea1ad552ab2361174c1e2f285f42b4a07ad23daf4eb9baa9e21e5513f6508b141f7b819f75918d2c55e4b812ba9985b9414496e7c1eaf28c68f9a101c3f5 SHA512 ec2623c1f6ab563c6fd0bb5fd046c78528fdbedca7cde347c92a9b15005d2ab2b1a46d7294e93f56933386462f1066750285109aafb6bf94f7d5bcdb7214d8a8
26 DIST ceph-12.2.2.tar.gz 148763718 BLAKE2B 5c9a56bc536b723ca3a6a0aa68c7f456032c892716167dfa213cda4964e3a45e970efe6dd67e5c43ef6f6018bd9367e0c890de270acccf3217b848b58cb98488 SHA512 89b166dc4b58e0110ebe0147eef9f47e1090ccee01702b3f72cfbdca856d02bf03b2663de9e88c84b21a2a61f8f92211e217a05b8bdcf7d5de3158adbe49db88
27
28 diff --git a/sys-cluster/ceph/ceph-10.2.7-r1.ebuild b/sys-cluster/ceph/ceph-10.2.7-r1.ebuild
29 deleted file mode 100644
30 index e77e546d7b3..00000000000
31 --- a/sys-cluster/ceph/ceph-10.2.7-r1.ebuild
32 +++ /dev/null
33 @@ -1,292 +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
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 )
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 - dev-python/flask[${PYTHON_USEDEP}]
117 - dev-python/requests[${PYTHON_USEDEP}]
118 - "
119 -REQUIRED_USE="
120 - $(python_gen_useflags 'python2*')
121 - ${PYTHON_REQUIRED_USE}
122 - ^^ ( nss cryptopp )
123 - ?? ( jemalloc tcmalloc )
124 - "
125 -
126 -# work around bug in ceph compilation (rgw/ceph_dencoder-rgw_dencoder.o... undefined reference to `vtable for RGWZoneGroup')
127 -REQUIRED_USE+=" radosgw"
128 -
129 -#RESTRICT="test? ( userpriv )"
130 -
131 -# distribution tarball does not include everything needed for tests
132 -RESTRICT+=" test"
133 -
134 -STRIP_MASK="/usr/lib*/rados-classes/*"
135 -
136 -UNBUNDLE_LIBS=(
137 - src/erasure-code/jerasure/jerasure
138 - src/erasure-code/jerasure/gf-complete
139 -)
140 -
141 -PATCHES=(
142 - "${FILESDIR}/ceph-10.2.0-dont-use-virtualenvs.patch"
143 - #"${FILESDIR}/ceph-10.2.1-unbundle-jerasure.patch"
144 - "${FILESDIR}/${PN}-10.2.1-libzfs.patch"
145 - "${FILESDIR}/${PN}-10.2.3-build-without-openldap.patch"
146 - "${FILESDIR}/${PN}-10.2.5-Make-RBD-Python-bindings-compatible-with-Python-3.patch"
147 - "${FILESDIR}/${PN}-10.2.5-Make-CephFS-bindings-and-tests-compatible-with-Python-3.patch"
148 - "${FILESDIR}/${PN}-10.2.7-fix-compilation-with-zstd.patch"
149 -)
150 -
151 -check-reqs_export_vars() {
152 - if use debug; then
153 - CHECKREQS_DISK_BUILD="23G"
154 - CHECKREQS_DISK_USR="7G"
155 - elif use amd64; then
156 - CHECKREQS_DISK_BUILD="12G"
157 - CHECKREQS_DISK_USR="450M"
158 - else
159 - CHECKREQS_DISK_BUILD="1400M"
160 - CHECKREQS_DISK_USR="450M"
161 - fi
162 -
163 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
164 -}
165 -
166 -user_setup() {
167 - enewgroup ceph ${CEPH_GID}
168 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
169 -}
170 -
171 -emake_python_bindings() {
172 - local action="${1}" params binding module
173 - shift
174 - params=("${@}")
175 -
176 - __emake_python_bindings_do_impl() {
177 - ceph_run_econf "${EPYTHON}"
178 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
179 -
180 - # these don't work and aren't needed on python3
181 - if [[ ${EBUILD_PHASE} == install ]]; then
182 - for module in "${S}"/src/pybind/*.py; do
183 - module_basename="$(basename "${module}")"
184 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
185 - continue
186 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
187 - python_domodule ${module}
188 - fi
189 - done
190 - fi
191 - }
192 -
193 - pushd "${S}/src"
194 - for binding in rados rbd $(use cephfs && echo cephfs); do
195 - python_foreach_impl __emake_python_bindings_do_impl
196 - done
197 - popd
198 -
199 - unset __emake_python_bindings_do_impl
200 -}
201 -
202 -pkg_pretend() {
203 - check-reqs_export_vars
204 - check-reqs_pkg_pretend
205 -}
206 -
207 -pkg_setup() {
208 - python_setup
209 - check-reqs_export_vars
210 - check-reqs_pkg_setup
211 - user_setup
212 -}
213 -
214 -src_prepare() {
215 - default
216 -
217 - # remove tests that need root access
218 - rm src/test/cli/ceph-authtool/cap*.t
219 -
220 - #rm -rf "${UNBUNDLE_LIBS[@]}"
221 -
222 - append-flags -fPIC
223 - eautoreconf
224 -}
225 -
226 -src_configure() {
227 - ECONFARGS=(
228 - --without-hadoop
229 - --includedir=/usr/include
230 - $(use_with cephfs)
231 - $(use_with debug)
232 - $(use_with fuse)
233 - $(use_with libaio)
234 - $(use_with libatomic libatomic-ops)
235 - $(use_with nss)
236 - $(use_with cryptopp)
237 - $(use_with radosgw)
238 - $(use_with gtk gtk2)
239 - $(use_enable static-libs static)
240 - $(use_with jemalloc)
241 - $(use_with xfs libxfs)
242 - $(use_with zfs libzfs)
243 - $(use_with lttng )
244 - $(use_with babeltrace)
245 - $(use_with ldap openldap)
246 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
247 - --with-mon
248 - --with-eventfd
249 - --with-cython
250 - --without-kinetic
251 - --without-librocksdb
252 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
253 - )
254 -
255 - # we can only use python2.7 for building at the moment
256 - ceph_run_econf "python2*"
257 -}
258 -
259 -ceph_run_econf() {
260 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
261 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
262 -
263 - pushd "${S}" >/dev/null || die
264 - #
265 - # This generates a QA warning about running econf in src_compile
266 - # and src_install. Unfortunately the only other way to do this would
267 - # involve building all of for each python implementation times, which
268 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
269 - # be needed with >=ceph-11.2.
270 - #
271 - python_setup "${1}"
272 - econf "${ECONFARGS[@]}"
273 -
274 - popd >/dev/null || die
275 -}
276 -
277 -src_compile() {
278 - emake
279 - emake_python_bindings all
280 -
281 - use test && emake check-local
282 -}
283 -
284 -src_test() {
285 - make check || die "make check failed"
286 -}
287 -
288 -src_install() {
289 - default
290 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
291 -
292 - prune_libtool_files --all
293 -
294 - exeinto /usr/$(get_libdir)/ceph
295 - newexe src/init-ceph ceph_init.sh
296 -
297 - insinto /etc/logrotate.d/
298 - newins "${FILESDIR}"/ceph.logrotate ${PN}
299 -
300 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
301 -
302 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
303 -
304 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
305 - newinitd "${FILESDIR}/${PN}.initd-r4" ${PN}
306 - newconfd "${FILESDIR}/${PN}.confd-r2" ${PN}
307 -
308 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
309 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
310 -
311 - udev_dorules udev/*.rules
312 -
313 - readme.gentoo_create_doc
314 -
315 - python_setup 'python2*'
316 - python_fix_shebang "${ED}"/usr/{,s}bin/
317 -
318 - # python_fix_shebang apparently is not idempotent
319 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
320 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
321 -}
322 -
323 -pkg_postinst() {
324 - readme.gentoo_print_elog
325 -}