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: 1533081140.06c3797804835ba8c52c03c1d3f6aca521682ed3.chutzpah@gentoo
1 commit: 06c3797804835ba8c52c03c1d3f6aca521682ed3
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 23:52:20 2018 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 23:52:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c37978
7
8 sys-cluster/ceph: Remove old version 12.2.2
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 sys-cluster/ceph/ceph-12.2.2.ebuild | 288 ------------------------------------
13 1 file changed, 288 deletions(-)
14
15 diff --git a/sys-cluster/ceph/ceph-12.2.2.ebuild b/sys-cluster/ceph/ceph-12.2.2.ebuild
16 deleted file mode 100644
17 index 664f9e63d0b..00000000000
18 --- a/sys-cluster/ceph/ceph-12.2.2.ebuild
19 +++ /dev/null
20 @@ -1,288 +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 -DISTUTILS_OPTIONAL=1
27 -
28 -inherit check-reqs cmake-utils distutils-r1 python-r1 udev user systemd \
29 - readme.gentoo-r1 flag-o-matic
30 -
31 -if [[ ${PV} == *9999* ]]; then
32 - inherit git-r3
33 - EGIT_REPO_URI="https://github.com/ceph/ceph.git"
34 - SRC_URI=""
35 -else
36 - SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz"
37 - KEYWORDS="~amd64 ~x86"
38 -fi
39 -
40 -DESCRIPTION="Ceph distributed filesystem"
41 -HOMEPAGE="https://ceph.com/"
42 -
43 -LICENSE="LGPL-2.1 CC-BY-SA-1.0 GPL-2 BSD Boost-1.0 MIT"
44 -SLOT="0"
45 -
46 -CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3)
47 -
48 -IUSE="babeltrace cephfs fuse jemalloc ldap lttng +mgr nss +radosgw +ssl"
49 -IUSE+=" static-libs systemd +tcmalloc test xfs zfs"
50 -IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})"
51 -
52 -# unbundling code commented out pending bugs 584056 and 584058
53 -#>=dev-libs/jerasure-2.0.0-r1
54 -#>=dev-libs/gf-complete-2.0.0
55 -COMMON_DEPEND="
56 - virtual/libudev
57 - app-arch/bzip2:=[static-libs?]
58 - app-arch/lz4:=[static-libs?]
59 - app-arch/snappy:=[static-libs?]
60 - app-arch/zstd:=[static-libs?]
61 - app-misc/jq:=[static-libs?]
62 - dev-libs/boost:=[threads,context,python,static-libs?,${PYTHON_USEDEP}]
63 - dev-libs/crypto++:=[static-libs?]
64 - dev-libs/leveldb:=[snappy,static-libs?]
65 - dev-libs/libaio:=[static-libs?]
66 - dev-libs/libxml2:=[static-libs?]
67 - sys-apps/keyutils:=[static-libs?]
68 - sys-apps/util-linux:=[static-libs?]
69 - sys-libs/zlib:=[static-libs?]
70 - babeltrace? ( dev-util/babeltrace )
71 - ldap? ( net-nds/openldap:=[static-libs?] )
72 - lttng? ( dev-util/lttng-ust:= )
73 - nss? ( dev-libs/nss:= )
74 - fuse? ( sys-fs/fuse:0=[static-libs?] )
75 - ssl? ( dev-libs/openssl:=[static-libs?] )
76 - xfs? ( sys-fs/xfsprogs:=[static-libs?] )
77 - zfs? ( sys-fs/zfs:=[static-libs?] )
78 - radosgw? (
79 - dev-libs/expat:=[static-libs?]
80 - dev-libs/openssl:=[static-libs?]
81 - net-misc/curl:=[static-libs?]
82 - )
83 - jemalloc? ( dev-libs/jemalloc:=[static-libs?] )
84 - !jemalloc? ( >=dev-util/google-perftools-2.4:=[static-libs?] )
85 - ${PYTHON_DEPS}
86 - "
87 -DEPEND="${COMMON_DEPEND}
88 - app-arch/cpio
89 - dev-lang/yasm
90 - dev-python/cython[${PYTHON_USEDEP}]
91 - dev-python/sphinx
92 - dev-util/gperf
93 - dev-util/valgrind
94 - sys-apps/which
95 - sys-devel/bc
96 - virtual/pkgconfig
97 - test? (
98 - dev-python/tox[${PYTHON_USEDEP}]
99 - dev-python/virtualenv[${PYTHON_USEDEP}]
100 - sys-apps/grep[pcre]
101 - sys-fs/btrfs-progs
102 - )"
103 -RDEPEND="${COMMON_DEPEND}
104 - net-misc/socat
105 - sys-apps/gptfdisk
106 - sys-block/parted
107 - sys-fs/cryptsetup
108 - !<sys-apps/openrc-0.26.3
109 - dev-python/cherrypy[${PYTHON_USEDEP}]
110 - dev-python/flask[${PYTHON_USEDEP}]
111 - dev-python/pecan[${PYTHON_USEDEP}]
112 - dev-python/prettytable[${PYTHON_USEDEP}]
113 - dev-python/pyopenssl[${PYTHON_USEDEP}]
114 - dev-python/requests[${PYTHON_USEDEP}]
115 - dev-python/werkzeug[${PYTHON_USEDEP}]
116 - "
117 -REQUIRED_USE="
118 - $(python_gen_useflags 'python2*')
119 - ${PYTHON_REQUIRED_USE}
120 - ?? ( ssl nss )
121 - ?? ( jemalloc tcmalloc )
122 - "
123 -
124 -RESTRICT="test? ( userpriv )"
125 -
126 -# distribution tarball does not include everything needed for tests
127 -RESTRICT+=" test"
128 -
129 -STRIP_MASK="/usr/lib*/rados-classes/*"
130 -
131 -UNBUNDLE_LIBS=(
132 - src/erasure-code/jerasure/jerasure
133 - src/erasure-code/jerasure/gf-complete
134 -)
135 -
136 -PATCHES=(
137 - "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch"
138 - "${FILESDIR}/ceph-12.2.0-cflags.patch"
139 - "${FILESDIR}/ceph-12.2.1-systemd-unitdir.patch"
140 - "${FILESDIR}/ceph-12.2.2-build-without-radosgw.patch"
141 -)
142 -
143 -check-reqs_export_vars() {
144 - if use amd64; then
145 - CHECKREQS_DISK_BUILD="12G"
146 - CHECKREQS_DISK_USR="460M"
147 - else
148 - CHECKREQS_DISK_BUILD="1400M"
149 - CHECKREQS_DISK_USR="450M"
150 - fi
151 -
152 - export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR
153 -}
154 -
155 -user_setup() {
156 - enewgroup ceph ${CEPH_GID}
157 - enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph
158 -}
159 -
160 -pkg_pretend() {
161 - check-reqs_export_vars
162 - check-reqs_pkg_pretend
163 -}
164 -
165 -pkg_setup() {
166 - python_setup 'python2*'
167 - check-reqs_export_vars
168 - check-reqs_pkg_setup
169 - user_setup
170 -}
171 -
172 -src_prepare() {
173 - default
174 -
175 - # remove tests that need root access
176 - rm src/test/cli/ceph-authtool/cap*.t
177 -
178 - #rm -rf "${UNBUNDLE_LIBS[@]}"
179 -}
180 -
181 -ceph_src_configure() {
182 - local flag
183 - local mycmakeargs=(
184 - -DWITH_BABELTRACE=$(usex babeltrace)
185 - -DWITH_CEPHFS=$(usex cephfs)
186 - -DWITH_FUSE=$(usex fuse)
187 - -DWITH_LTTNG=$(usex lttng)
188 - -DWITH_MGR=$(usex mgr)
189 - -DWITH_NSS=$(usex nss)
190 - -DWITH_OPENLDAP=$(usex ldap)
191 - -DWITH_RADOSGW=$(usex radosgw)
192 - -DWITH_SSL=$(usex ssl)
193 - -DWITH_SYSTEMD=$(usex systemd)
194 - -DWITH_TESTS=$(usex test)
195 - -DWITH_XFS=$(usex xfs)
196 - -DWITH_ZFS=$(usex zfs)
197 - -DENABLE_SHARED=$(usex static-libs '' 'yes' 'no')
198 - -DALLOCATOR=$(usex tcmalloc 'tcmalloc' '' "$(usex jemalloc 'jemalloc' '' 'libc' '')" '')
199 - -DWITH_SYSTEM_BOOST=yes
200 - -DWITH_RDMA=no
201 - -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir)
202 - )
203 - if use amd64 || use x86; then
204 - for flag in ${CPU_FLAGS_X86[@]}; do
205 - mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")")
206 - done
207 - fi
208 -
209 - rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt"
210 - cmake-utils_src_configure
211 -
212 - # bug #630232
213 - sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \
214 - "${BUILD_DIR:-${CMAKE_BUILD_DIR:-${S}}}"/include/acconfig.h \
215 - || die "sed failed"
216 -}
217 -
218 -src_configure() {
219 - ceph_src_configure
220 -}
221 -
222 -python_compile() {
223 - local CMAKE_USE_DIR="${S}"
224 -
225 - ceph_src_configure
226 - pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
227 - emake VERBOSE=1 all
228 -
229 - # python modules are only compiled with "make install" so we need to do this to
230 - # prevent doing a bunch of compilation in src_install
231 - DESTDIR="${T}" emake VERBOSE=1 install
232 - popd >/dev/null || die
233 -}
234 -
235 -src_compile() {
236 - cmake-utils_src_make all
237 -
238 - # we have to do this here to prevent from building everything multiple times
239 - BUILD_DIR="${CMAKE_BUILD_DIR}" python_copy_sources
240 - python_foreach_impl python_compile
241 -}
242 -
243 -src_test() {
244 - make check || die "make check failed"
245 -}
246 -
247 -python_install() {
248 - local CMAKE_USE_DIR="${S}"
249 - pushd "${BUILD_DIR}/src/pybind" >/dev/null || die
250 - DESTDIR="${D}" emake install
251 - popd >/dev/null || die
252 -}
253 -
254 -src_install() {
255 - cmake-utils_src_install
256 - python_foreach_impl python_install
257 -
258 - prune_libtool_files --all
259 -
260 - exeinto /usr/$(get_libdir)/ceph
261 - newexe "${CMAKE_BUILD_DIR}/bin/init-ceph" ceph_init.sh
262 -
263 - insinto /etc/logrotate.d/
264 - newins "${FILESDIR}"/ceph.logrotate ${PN}
265 -
266 - keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat
267 -
268 - fowners -R ceph:ceph /var/lib/ceph /var/log/ceph
269 -
270 - newinitd "${FILESDIR}/rbdmap.initd" rbdmap
271 - newinitd "${FILESDIR}/${PN}.initd-r6" ${PN}
272 - newconfd "${FILESDIR}/${PN}.confd-r4" ${PN}
273 -
274 - insinto /etc/sysctl.d
275 - newins "${FILESDIR}"/sysctld 90-${PN}.conf
276 -
277 - use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc
278 -
279 - # units aren't installed by the build system unless systemd is enabled
280 - # so no point installing these with the USE flag disabled
281 - if use systemd; then
282 - systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \
283 - "ceph-mds@.service"
284 -
285 - systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \
286 - "ceph-osd@.service"
287 - fi
288 -
289 - udev_dorules udev/*.rules
290 -
291 - readme.gentoo_create_doc
292 -
293 - python_setup 'python2*'
294 -
295 - # bug #630232
296 - sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph \
297 - || die "sed failed"
298 -
299 - python_fix_shebang "${ED}"/usr/{,s}bin/
300 -
301 - # python_fix_shebang apparently is not idempotent
302 - sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
303 - "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
304 -}
305 -
306 -pkg_postinst() {
307 - readme.gentoo_print_elog
308 -}