Accepting request 43604 from devel:languages:python:Factory

Copy from devel:languages:python:Factory/python based on submit request 43604 from user matejcik

OBS-URL: https://build.opensuse.org/request/show/43604
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=51
This commit is contained in:
OBS User autobuild
2010-07-23 15:08:24 +00:00
committed by Git OBS Bridge
parent 61aa2e864b
commit 2b70f7ad6c
6 changed files with 44 additions and 6 deletions

23
sparc_longdouble.patch Normal file
View File

@@ -0,0 +1,23 @@
Python ticket 6029
==== //tools/python/2.6.2/src/base/Modules/_ctypes/libffi/src/sparc/ffi.c#1 - /home/build/clifford/gpdb/tools/python/2.6.2/src/base/Modules/_ctypes/libffi/src/sparc/ffi.c ====
---
Modules/_ctypes/libffi/src/sparc/ffi.c | 5 +++++
1 file changed, 5 insertions(+)
Index: Python-2.6.5/Modules/_ctypes/libffi/src/sparc/ffi.c
===================================================================
--- Python-2.6.5.orig/Modules/_ctypes/libffi/src/sparc/ffi.c
+++ Python-2.6.5/Modules/_ctypes/libffi/src/sparc/ffi.c
@@ -586,6 +586,11 @@ ffi_closure_sparc_inner_v9(ffi_closure *
}
else
{
+#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
+ /* SparcV9 long double is 16-byte aligned; skip arg if necessary */
+ if (arg_types[i]->type == FFI_TYPE_LONGDOUBLE && (argn & 1))
+ argn++;
+#endif
/* Right-justify. */
argn += ALIGN(arg_types[i]->size, FFI_SIZEOF_ARG) / FFI_SIZEOF_ARG;