Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 590530 - dev-lang/python-3.4.5 fails to cross compile if abiflags from host and target differ
Summary: dev-lang/python-3.4.5 fails to cross compile if abiflags from host and target...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-08-05 08:44 UTC by Gerhard Bräunlich
Modified: 2016-09-10 14:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for determining the correct abiflags (cross.patch,494 bytes, patch)
2016-08-05 08:44 UTC, Gerhard Bräunlich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Bräunlich 2016-08-05 08:44:09 UTC
Created attachment 442592 [details, diff]
Patch for determining the correct abiflags

Note: This issue is fixed upstream for python 3.5, but it will not be fixed for 3.4.5 (see https://bugs.python.org/issue5404).

Description:
Cross compiling dev-lang/python-3.4.5 fails building the extensions, when running setup.py.
In Lib/distutils/command/build_ext.py
the variable "sys.abiflags" (the abiflags of the host system) is used to determine the abiflags for the target system. As a consequence, the linker is passed the wrong (non existent) library.
Comment 1 Felix Janda 2016-09-10 01:13:49 UTC
Thanks for the patch! (I've tested it for python-3.4.3-r1.)

How about submitting a pull request?
Comment 2 Gerhard Bräunlich 2016-09-10 08:15:00 UTC
(In reply to Felix Janda from comment #1)
> Thanks for the patch! (I've tested it for python-3.4.3-r1.)
> 
> How about submitting a pull request?

Actually there is one:
https://github.com/gentoo/gentoo/pull/2247
Comment 3 Mike Gilbert gentoo-dev 2016-09-10 14:02:47 UTC
commit 115041505b9b6b2c5902e385bf0726e8e3d47575
Author: Gerhard Bräunlich <wippbox@gmx.net>
Date:   Mon Sep 5 15:23:33 2016 +0200

    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(+)