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, 28 Feb 2017 04:30:37
Message-Id: 1488256223.94b05cdca212da1ed1dccd797a815e9a08fd1aa3.chutzpah@gentoo
1 commit: 94b05cdca212da1ed1dccd797a815e9a08fd1aa3
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 04:29:54 2017 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 04:30:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94b05cdc
7
8 sys-cluster/ceph: Revision bump, fix installation of python modules
9
10 For some reason the ceph build system stopped installed required python
11 modules for python2, and only installed them in python3. This fixes the
12 problem so the ceph cli tools will work again.
13
14 Package-Manager: Portage-2.3.3, Repoman-2.3.1
15
16 .../ceph/{ceph-10.2.5-r2.ebuild => ceph-10.2.5-r3.ebuild} | 13 ++++++++++---
17 1 file changed, 10 insertions(+), 3 deletions(-)
18
19 diff --git a/sys-cluster/ceph/ceph-10.2.5-r2.ebuild b/sys-cluster/ceph/ceph-10.2.5-r3.ebuild
20 similarity index 94%
21 rename from sys-cluster/ceph/ceph-10.2.5-r2.ebuild
22 rename to sys-cluster/ceph/ceph-10.2.5-r3.ebuild
23 index 568216bfa4..cce9b22dd9 100644
24 --- a/sys-cluster/ceph/ceph-10.2.5-r2.ebuild
25 +++ b/sys-cluster/ceph/ceph-10.2.5-r3.ebuild
26 @@ -135,7 +135,7 @@ user_setup() {
27 }
28
29 emake_python_bindings() {
30 - local action="${1}" params binding
31 + local action="${1}" params binding module
32 shift
33 params=("${@}")
34
35 @@ -144,8 +144,15 @@ emake_python_bindings() {
36 emake "${params[@]}" PYTHON="${EPYTHON}" "${binding}-pybind-${action}"
37
38 # these don't work and aren't needed on python3
39 - if [[ ${EBUILD_PHASE} == install ]] && python_is_python3; then
40 - rm -f "${ED}/$(python_get_sitedir)"/ceph_{argparse,volume_client}.py
41 + if [[ ${EBUILD_PHASE} == install ]]; then
42 + for module in "${S}"/src/pybind/*.py; do
43 + module_basename="$(basename "${module}")"
44 + if [[ ${module_basename} == ceph_volume_client.py ]] && ! use cephfs; then
45 + continue
46 + elif [[ ! -e "${ED}/$(python_get_sitedir)/${module_basename}" ]]; then
47 + python_domodule ${module}
48 + fi
49 + done
50 fi
51 }