commit:     115041505b9b6b2c5902e385bf0726e8e3d47575
Author:     Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
AuthorDate: Mon Sep  5 13:23:33 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 14:01:29 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11504150

dev-lang/python: Fix cross-compilation support for 3.4.5

Gentoo-bug: https://bugs.gentoo.org/show_bug.cgi?id=590530
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2247

 dev-lang/python/files/python-3.4.5-cross.patch | 11 +++++++++++
 dev-lang/python/python-3.4.5.ebuild            |  1 +
 2 files changed, 12 insertions(+)

diff --git a/dev-lang/python/files/python-3.4.5-cross.patch 
b/dev-lang/python/files/python-3.4.5-cross.patch
new file mode 100644
index 00000000..7a016ff
--- /dev/null
+++ b/dev-lang/python/files/python-3.4.5-cross.patch
@@ -0,0 +1,11 @@
+--- a/Lib/distutils/command/build_ext.py
++++ b/Lib/distutils/command/build_ext.py
+@@ -729,7 +729,7 @@
+             if sysconfig.get_config_var('Py_ENABLE_SHARED'):
+                 pythonlib = 'python{}.{}{}'.format(
+                     sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff,
+-                    sys.abiflags)
++                    sysconfig.get_config_var('ABIFLAGS'))
+                 return ext.libraries + [pythonlib]
+             else:
+                 return ext.libraries

diff --git a/dev-lang/python/python-3.4.5.ebuild 
b/dev-lang/python/python-3.4.5.ebuild
index b26c787..11359e7 100644
--- a/dev-lang/python/python-3.4.5.ebuild
+++ b/dev-lang/python/python-3.4.5.ebuild
@@ -72,6 +72,7 @@ src_prepare() {
 
        EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
        epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
+       epatch "${FILESDIR}/${PN}-3.4.5-cross.patch"
 
        epatch_user
 

Reply via email to