dev-lang/python: Fix cross-compilation support for 3.4.5
authorGerhard Bräunlich <wippbox@gmx.net>
Mon, 5 Sep 2016 13:23:33 +0000 (15:23 +0200)
committerMike Gilbert <floppym@gentoo.org>
Sat, 10 Sep 2016 14:01:29 +0000 (10:01 -0400)
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 [new file with mode: 0644]
dev-lang/python/python-3.4.5.ebuild

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 (file)
index 0000000..7a016ff
--- /dev/null
@@ -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
index b26c787b02e9a9a208115e5ef4b033889bcd1ce8..11359e7cb316bcc1686d011e9fbcee0dfa7d9fa8 100644 (file)
@@ -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