public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:python-soabi-cleanup commit in: dev-lang/python/
Date: Tue, 10 Nov 2015 17:53:31 +0000 (UTC)	[thread overview]
Message-ID: <1447177550.5c64683966aa5faac6d3a9b97c225dbfa79bec85.mgorny@gentoo> (raw)

commit:     5c64683966aa5faac6d3a9b97c225dbfa79bec85
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  8 09:56:11 2015 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Nov 10 17:45:50 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c646839

dev-lang/python: Replace python3.x executables with symlinks

Replace python3.X executables (duplicate to python3.Xm) installed by
the build system with symlinks to the ABIFLAGS-enabled variants.

 dev-lang/python/python-3.3.5-r3.ebuild | 8 ++++++++
 dev-lang/python/python-3.4.3-r3.ebuild | 8 ++++++++
 dev-lang/python/python-3.5.0-r2.ebuild | 8 ++++++++
 3 files changed, 24 insertions(+)

diff --git a/dev-lang/python/python-3.3.5-r3.ebuild b/dev-lang/python/python-3.3.5-r3.ebuild
index f8a120c..e5e6291 100644
--- a/dev-lang/python/python-3.3.5-r3.ebuild
+++ b/dev-lang/python/python-3.3.5-r3.ebuild
@@ -249,6 +249,14 @@ src_install() {
 	# Fix collisions between different slots of Python.
 	rm -f "${ED}usr/$(get_libdir)/libpython3.so"
 
+	# Cheap hack to get version with ABIFLAGS
+	local abiver=$(cd "${ED}usr/include"; echo python*)
+	# Replace python3.X with a symlink if appropriate
+	if [[ ${abiver} != python${SLOT} ]]; then
+		rm "${ED}usr/bin/python${SLOT}" || die
+		dosym "${abiver}" "/usr/bin/python${SLOT}"
+	fi
+
 	if use build; then
 		rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter}
 	else

diff --git a/dev-lang/python/python-3.4.3-r3.ebuild b/dev-lang/python/python-3.4.3-r3.ebuild
index 3020fc8..fad0059 100644
--- a/dev-lang/python/python-3.4.3-r3.ebuild
+++ b/dev-lang/python/python-3.4.3-r3.ebuild
@@ -234,6 +234,14 @@ src_install() {
 	# Fix collisions between different slots of Python.
 	rm -f "${ED}usr/$(get_libdir)/libpython3.so"
 
+	# Cheap hack to get version with ABIFLAGS
+	local abiver=$(cd "${ED}usr/include"; echo python*)
+	# Replace python3.X with a symlink if appropriate
+	if [[ ${abiver} != python${SLOT} ]]; then
+		rm "${ED}usr/bin/python${SLOT}" || die
+		dosym "${abiver}" "/usr/bin/python${SLOT}"
+	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${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}

diff --git a/dev-lang/python/python-3.5.0-r2.ebuild b/dev-lang/python/python-3.5.0-r2.ebuild
index 5c4addf..18aa6cb 100644
--- a/dev-lang/python/python-3.5.0-r2.ebuild
+++ b/dev-lang/python/python-3.5.0-r2.ebuild
@@ -240,6 +240,14 @@ src_install() {
 	# Fix collisions between different slots of Python.
 	rm -f "${ED}usr/$(get_libdir)/libpython3.so"
 
+	# Cheap hack to get version with ABIFLAGS
+	local abiver=$(cd "${ED}usr/include"; echo python*)
+	# Replace python3.X with a symlink if appropriate
+	if [[ ${abiver} != python${SLOT} ]]; then
+		rm "${ED}usr/bin/python${SLOT}" || die
+		dosym "${abiver}" "/usr/bin/python${SLOT}"
+	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${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}


             reply	other threads:[~2015-11-10 17:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 17:53 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-11-10 17:53 [gentoo-commits] repo/gentoo:python-soabi-cleanup commit in: dev-lang/python/ Michał Górny
2015-11-10 17:53 Michał Górny
2015-11-08  9:57 Michał Górny
2015-11-08  9:08 Michał Górny
2015-11-08  9:08 Michał Górny
2015-11-08  8:42 Michał Górny
2015-11-08  8:42 Michał Górny
2015-11-07 20:00 Michał Górny
2015-11-07 20:00 Michał Górny
2015-11-07 19:58 Michał Górny
2015-11-07 19:58 Michał Górny
2015-11-07 19:44 Michał Górny
2015-11-07 19:44 Michał Górny
2015-11-07  9:40 Michał Górny
2015-11-07  9:40 Michał Górny
2015-11-07  9:16 Michał Górny
2015-11-07  9:16 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447177550.5c64683966aa5faac6d3a9b97c225dbfa79bec85.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox