sys-cluster/ceph: Revision bump to 10.2.3-r1 fix shebang issue
authorPatrick McLean <chutzpah@gentoo.org>
Thu, 3 Nov 2016 15:35:56 +0000 (08:35 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Thu, 3 Nov 2016 15:49:42 +0000 (09:49 -0600)
Package-Manager: portage-2.3.2

sys-cluster/ceph/ceph-10.2.3-r2.ebuild [moved from sys-cluster/ceph/ceph-10.2.3-r1.ebuild with 95% similarity]

similarity index 95%
rename from sys-cluster/ceph/ceph-10.2.3-r1.ebuild
rename to sys-cluster/ceph/ceph-10.2.3-r2.ebuild
index 5f40c53bf6adbf896aa030a93d2fe4d5e744a968..30211faa57ae6a3efe1d1f3fa7f0138847fa0de7 100644 (file)
@@ -212,7 +212,7 @@ src_configure() {
        )
 
        # we can only use python2.7 for building at the moment
-       python_export python2.7 PYTHON EPYTHON
+       python_setup 'python2*'
        econf "${myeconfargs[@]}"
 }
 
@@ -251,11 +251,16 @@ src_install() {
        systemd_install_serviced "${FILESDIR}/ceph-osd_at.service.conf" "ceph-osd@.service"
        systemd_install_serviced "${FILESDIR}/ceph-mon_at.service.conf" "ceph-mon@.service"
 
-       python_fix_shebang "${ED}"/usr/{,s}bin/
-
        udev_dorules udev/*.rules
 
        readme.gentoo_create_doc
+
+       python_setup 'python2*'
+       python_fix_shebang "${ED}"/usr/{,s}bin/
+
+       # python_fix_shebang apparently is not idempotent
+       sed -i -r  's:(/usr/lib/python-exec/python[0-9]\.[0-9]/python)[0-9]\.[0-9]:\1:' \
+               "${ED}"/usr/{sbin/ceph-disk,bin/ceph-detect-init} || die "sed failed"
 }
 
 pkg_postinst() {