[python/f14/master] fix test_structmember on 64bit-bigendian (patch 127)

dmalcolm dmalcolm at fedoraproject.org
Mon Sep 27 17:49:06 UTC 2010


commit 27dbbc11cce9c416e648bd077acb87bbb4683277
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Mon Sep 27 13:47:27 2010 -0400

    fix test_structmember on 64bit-bigendian (patch 127)

 fix-test_structmember-on-64bit-bigendian.patch |   21 +++++++++++++++++++++
 python.spec                                    |   10 +++++++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/fix-test_structmember-on-64bit-bigendian.patch b/fix-test_structmember-on-64bit-bigendian.patch
new file mode 100644
index 0000000..a250dea
--- /dev/null
+++ b/fix-test_structmember-on-64bit-bigendian.patch
@@ -0,0 +1,21 @@
+Index: Modules/_testcapimodule.c
+===================================================================
+--- Modules/_testcapimodule.c	(revision 85001)
++++ Modules/_testcapimodule.c	(working copy)
+@@ -5,6 +5,7 @@
+  * standard Python regression test, via Lib/test/test_capi.py.
+  */
+ 
++#define PY_SSIZE_T_CLEAN
+ #include "Python.h"
+ #include <float.h>
+ #include "structmember.h"
+@@ -593,7 +594,7 @@
+ {
+     PyObject *tuple, *obj;
+     Py_UNICODE *value;
+-    int len;
++    Py_ssize_t len;
+ 
+     /* issue4122: Undefined reference to _Py_ascii_whitespace on Windows */
+     /* Just use the macro and check that it compiles */
diff --git a/python.spec b/python.spec
index a3f5a72..c9a5ac6 100644
--- a/python.spec
+++ b/python.spec
@@ -94,7 +94,7 @@ Summary: An interpreted, interactive, object-oriented programming language
 Name: %{python}
 # Remember to also rebase python-docs when changing this:
 Version: 2.7
-Release: 8%{?dist}.2
+Release: 8%{?dist}.3
 License: Python
 Group: Development/Languages
 Provides: python-abi = %{pybasever}
@@ -439,6 +439,10 @@ Patch125: less-verbose-COUNT_ALLOCS.patch
 # Sent upstream as http://bugs.python.org/issue9687 (rhbz#626756)
 Patch126: fix-dbm_contains-on-64bit-bigendian.patch
 
+# Fix test_structmember on big-endian 64-bit
+# Sent upstream as http://bugs.python.org/issue9960
+Patch127: fix-test_structmember-on-64bit-bigendian.patch
+
 # This is the generated patch to "configure"; see the description of
 #   %{regenerate_autotooling_patch}
 # above:
@@ -688,6 +692,7 @@ popd
 %patch124 -p1
 %patch125 -p1 -b .less-verbose-COUNT_ALLOCS
 %patch126 -p0 -b .fix-dbm_contains-on-64bit-bigendian
+%patch127 -p0 -b .fix-test_structmember-on-64bit-bigendian
 
 # This shouldn't be necesarry, but is right now (2.2a3)
 find -name "*~" |xargs rm -f
@@ -1634,6 +1639,9 @@ rm -fr %{buildroot}
 # payload file would be unpackaged)
 
 %changelog
+* Mon Sep 27 2010 David Malcolm <dmalcolm at redhat.com> - 2.7-8.3
+- fix test_structmember on 64bit-bigendian (patch 127)
+
 * Fri Sep 24 2010 David Malcolm <dmalcolm at redhat.com> - 2.7-8.2
 - fix dbm_contains on 64bit-bigendian (patch 126; rhbz#626756)
 


More information about the scm-commits mailing list