1 |
commit: 8f92bc0179717fff7d7d0248302cfdedd7e92a0e |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 15:35:56 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 15:49:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f92bc01 |
7 |
|
8 |
sys-cluster/ceph: Revision bump to 10.2.3-r1 fix shebang issue |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
.../ceph/{ceph-10.2.3-r1.ebuild => ceph-10.2.3-r2.ebuild} | 11 ++++++++--- |
13 |
1 file changed, 8 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/sys-cluster/ceph/ceph-10.2.3-r1.ebuild b/sys-cluster/ceph/ceph-10.2.3-r2.ebuild |
16 |
similarity index 95% |
17 |
rename from sys-cluster/ceph/ceph-10.2.3-r1.ebuild |
18 |
rename to sys-cluster/ceph/ceph-10.2.3-r2.ebuild |
19 |
index 5f40c53..30211fa 100644 |
20 |
--- a/sys-cluster/ceph/ceph-10.2.3-r1.ebuild |
21 |
+++ b/sys-cluster/ceph/ceph-10.2.3-r2.ebuild |
22 |
@@ -212,7 +212,7 @@ src_configure() { |
23 |
) |
24 |
|
25 |
# we can only use python2.7 for building at the moment |
26 |
- python_export python2.7 PYTHON EPYTHON |
27 |
+ python_setup 'python2*' |
28 |
econf "${myeconfargs[@]}" |
29 |
} |
30 |
|
31 |
@@ -251,11 +251,16 @@ src_install() { |
32 |
systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service" |
33 |
systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service" |
34 |
|
35 |
- python_fix_shebang "${ED}"/usr/{,s}bin/ |
36 |
- |
37 |
udev_dorules udev/*.rules |
38 |
|
39 |
readme.gentoo_create_doc |
40 |
+ |
41 |
+ python_setup 'python2*' |
42 |
+ python_fix_shebang "${ED}"/usr/{,s}bin/ |
43 |
+ |
44 |
+ # python_fix_shebang apparently is not idempotent |
45 |
+ sed -i -r 's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \ |
46 |
+ "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed" |
47 |
} |
48 |
|
49 |
pkg_postinst() { |