Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269098 - dev-lang/python: Fix building of _ctypes module on architectures without FFI_CLOSURE defined
Summary: dev-lang/python: Fix building of _ctypes module on architectures without FFI_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard: 2.5.4-r4, 2.6.2-r2, 3.1.1-r1
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-09 08:27 UTC by Sven 'sleipnir' Rebhan
Modified: 2010-02-15 01:32 UTC (History)
2 users (show)

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


Attachments
Python patch for python-2.5.4 (python-2.5.4-enable-ctypes-module.patch,2.96 KB, patch)
2009-05-09 08:29 UTC, Sven 'sleipnir' Rebhan
Details | Diff
Python patch for python-2.6.2 (python-2.6.2-enable-ctypes-module.patch,1.38 KB, patch)
2009-05-09 08:29 UTC, Sven 'sleipnir' Rebhan
Details | Diff
Ebuild patch for python-2.5.4-r2 (python-2.5.4-r2.ebuild.patch,553 bytes, patch)
2009-05-09 08:30 UTC, Sven 'sleipnir' Rebhan
Details | Diff
Ebuild patch for python-2.6.2 (python-2.6.2.ebuild.patch,542 bytes, patch)
2009-05-09 08:30 UTC, Sven 'sleipnir' Rebhan
Details | Diff
python ctypes cross build patch (python-2.6-enable-ctypes-cross-build.patch,1.41 KB, patch)
2009-11-29 15:55 UTC, Maksim 'max_posedon' Melnikau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sven 'sleipnir' Rebhan 2009-05-09 08:27:30 UTC
When compiling python on e.g. arm, the ctypes module fails to build. The following patches (taken from openembeded) bring back ctypes on python 2.5.4-r2 and python-2.6.2.

Reproducible: Always
Comment 1 Sven 'sleipnir' Rebhan 2009-05-09 08:29:12 UTC
Created attachment 190732 [details, diff]
Python patch for python-2.5.4

Bring back the ctypes module for archs having FFI_CLOSURE not defined.
Comment 2 Sven 'sleipnir' Rebhan 2009-05-09 08:29:50 UTC
Created attachment 190733 [details, diff]
Python patch for python-2.6.2

Bring back the ctypes module for archs having FFI_CLOSURE not defined.
Comment 3 Sven 'sleipnir' Rebhan 2009-05-09 08:30:37 UTC
Created attachment 190734 [details, diff]
Ebuild patch for python-2.5.4-r2
Comment 4 Sven 'sleipnir' Rebhan 2009-05-09 08:30:55 UTC
Created attachment 190736 [details, diff]
Ebuild patch for python-2.6.2
Comment 5 Sven 'sleipnir' Rebhan 2009-05-09 08:32:13 UTC
Tested for quite some time in the openmoko overlay...

Spatial thanks to Maksim 'max_posedon' Melnikau for adding this stuff to python-2.6.2!
Comment 6 Sven 'sleipnir' Rebhan 2009-05-09 08:38:09 UTC
Btw: This tries to split bug #268887 into more craspable pieces, so please do not mark it as duplicate!
Comment 7 solar (RETIRED) gentoo-dev 2009-05-09 14:54:49 UTC
Reassigning to python for review.
Comment 8 Robert Piasek (RETIRED) gentoo-dev 2009-05-27 11:57:40 UTC
Hi,

Sorry to chase, but have any of you had a chance to look at it?


Thanks,
Rob
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-28 15:27:03 UTC
Please report it to Python upstream [1] and we will apply the version of the
patch accepted by upstream.

[1] http://bugs.python.org/
Comment 10 Maksim 'max_posedon' Melnikau 2009-11-29 15:55:02 UTC
Created attachment 211525 [details, diff]
python ctypes cross build patch

This is updated patch, compatible with upstream(python-trunk), and new autoconf.
Comment 11 Maksim 'max_posedon' Melnikau 2009-11-29 16:14:51 UTC
(In reply to comment #10)
> Created an attachment (id=211525) [details]
> python ctypes cross build patch
> 
> This is updated patch, compatible with upstream(python-trunk), and new
> autoconf.
> 
since >=python-2.6.4 this patch don't need anymore, python don't run configure for _ctype module anymore

bug can be closed
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-29 16:38:28 UTC
(In reply to comment #11)
> since >=python-2.6.4 this patch don't need anymore

Actually since >=2.6.2-r2.

> bug can be closed

I will leave it open for 2.5 slot.
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-15 01:32:00 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > since >=python-2.6.4 this patch don't need anymore
> 
> Actually since >=2.6.2-r2.
> 
> > bug can be closed
> 
> I will leave it open for 2.5 slot.

>=dev-lang/python-2.5.4-r4:2.5 also uses system libffi.