Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190591 Details for
Bug 268887
dev-lang/python cross compilation aware
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
python 2.6 enable ctypes cross build
python-2.6-enable-ctypes-cross-build.patch (text/plain), 1.38 KB, created by
Maksim 'max_posedon' Melnikau
on 2009-05-07 00:23:31 UTC
(
hide
)
Description:
python 2.6 enable ctypes cross build
Filename:
MIME Type:
Creator:
Maksim 'max_posedon' Melnikau
Created:
2009-05-07 00:23:31 UTC
Size:
1.38 KB
patch
obsolete
># CTypes need to know the actual host we are building on. ># Signed-Off: Michael Dietrich <mdt@emdete.de> > >Index: Python-2.6.1/setup.py >=================================================================== >--- Python-2.6.1.orig/setup.py >+++ Python-2.6.1/setup.py >@@ -1656,16 +1656,16 @@ class PyBuildExt(build_ext): > ffi_configfile): > from distutils.dir_util import mkpath > mkpath(ffi_builddir) >- config_args = [] >+ config_args = ['--host=%s' % os.environ["CHOST"], ] > > # Pass empty CFLAGS because we'll just append the resulting > # CFLAGS to Python's; -g or -O2 is to be avoided. >- cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \ >- % (ffi_builddir, ffi_srcdir, " ".join(config_args)) >+ cmd = "(cd %s && aclocal && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \ >+ % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args)) > > res = os.system(cmd) > if res or not os.path.exists(ffi_configfile): >- print "Failed to configure _ctypes module" >+ print "Failed to configure _ctypes module (res=%d) or missing conffile=%s" % ( res, ffi_configfile ) > return False > > fficonfig = {}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268887
:
190575
|
190577
|
190579
|
190580
|
190582
|
190583
|
190585
|
190587
|
190588
|
190590
|
190591
|
190592
|
190639
|
190742
|
192741
|
311657
|
311659