1 |
commit: 599e7ae01806807eb88cedda80e241a1b5d42b7d |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 25 23:26:24 2018 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 25 23:26:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=599e7ae0 |
7 |
|
8 |
sys-cluster/ceph: Version bump to 12.2.9 |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <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-12.2.9.ebuild | 308 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 309 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/ceph/Manifest b/sys-cluster/ceph/Manifest |
18 |
index 84c9df735e2..f92a3fd2365 100644 |
19 |
--- a/sys-cluster/ceph/Manifest |
20 |
+++ b/sys-cluster/ceph/Manifest |
21 |
@@ -2,6 +2,7 @@ DIST ceph-10.2.10.tar.gz 14573701 BLAKE2B 78c68deb8537cae8394b4d35569983431e938e |
22 |
DIST ceph-10.2.3.tar.gz 11596171 BLAKE2B c24c879649f0d42f58cfb1d03701797bc685d83c157031156d13308c731412a4a0149b658193722b358ebf0c4f9760d9664668cd797b69d207e81dc572f49700 SHA512 9de1e6851fc343d2c52c72cec3f7887d998d5b588f1251ee3a1fda14427badfa10408e6691fb03a374a10f4ec9844868423fee70fbbe2c0d962af98481412f19 |
23 |
DIST ceph-12.2.7.tar.gz 78783279 BLAKE2B 9058a5e408b3431cf0e8c28b44f95f6eb12f029697348eb6879efa9db4ad6a3b52b1040f484919a3f1781ac3a4aa72af3b8905760480fd3f3724dbceeab4eb07 SHA512 dde75a41c31cca54d4a680b0b93e28680a23f912a348cccca65e55e600c315bbfe3ced008d758fe8ba1e801a9d6e5f8079cc157ec5eef8916b86f487f42064ea |
24 |
DIST ceph-12.2.8.tar.gz 77243685 BLAKE2B 37c34396a0c276b8d79735e14934ac70da024822c2a060061531c234e03e5d41aad6c41dc64b05c2ce47f03287d0cae9ef9bed67e4a0861b6380c8ce1de4ea69 SHA512 91c5c11aaeef701b3e31c9f8a1192b6b79fd34f3b96c61595c65173c98bfce0009c5b7c9b29764f5e4d4b1f5ac2ca7109fed5ae598c176aba717a34a132fabac |
25 |
+DIST ceph-12.2.9.tar.gz 77300470 BLAKE2B 3d3fe24986b890e7dcfc790441a80ad56b9c26f500811d524d0889773d425c88f278135d85cd84036973deb5aa58c4cd1cc9cead60db3f0f825349d73140be73 SHA512 93da6f9012fdb65e74dc1917f54839cb19a25672d53e7ee253553e93abb1a2afb51cd18b27bc82559108e2085e463a3b46003b03627e06a6e2e2312b54d86e92 |
26 |
DIST ceph-13.2.1-frontend-node-modules.tar.xz 44352460 BLAKE2B 0a0099e60f0b36d48928dcda3f69dbb00e14a9a9e10c688ecbeb3daa3adbe339655652a43924043fe140ce1754525be2abed61f1ad5f24779fa4ff890d2b7cf6 SHA512 3938e8cadb6385cdaf023fe55ab5f202e44ed80173b128e3b76fc4849556cea90ce5d8884a928b93776b0509b5aef814f1078ba5e44a9d644b43a871aea06dd9 |
27 |
DIST ceph-13.2.1.tar.gz 90786830 BLAKE2B e0884a039ff0e8a1705d8f31f4dcf4cd8ab8989d7c2fa703417038ff9a6cf7b0fbca09abceb901970fbb2dd9a1dc87c2500fec38a2bfca86a9a6dcaab15be991 SHA512 411218ea6037bdf9425a741720ea89876e893e64fbfa518c9584ba581f805fde2c82b13ed47313279665e5d20f36223fc8d5c27055b580c72b22c2004e4da81b |
28 |
DIST ceph-13.2.2-frontend-node-modules.tar.xz 45100632 BLAKE2B c3929a6c5e6ec3da5ff60967ae40b99377b2186f31e64af571d9be14889d90bc48b570489aea300ead8e99afc0e62db4438cf343686757a39d84889e772c7fa9 SHA512 93eabc2010c0977c2980c739e131d231a809e375c42120e81effc6cecdeaf0e50b4f8c88286993ef60f1ffaede94f637475104e09fd7af58a289350bd670bf2f |
29 |
|
30 |
diff --git a/sys-cluster/ceph/ceph-12.2.9.ebuild b/sys-cluster/ceph/ceph-12.2.9.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..b57efd99825 |
33 |
--- /dev/null |
34 |
+++ b/sys-cluster/ceph/ceph-12.2.9.ebuild |
35 |
@@ -0,0 +1,308 @@ |
36 |
+# Copyright 1999-2018 Gentoo Authors |
37 |
+# Copyright 2017-2018 Sony Interactive Entertainment Inc. |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} ) |
42 |
+DISTUTILS_OPTIONAL=1 |
43 |
+ |
44 |
+inherit check-reqs cmake-utils distutils-r1 flag-o-matic multiprocessing \ |
45 |
+ python-r1 udev user readme.gentoo-r1 systemd |
46 |
+ |
47 |
+if [[ ${PV} == *9999* ]]; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/ceph/ceph.git" |
50 |
+ SRC_URI="" |
51 |
+else |
52 |
+ SRC_URI="https://download.ceph.com/tarballs/${P}.tar.gz" |
53 |
+ KEYWORDS="~amd64 ~x86" |
54 |
+fi |
55 |
+ |
56 |
+DESCRIPTION="Ceph distributed filesystem" |
57 |
+HOMEPAGE="https://ceph.com/" |
58 |
+ |
59 |
+LICENSE="LGPL-2.1 CC-BY-SA-3.0 GPL-2 BSD Boost-1.0 MIT" |
60 |
+SLOT="0" |
61 |
+ |
62 |
+CPU_FLAGS_X86=(sse{,2,3,4_1,4_2} ssse3) |
63 |
+ |
64 |
+IUSE="babeltrace cephfs fuse jemalloc ldap lttng +mgr nss +radosgw +ssl" |
65 |
+IUSE+=" static-libs +system-boost systemd +tcmalloc test xfs zfs" |
66 |
+IUSE+=" $(printf "cpu_flags_x86_%s\n" ${CPU_FLAGS_X86[@]})" |
67 |
+ |
68 |
+# unbundling code commented out pending bugs 584056 and 584058 |
69 |
+#>=dev-libs/jerasure-2.0.0-r1 |
70 |
+#>=dev-libs/gf-complete-2.0.0 |
71 |
+COMMON_DEPEND=" |
72 |
+ virtual/libudev:= |
73 |
+ app-arch/bzip2:=[static-libs?] |
74 |
+ app-arch/lz4:=[static-libs?] |
75 |
+ app-arch/snappy:=[static-libs?] |
76 |
+ app-arch/zstd:=[static-libs?] |
77 |
+ app-misc/jq:=[static-libs?] |
78 |
+ <dev-libs/crypto++-7.0:=[static-libs?] |
79 |
+ dev-libs/leveldb:=[snappy,static-libs?,tcmalloc?] |
80 |
+ dev-libs/libaio:=[static-libs?] |
81 |
+ dev-libs/libxml2:=[static-libs?] |
82 |
+ sys-apps/keyutils:=[static-libs?] |
83 |
+ sys-apps/util-linux:=[static-libs?] |
84 |
+ sys-libs/zlib:=[static-libs?] |
85 |
+ babeltrace? ( dev-util/babeltrace ) |
86 |
+ ldap? ( net-nds/openldap:=[static-libs?] ) |
87 |
+ lttng? ( dev-util/lttng-ust:= ) |
88 |
+ nss? ( dev-libs/nss:= ) |
89 |
+ fuse? ( sys-fs/fuse:0=[static-libs?] ) |
90 |
+ ssl? ( dev-libs/openssl:=[static-libs?] ) |
91 |
+ xfs? ( sys-fs/xfsprogs:=[static-libs?] ) |
92 |
+ zfs? ( sys-fs/zfs:=[static-libs?] ) |
93 |
+ radosgw? ( |
94 |
+ dev-libs/expat:=[static-libs?] |
95 |
+ dev-libs/openssl:=[static-libs?] |
96 |
+ net-misc/curl:=[curl_ssl_openssl,static-libs?] |
97 |
+ ) |
98 |
+ system-boost? ( |
99 |
+ =dev-libs/boost-1.66*:=[threads,context,python,static-libs?,${PYTHON_USEDEP}] |
100 |
+ ) |
101 |
+ jemalloc? ( dev-libs/jemalloc:=[static-libs?] ) |
102 |
+ !jemalloc? ( >=dev-util/google-perftools-2.4:=[static-libs?] ) |
103 |
+ ${PYTHON_DEPS} |
104 |
+ " |
105 |
+DEPEND="${COMMON_DEPEND} |
106 |
+ app-arch/cpio |
107 |
+ amd64? ( dev-lang/yasm ) |
108 |
+ x86? ( dev-lang/yasm ) |
109 |
+ dev-python/cython[${PYTHON_USEDEP}] |
110 |
+ dev-python/sphinx |
111 |
+ dev-util/gperf |
112 |
+ dev-util/valgrind |
113 |
+ sys-apps/which |
114 |
+ sys-devel/bc |
115 |
+ virtual/pkgconfig |
116 |
+ test? ( |
117 |
+ dev-python/tox[${PYTHON_USEDEP}] |
118 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
119 |
+ sys-apps/grep[pcre] |
120 |
+ sys-fs/btrfs-progs |
121 |
+ )" |
122 |
+RDEPEND="${COMMON_DEPEND} |
123 |
+ net-misc/socat |
124 |
+ sys-apps/gptfdisk |
125 |
+ sys-block/parted |
126 |
+ sys-fs/e2fsprogs |
127 |
+ sys-fs/cryptsetup |
128 |
+ sys-fs/lvm2 |
129 |
+ !<sys-apps/openrc-0.26.3 |
130 |
+ dev-python/cherrypy[${PYTHON_USEDEP}] |
131 |
+ dev-python/flask[${PYTHON_USEDEP}] |
132 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
133 |
+ dev-python/pecan[${PYTHON_USEDEP}] |
134 |
+ dev-python/prettytable[${PYTHON_USEDEP}] |
135 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
136 |
+ dev-python/requests[${PYTHON_USEDEP}] |
137 |
+ dev-python/werkzeug[${PYTHON_USEDEP}] |
138 |
+ " |
139 |
+REQUIRED_USE=" |
140 |
+ $(python_gen_useflags 'python2*') |
141 |
+ ${PYTHON_REQUIRED_USE} |
142 |
+ ?? ( ssl nss ) |
143 |
+ ?? ( jemalloc tcmalloc ) |
144 |
+ " |
145 |
+ |
146 |
+RESTRICT="test? ( userpriv )" |
147 |
+ |
148 |
+# distribution tarball does not include everything needed for tests |
149 |
+RESTRICT+=" test" |
150 |
+ |
151 |
+# false positives unless all USE flags are on |
152 |
+CMAKE_WARN_UNUSED_CLI="no" |
153 |
+ |
154 |
+STRIP_MASK="/usr/lib*/rados-classes/*" |
155 |
+ |
156 |
+UNBUNDLE_LIBS=( |
157 |
+ src/erasure-code/jerasure/jerasure |
158 |
+ src/erasure-code/jerasure/gf-complete |
159 |
+) |
160 |
+ |
161 |
+PATCHES=( |
162 |
+ "${FILESDIR}/ceph-12.2.0-use-provided-cpu-flag-values.patch" |
163 |
+ "${FILESDIR}/ceph-12.2.0-cflags.patch" |
164 |
+ "${FILESDIR}/ceph-12.2.1-systemd-unitdir.patch" |
165 |
+ "${FILESDIR}/ceph-12.2.4-boost-build-none-options.patch" |
166 |
+ "${FILESDIR}/ceph-12.2.4-cflags.patch" |
167 |
+ "${FILESDIR}/ceph-12.2.4-rocksdb-cflags.patch" |
168 |
+ "${FILESDIR}/ceph-12.2.5-no-werror.patch" |
169 |
+ "${FILESDIR}/ceph-13.2.2-dont-install-sysvinit-script.patch" |
170 |
+) |
171 |
+ |
172 |
+check-reqs_export_vars() { |
173 |
+ if use amd64; then |
174 |
+ CHECKREQS_DISK_BUILD="12G" |
175 |
+ CHECKREQS_DISK_USR="460M" |
176 |
+ else |
177 |
+ CHECKREQS_DISK_BUILD="1400M" |
178 |
+ CHECKREQS_DISK_USR="450M" |
179 |
+ fi |
180 |
+ |
181 |
+ export CHECKREQS_DISK_BUILD CHECKREQS_DISK_USR |
182 |
+} |
183 |
+ |
184 |
+user_setup() { |
185 |
+ enewgroup ceph ${CEPH_GID} |
186 |
+ enewuser ceph "${CEPH_UID:--1}" -1 /var/lib/ceph ceph |
187 |
+} |
188 |
+ |
189 |
+pkg_pretend() { |
190 |
+ check-reqs_export_vars |
191 |
+ check-reqs_pkg_pretend |
192 |
+} |
193 |
+ |
194 |
+pkg_setup() { |
195 |
+ python_setup 'python2*' |
196 |
+ check-reqs_export_vars |
197 |
+ check-reqs_pkg_setup |
198 |
+ user_setup |
199 |
+} |
200 |
+ |
201 |
+src_prepare() { |
202 |
+ cmake-utils_src_prepare |
203 |
+ |
204 |
+ if use system-boost; then |
205 |
+ eapply "${FILESDIR}/ceph-12.2.5-boost-sonames.patch" |
206 |
+ fi |
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 |
+ |
214 |
+ceph_src_configure() { |
215 |
+ local flag |
216 |
+ local mycmakeargs=( |
217 |
+ -DWITH_BABELTRACE=$(usex babeltrace) |
218 |
+ -DWITH_CEPHFS=$(usex cephfs) |
219 |
+ -DWITH_FUSE=$(usex fuse) |
220 |
+ -DWITH_LTTNG=$(usex lttng) |
221 |
+ -DWITH_MGR=$(usex mgr) |
222 |
+ -DWITH_NSS=$(usex nss) |
223 |
+ -DWITH_OPENLDAP=$(usex ldap) |
224 |
+ -DWITH_RADOSGW=$(usex radosgw) |
225 |
+ -DWITH_SSL=$(usex ssl) |
226 |
+ -DWITH_SYSTEMD=$(usex systemd) |
227 |
+ -DWITH_TESTS=$(usex test) |
228 |
+ -DWITH_XFS=$(usex xfs) |
229 |
+ -DWITH_ZFS=$(usex zfs) |
230 |
+ -DENABLE_SHARED=$(usex static-libs '' 'yes' 'no') |
231 |
+ -DALLOCATOR=$(usex tcmalloc 'tcmalloc' '' "$(usex jemalloc 'jemalloc' '' 'libc' '')" '') |
232 |
+ -DWITH_SYSTEM_BOOST=$(usex system-boost) |
233 |
+ -DBOOST_J=$(makeopts_jobs) |
234 |
+ -DWITH_RDMA=no |
235 |
+ -DSYSTEMD_UNITDIR=$(systemd_get_systemunitdir) |
236 |
+ -DEPYTHON_VERSION="${EPYTHON#python}" |
237 |
+ ) |
238 |
+ if use amd64 || use x86; then |
239 |
+ for flag in ${CPU_FLAGS_X86[@]}; do |
240 |
+ mycmakeargs+=("$(usex cpu_flags_x86_${flag} "-DHAVE_INTEL_${flag^^}=1")") |
241 |
+ done |
242 |
+ fi |
243 |
+ |
244 |
+ rm -f "${BUILD_DIR:-${S}}/CMakeCache.txt" |
245 |
+ cmake-utils_src_configure |
246 |
+ |
247 |
+ # bug #630232 |
248 |
+ sed -i "s:\"${T//:\\:}/${EPYTHON}/bin/python\":\"${PYTHON}\":" \ |
249 |
+ "${BUILD_DIR:-${CMAKE_BUILD_DIR:-${S}}}"/include/acconfig.h \ |
250 |
+ || die "sed failed" |
251 |
+} |
252 |
+ |
253 |
+src_configure() { |
254 |
+ ceph_src_configure |
255 |
+} |
256 |
+ |
257 |
+python_compile() { |
258 |
+ local CMAKE_USE_DIR="${S}" |
259 |
+ |
260 |
+ ceph_src_configure |
261 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
262 |
+ emake VERBOSE=1 all |
263 |
+ |
264 |
+ # python modules are only compiled with "make install" so we need to do this to |
265 |
+ # prevent doing a bunch of compilation in src_install |
266 |
+ DESTDIR="${T}" emake VERBOSE=1 install |
267 |
+ popd >/dev/null || die |
268 |
+} |
269 |
+ |
270 |
+src_compile() { |
271 |
+ cmake-utils_src_make all |
272 |
+ |
273 |
+ # we have to do this here to prevent from building everything multiple times |
274 |
+ BUILD_DIR="${CMAKE_BUILD_DIR}" python_copy_sources |
275 |
+ python_foreach_impl python_compile |
276 |
+} |
277 |
+ |
278 |
+src_test() { |
279 |
+ make check || die "make check failed" |
280 |
+} |
281 |
+ |
282 |
+python_install() { |
283 |
+ local CMAKE_USE_DIR="${S}" |
284 |
+ pushd "${BUILD_DIR}/src/pybind" >/dev/null || die |
285 |
+ DESTDIR="${D}" emake install |
286 |
+ popd >/dev/null || die |
287 |
+} |
288 |
+ |
289 |
+src_install() { |
290 |
+ cmake-utils_src_install |
291 |
+ python_foreach_impl python_install |
292 |
+ |
293 |
+ prune_libtool_files --all |
294 |
+ |
295 |
+ exeinto /usr/$(get_libdir)/ceph |
296 |
+ newexe "${CMAKE_BUILD_DIR}/bin/init-ceph" ceph_init.sh |
297 |
+ |
298 |
+ insinto /etc/logrotate.d/ |
299 |
+ newins "${FILESDIR}"/ceph.logrotate ${PN} |
300 |
+ |
301 |
+ keepdir /var/lib/${PN}{,/tmp} /var/log/${PN}/stat |
302 |
+ |
303 |
+ fowners -R ceph:ceph /var/lib/ceph /var/log/ceph |
304 |
+ |
305 |
+ newinitd "${FILESDIR}/rbdmap.initd" rbdmap |
306 |
+ newinitd "${FILESDIR}/${PN}.initd-r8" ${PN} |
307 |
+ newconfd "${FILESDIR}/${PN}.confd-r4" ${PN} |
308 |
+ |
309 |
+ insinto /etc/sysctl.d |
310 |
+ newins "${FILESDIR}"/sysctld 90-${PN}.conf |
311 |
+ |
312 |
+ use tcmalloc && newenvd "${FILESDIR}"/envd-tcmalloc 99${PN}-tcmalloc |
313 |
+ |
314 |
+ # units aren't installed by the build system unless systemd is enabled |
315 |
+ # so no point installing these with the USE flag disabled |
316 |
+ if use systemd; then |
317 |
+ systemd_install_serviced "${FILESDIR}/ceph-mds_at.service.conf" \ |
318 |
+ "ceph-mds@.service" |
319 |
+ |
320 |
+ systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" \ |
321 |
+ "ceph-osd@.service" |
322 |
+ fi |
323 |
+ |
324 |
+ udev_dorules udev/*.rules |
325 |
+ |
326 |
+ readme.gentoo_create_doc |
327 |
+ |
328 |
+ python_setup 'python2*' |
329 |
+ |
330 |
+ # bug #630232 |
331 |
+ sed -i -r "s:${T//:/\\:}/${EPYTHON}:/usr:" "${ED}"/usr/bin/ceph \ |
332 |
+ || die "sed failed" |
333 |
+ |
334 |
+ python_fix_shebang "${ED}"/usr/{,s}bin/ |
335 |
+ |
336 |
+ # python_fix_shebang apparently is not idempotent |
337 |
+ sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \ |
338 |
+ "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed" |
339 |
+} |
340 |
+ |
341 |
+pkg_postinst() { |
342 |
+ readme.gentoo_print_elog |
343 |
+} |