summaryrefslogtreecommitdiff
path: root/packages/python/python-2.5.1/autohell.patch
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-08-15 21:13:33 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-08-15 21:13:33 +0000
commit3e2b290abea4b8795433fd8753cd15bdea04c10c (patch)
tree0877ec79d504cb85d8df07ac92fe3f2a2949b6d8 /packages/python/python-2.5.1/autohell.patch
parentf4cfe8c0ebc9ae2af5416b608179feae63e2e5bc (diff)
parent1c30b9017d9e002ec685993b939c102494a66778 (diff)
merge of 'd1d1db9026fcb0ce740b8c243f2bfc92eeac4c5d'
and 'd969b9d6bcaf1b8db0c0e85d4ce95524a579055b'
Diffstat (limited to 'packages/python/python-2.5.1/autohell.patch')
-rw-r--r--packages/python/python-2.5.1/autohell.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/packages/python/python-2.5.1/autohell.patch b/packages/python/python-2.5.1/autohell.patch
new file mode 100644
index 0000000000..e2d63145be
--- /dev/null
+++ b/packages/python/python-2.5.1/autohell.patch
@@ -0,0 +1,49 @@
+#
+# FIXME: Don't simply rip this test out... add getting it from cache
+#
+Index: Python-2.5.1/configure.in
+===================================================================
+--- Python-2.5.1.orig/configure.in
++++ Python-2.5.1/configure.in
+@@ -3367,41 +3367,6 @@ else
+ AC_MSG_RESULT(no)
+ fi
+
+-AC_MSG_CHECKING(for %zd printf() format support)
+-AC_TRY_RUN([#include <stdio.h>
+-#include <stddef.h>
+-#include <string.h>
+-
+-int main()
+-{
+- char buffer[256];
+-
+-#ifdef HAVE_SSIZE_T
+-typedef ssize_t Py_ssize_t;
+-#elif SIZEOF_VOID_P == SIZEOF_LONG
+-typedef long Py_ssize_t;
+-#else
+-typedef int Py_ssize_t;
+-#endif
+-
+- if(sprintf(buffer, "%zd", (size_t)123) < 0)
+- return 1;
+-
+- if (strcmp(buffer, "123"))
+- return 1;
+-
+- if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
+- return 1;
+-
+- if (strcmp(buffer, "-123"))
+- return 1;
+-
+- return 0;
+-}],
+-[AC_MSG_RESULT(yes)
+- AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
+- AC_MSG_RESULT(no))
+-
+ AC_CHECK_TYPE(socklen_t,,
+ AC_DEFINE(socklen_t,int,
+ Define to `int' if <sys/socket.h> does not define.),[