dev-lang/python: pax-mark the python binary in src_install
authorMike Gilbert <floppym@gentoo.org>
Fri, 22 Jan 2016 15:13:10 +0000 (10:13 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 22 Jan 2016 15:14:01 +0000 (10:14 -0500)
Bug: https://bugs.gentoo.org/569908

Package-Manager: portage-2.2.27_p47

dev-lang/python/python-3.5.1-r2.ebuild

index bf753fab3174bb0cd35de251132042c5eba48232..7f82e77d001cc0f8be62b0a0f15c2812b4bc8cb4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -254,6 +254,14 @@ src_install() {
                dosym "python-${PYVER}.pc" "/usr/$(get_libdir)/pkgconfig/${abiver/${PYVER}/-${PYVER}}.pc"
        fi
 
+       # python seems to get rebuilt in src_install (bug 569908)
+       # Work around it for now.
+       if has_version dev-libs/libffi[pax_kernel]; then
+               pax-mark E "${ED}usr/bin/${abiver}"
+       else
+               pax-mark m "${ED}usr/bin/${abiver}"
+       fi
+
        use elibc_uclibc && rm -fr "${libdir}/test"
        use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
        use tk || rm -fr "${ED}usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*}