Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/
Date: Sun, 14 Oct 2018 10:19:10
Message-Id: 1539512290.70d8e0c835c40e54b8639257b309c1b6f2a82130.pacho@gentoo
1 commit: 70d8e0c835c40e54b8639257b309c1b6f2a82130
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 09:46:08 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 10:18:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d8e0c8
7
8 sys-cluster/ceph: Drop old version requiring old gperftools
9
10 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sys-cluster/ceph/Manifest | 1 -
14 sys-cluster/ceph/ceph-10.2.10-r2.ebuild | 306 --------------------------------
15 2 files changed, 307 deletions(-)
16
17 diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest
18 index 72923438896..933658c3ff4 100644
19 --- a/sys-cluster/ceph/Manifest
20 +++ b/sys-cluster/ceph/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST ceph-10.2.10.tar.gz 14573701 BLAKE2B 78c68deb8537cae8394b4d35569983431e938eff42b01f448dea68016b33ca5770c83d1e1d382bfd6c8164d5259e821779c6515f8c8fb4d5d52ee90b7df43180 SHA512 883d1b8340aaefc7a1eee4bbfb5b1d1cc15bffed8f35fb1e8fb86b1208a4d0d16753eb6c688ea0e661c4877d3d148b2b6c2b41620c4e8a61e47c69f46f98e537
23 DIST ceph-10.2.3.tar.gz 11596171 BLAKE2B c24c879649f0d42f58cfb1d03701797bc685d83c157031156d13308c731412a4a0149b658193722b358ebf0c4f9760d9664668cd797b69d207e81dc572f49700 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19
24 DIST ceph-12.2.7.tar.gz 78783279 BLAKE2B 9058a5e408b3431cf0e8c28b44f95f6eb12f029697348eb6879efa9db4ad6a3b52b1040f484919a3f1781ac3a4aa72af3b8905760480fd3f3724dbceeab4eb07 SHA512 dde75a41c31cca54d4a680b0b93e28680a23f912a348cccca65e55e600c315bbfe3ced008d758fe8ba1e801a9d6e5f8079cc157ec5eef8916b86f487f42064ea
25 DIST ceph-12.2.8.tar.gz 77243685 BLAKE2B 37c34396a0c276b8d79735e14934ac70da024822c2a060061531c234e03e5d41aad6c41dc64b05c2ce47f03287d0cae9ef9bed67e4a0861b6380c8ce1de4ea69 SHA512 91c5c11aaeef701b3e31c9f8a1192b6b79fd34f3b96c61595c65173c98bfce0009c5b7c9b29764f5e4d4b1f5ac2ca7109fed5ae598c176aba717a34a132fabac
26
27 diff --git a/sys-cluster/ceph/ceph-10.2.10-r2.ebuild b/sys-cluster/ceph/ceph-10.2.10-r2.ebuild
28 deleted file mode 100644
29 index bf6eaeec4b6..00000000000
30 --- a/sys-cluster/ceph/ceph-10.2.10-r2.ebuild
31 +++ /dev/null
32 @@ -1,306 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
38 -
39 -inherit check-reqs autotools eutils python-r1 udev user \
40 - readme.gentoo-r1 systemd versionator flag-o-matic toolchain-funcs
41 -
42 -if [[ ${PV} == *9999* ]]; then
43 - inherit git-r3
44 - EGIT_REPO_URI="https://github.com/ceph/ceph.git"
45 - SRC_URI=""
46 -else
47 - SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz"
48 - KEYWORDS="~amd64 ~arm64 ~x86"
49 -fi
50 -
51 -DESCRIPTION="Ceph distributed filesystem"
52 -HOMEPAGE="https://ceph.com/"
53 -
54 -LICENSE="LGPL-2.1"
55 -SLOT="0"
56 -
57 -IUSE="babeltrace cephfs cryptopp debug fuse gtk jemalloc ldap +libaio"
58 -IUSE+=" libatomic lttng +nss +radosgw static-libs +tcmalloc test xfs zfs"
59 -
60 -# unbundling code commented out pending bugs 584056 and 584058
61 -#>=dev-libs/jerasure-2.0.0-r1
62 -#>=dev-libs/gf-complete-2.0.0
63 -COMMON_DEPEND="
64 - app-arch/snappy:=
65 - sys-libs/zlib:=
66 - app-arch/lz4:=
67 - app-arch/bzip2:=
68 - app-arch/zstd:=
69 - dev-libs/boost:=[threads]
70 - dev-libs/libaio:=
71 - dev-libs/leveldb:=[snappy]
72 - nss? ( dev-libs/nss:= )
73 - libatomic? ( dev-libs/libatomic_ops:= )
74 - cryptopp? ( dev-libs/crypto++:= )
75 - sys-apps/keyutils
76 - sys-apps/util-linux
77 - dev-libs/libxml2:=
78 - radosgw? ( dev-libs/fcgi:= )
79 - ldap? ( net-nds/openldap:= )
80 - babeltrace? ( dev-util/babeltrace )
81 - fuse? ( sys-fs/fuse:0= )
82 - xfs? ( sys-fs/xfsprogs:= )
83 - zfs? ( sys-fs/zfs:= )
84 - gtk? (
85 - x11-libs/gtk+:2=
86 - dev-cpp/gtkmm:2.4
87 - gnome-base/librsvg:=
88 - )
89 - radosgw? (
90 - dev-libs/fcgi:=
91 - dev-libs/expat:=
92 - net-misc/curl:=
93 - )
94 - jemalloc? ( dev-libs/jemalloc:= )
95 - !jemalloc? ( =dev-util/google-perftools-2.4*:= )
96 - lttng? ( dev-util/lttng-ust:= )
97 - ${PYTHON_DEPS}
98 - "
99 -DEPEND="${COMMON_DEPEND}
100 - dev-python/cython[${PYTHON_USEDEP}]
101 - app-arch/cpio
102 - dev-lang/yasm
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 -)
153 -
154 -check-reqs_export_vars() {
155 - if use debug; then
156 - CHECKREQS_DISK_BUILD="23G"
157 - CHECKREQS_DISK_USR="7G"
158 - elif use amd64; then
159 - CHECKREQS_DISK_BUILD="12G"
160 - CHECKREQS_DISK_USR="450M"
161 - else
162 - CHECKREQS_DISK_BUILD="1400M"
163 - CHECKREQS_DISK_USR="450M"
164 - fi
165 -
166 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
167 -}
168 -
169 -user_setup() {
170 - enewgroup ceph ${CEPH_GID}
171 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
172 -}
173 -
174 -emake_python_bindings() {
175 - local action="${1}" params binding module
176 - shift
177 - params=("${@}")
178 -
179 - __emake_python_bindings_do_impl() {
180 - ceph_run_econf "${EPYTHON}"
181 - emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
182 -
183 - # these don't work and aren't needed on python3
184 - if [[ ${EBUILD_PHASE} == install ]]; then
185 - for module in "${S}"/src/pybind/*.py; do
186 - module_basename="$(basename "${module}")"
187 - if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
188 - continue
189 - elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
190 - python_domodule ${module}
191 - fi
192 - done
193 - fi
194 - }
195 -
196 - pushd "${S}/src"
197 - for binding in rados rbd $(use cephfs && echo cephfs); do
198 - python_foreach_impl __emake_python_bindings_do_impl
199 - done
200 - popd
201 -
202 - unset __emake_python_bindings_do_impl
203 -}
204 -
205 -pkg_pretend() {
206 - check-reqs_export_vars
207 - check-reqs_pkg_pretend
208 -}
209 -
210 -pkg_setup() {
211 - python_setup
212 - check-reqs_export_vars
213 - check-reqs_pkg_setup
214 - user_setup
215 -}
216 -
217 -src_prepare() {
218 - default
219 -
220 - # remove tests that need root access
221 - rm src/test/cli/ceph-authtool/cap*.t
222 -
223 - #rm -rf "${UNBUNDLE_LIBS[@]}"
224 -
225 - append-flags -fPIC
226 -
227 - if tc-is-gcc && [[ $(gcc-fullversion) == "7.2.0" ]] && is-flag "-g*"; then
228 - ewarn "Filtering out -g* flags since gcc-7.2 tends to ICE with them and ceph"
229 - filter-flags "-g*"
230 - fi
231 - eautoreconf
232 -}
233 -
234 -src_configure() {
235 - ECONFARGS=(
236 - --without-hadoop
237 - --includedir=/usr/include
238 - $(use_with cephfs)
239 - $(use_with debug)
240 - $(use_with fuse)
241 - $(use_with libaio)
242 - $(use_with libatomic libatomic-ops)
243 - $(use_with nss)
244 - $(use_with cryptopp)
245 - $(use_with radosgw)
246 - $(use_with gtk gtk2)
247 - $(use_enable static-libs static)
248 - $(use_with jemalloc)
249 - $(use_with xfs libxfs)
250 - $(use_with zfs libzfs)
251 - $(use_with lttng )
252 - $(use_with babeltrace)
253 - $(use_with ldap openldap)
254 - $(use jemalloc || usex tcmalloc " --with-tcmalloc" " --with-tcmalloc-minimal")
255 - --with-mon
256 - --with-eventfd
257 - --with-cython
258 - --without-kinetic
259 - --without-librocksdb
260 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
261 - )
262 -
263 - # we can only use python2.7 for building at the moment
264 - ceph_run_econf "python2*"
265 -}
266 -
267 -ceph_run_econf() {
268 - [[ -z ${ECONFARGS} ]] && die "called ${FUNCNAME[0]} with ECONFARGS unset"
269 - [[ -z ${1} ]] && die "called ${FUNCNAME[0]} without passing python implementation"
270 -
271 - pushd "${S}" >/dev/null || die
272 - #
273 - # This generates a QA warning about running econf in src_compile
274 - # and src_install. Unfortunately the only other way to do this would
275 - # involve building all of for each python implementation times, which
276 - # wastes a _lot_ of CPU time and disk space. This hack will no longer
277 - # be needed with >=ceph-11.2.
278 - #
279 - python_setup "${1}"
280 - econf "${ECONFARGS[@]}"
281 -
282 - popd >/dev/null || die
283 -}
284 -
285 -src_compile() {
286 - emake
287 - emake_python_bindings all
288 -
289 - use test && emake check-local
290 -}
291 -
292 -src_test() {
293 - make check || die "make check failed"
294 -}
295 -
296 -src_install() {
297 - default
298 - emake_python_bindings install-exec "DESTDIR=\"${D}\""
299 -
300 - prune_libtool_files --all
301 -
302 - exeinto /usr/$(get_libdir)/ceph
303 - newexe src/init-ceph ceph_init.sh
304 -
305 - insinto /etc/logrotate.d/
306 - newins "${FILESDIR}"/ceph.logrotate ${PN}
307 -
308 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
309 -
310 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
311 -
312 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
313 - newinitd "${FILESDIR}/${PN}.initd-r7" ${PN}
314 - newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
315 -
316 - insinto /etc/sysctl.d
317 - newins "${FILESDIR}"/sysctld 90-${PN}.conf
318 -
319 - use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc
320 -
321 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" "ceph-mds@.service"
322 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
323 -
324 - udev_dorules udev/*.rules
325 -
326 - readme.gentoo_create_doc
327 -
328 - python_setup 'python2*'
329 - python_fix_shebang "${ED}"/usr/{,s}bin/
330 -
331 - # python_fix_shebang apparently is not idempotent
332 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
333 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
334 -}
335 -
336 -pkg_postinst() {
337 - readme.gentoo_print_elog
338 -}