diff --git a/python-base.changes b/python-base.changes index e93ca98..4abbe3b 100644 --- a/python-base.changes +++ b/python-base.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 18 08:23:34 UTC 2010 - coolo@novell.com + +- add patch from http://psf.upfronthosting.co.za/roundup/tracker/issue9960 + to fix build on ppc64 + ------------------------------------------------------------------- Fri Oct 1 13:41:30 UTC 2010 - jmatejek@novell.com diff --git a/python-base.spec b/python-base.spec index 8d28afd..8070677 100644 --- a/python-base.spec +++ b/python-base.spec @@ -51,6 +51,7 @@ Patch8: sparc_longdouble.patch Patch9: python-2.7-acrequire.patch Patch10: urllib2-AbstractBasicAuthHandler_reset_attr.diff Patch11: smtpd-dos.patch +Patch12: http://psf.upfronthosting.co.za/roundup/tracker/file19029/python-test_structmembers.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define python_version %(echo %{version} | head -c 3) @@ -141,6 +142,7 @@ Authors: %patch9 -p1 %patch10 %patch11 +%patch12 -p0 # some cleanup find . -name .cvsignore -type f -print0 | xargs -0 rm -f diff --git a/python-test_structmembers.patch b/python-test_structmembers.patch new file mode 100644 index 0000000..435fb22 --- /dev/null +++ b/python-test_structmembers.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 + #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 */