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