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