summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/02-remove-test-for-cross.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python/02-remove-test-for-cross.patch')
-rw-r--r--meta/recipes-devtools/python/python/02-remove-test-for-cross.patch108
1 files changed, 0 insertions, 108 deletions
diff --git a/meta/recipes-devtools/python/python/02-remove-test-for-cross.patch b/meta/recipes-devtools/python/python/02-remove-test-for-cross.patch
deleted file mode 100644
index 9b164d5df7..0000000000
--- a/meta/recipes-devtools/python/python/02-remove-test-for-cross.patch
+++ /dev/null
@@ -1,108 +0,0 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3# OpenEmbedded prepopulates the autotools site cache, so if this
4# would be using AC_TRY_CACHE, we could patch it in a more sane way
5# Alas, I don't have enough autotalent to do that.
6#
7# Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de>
8Index: Python-2.6.1/configure.in
9===================================================================
10--- Python-2.6.5.orig/configure.in 2010-07-06 04:37:09.000000000 -0700
11+++ Python-2.6.5/configure.in 2010-07-06 04:40:18.000000000 -0700
12@@ -2697,50 +2697,6 @@
13 AC_CHECK_LIB(resolv, inet_aton)
14 )
15
16-# On Tru64, chflags seems to be present, but calling it will
17-# exit Python
18-AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl
19-AC_TRY_RUN([[
20-#include <sys/stat.h>
21-#include <unistd.h>
22-int main(int argc, char*argv[])
23-{
24- if(chflags(argv[0], 0) != 0)
25- return 1;
26- return 0;
27-}
28-]], ac_cv_have_chflags=yes,
29- ac_cv_have_chflags=no,
30- ac_cv_have_chflags=cross)
31-])
32-if test "$ac_cv_have_chflags" = cross ; then
33- AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"])
34-fi
35-if test "$ac_cv_have_chflags" = yes ; then
36- AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
37-fi
38-
39-AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl
40-AC_TRY_RUN([[
41-#include <sys/stat.h>
42-#include <unistd.h>
43-int main(int argc, char*argv[])
44-{
45- if(lchflags(argv[0], 0) != 0)
46- return 1;
47- return 0;
48-}
49-]], ac_cv_have_lchflags=yes,
50- ac_cv_have_lchflags=no,
51- ac_cv_have_lchflags=cross)
52-])
53-if test "$ac_cv_have_lchflags" = cross ; then
54- AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"])
55-fi
56-if test "$ac_cv_have_lchflags" = yes ; then
57- AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
58-fi
59-
60 dnl Check if system zlib has *Copy() functions
61 dnl
62 dnl On MacOSX the linker will search for dylibs on the entire linker path
63@@ -3844,45 +3800,6 @@
64 AC_MSG_RESULT(no)
65 fi
66
67-AC_MSG_CHECKING(for %zd printf() format support)
68-AC_TRY_RUN([#include <stdio.h>
69-#include <stddef.h>
70-#include <string.h>
71-
72-#ifdef HAVE_SYS_TYPES_H
73-#include <sys/types.h>
74-#endif
75-
76-#ifdef HAVE_SSIZE_T
77-typedef ssize_t Py_ssize_t;
78-#elif SIZEOF_VOID_P == SIZEOF_LONG
79-typedef long Py_ssize_t;
80-#else
81-typedef int Py_ssize_t;
82-#endif
83-
84-int main()
85-{
86- char buffer[256];
87-
88- if(sprintf(buffer, "%zd", (size_t)123) < 0)
89- return 1;
90-
91- if (strcmp(buffer, "123"))
92- return 1;
93-
94- if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
95- return 1;
96-
97- if (strcmp(buffer, "-123"))
98- return 1;
99-
100- return 0;
101-}],
102-[AC_MSG_RESULT(yes)
103- AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
104- AC_MSG_RESULT(no))
105-
106 AC_CHECK_TYPE(socklen_t,,
107 AC_DEFINE(socklen_t,int,
108 Define to `int' if <sys/socket.h> does not define.),[