diff options
Diffstat (limited to 'meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch')
-rw-r--r-- | meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch b/meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch index 2b62db3826..e6d6c65bbe 100644 --- a/meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch +++ b/meta/recipes-devtools/python/python/check-if-target-is-64b-not-host.patch | |||
@@ -11,11 +11,11 @@ Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> | |||
11 | 11 | ||
12 | Upstream-Status: Pending | 12 | Upstream-Status: Pending |
13 | 13 | ||
14 | Index: Python-2.7.2/setup.py | 14 | Index: Python-2.7.11/setup.py |
15 | =================================================================== | 15 | =================================================================== |
16 | --- Python-2.7.2.orig/setup.py 2012-03-25 01:10:41.540163187 +0200 | 16 | --- Python-2.7.11.orig/setup.py |
17 | +++ Python-2.7.2/setup.py 2012-03-25 01:26:06.092539990 +0200 | 17 | +++ Python-2.7.11/setup.py |
18 | @@ -23,6 +23,21 @@ | 18 | @@ -35,6 +35,21 @@ COMPILED_WITH_PYDEBUG = ('--with-pydebug |
19 | # This global variable is used to hold the list of modules to be disabled. | 19 | # This global variable is used to hold the list of modules to be disabled. |
20 | disabled_module_list = [] | 20 | disabled_module_list = [] |
21 | 21 | ||
@@ -37,16 +37,16 @@ Index: Python-2.7.2/setup.py | |||
37 | def add_dir_to_list(dirlist, dir): | 37 | def add_dir_to_list(dirlist, dir): |
38 | """Add the directory 'dir' to the list 'dirlist' (at the front) if | 38 | """Add the directory 'dir' to the list 'dirlist' (at the front) if |
39 | 1) 'dir' is not already in 'dirlist' | 39 | 1) 'dir' is not already in 'dirlist' |
40 | @@ -628,7 +643,7 @@ | 40 | @@ -716,7 +731,7 @@ class PyBuildExt(build_ext): |
41 | exts.append( Extension('audioop', ['audioop.c']) ) | 41 | exts.append( Extension('audioop', ['audioop.c']) ) |
42 | 42 | ||
43 | # Disabled on 64-bit platforms | 43 | # Disabled on 64-bit platforms |
44 | - if sys.maxint != 9223372036854775807L: | 44 | - if sys.maxsize != 9223372036854775807L: |
45 | + if not target_is_64bit_platform(): | 45 | + if not target_is_64bit_platform(): |
46 | # Operations on images | 46 | # Operations on images |
47 | exts.append( Extension('imageop', ['imageop.c']) ) | 47 | exts.append( Extension('imageop', ['imageop.c']) ) |
48 | else: | 48 | else: |
49 | @@ -1418,7 +1433,7 @@ | 49 | @@ -1545,7 +1560,7 @@ class PyBuildExt(build_ext): |
50 | missing.append('_codecs_%s' % loc) | 50 | missing.append('_codecs_%s' % loc) |
51 | 51 | ||
52 | # Dynamic loading module | 52 | # Dynamic loading module |
@@ -54,4 +54,4 @@ Index: Python-2.7.2/setup.py | |||
54 | + if not target_is_64bit_platform(): | 54 | + if not target_is_64bit_platform(): |
55 | # This requires sizeof(int) == sizeof(long) == sizeof(char*) | 55 | # This requires sizeof(int) == sizeof(long) == sizeof(char*) |
56 | dl_inc = find_file('dlfcn.h', [], inc_dirs) | 56 | dl_inc = find_file('dlfcn.h', [], inc_dirs) |
57 | if (dl_inc is not None) and (platform not in ['atheos']): | 57 | if (dl_inc is not None) and (host_platform not in ['atheos']): |