diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-native/nohostlibs.patch')
| -rw-r--r-- | meta/recipes-devtools/python/python-native/nohostlibs.patch | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/meta/recipes-devtools/python/python-native/nohostlibs.patch b/meta/recipes-devtools/python/python-native/nohostlibs.patch index aed45c9913..09c3fb808a 100644 --- a/meta/recipes-devtools/python/python-native/nohostlibs.patch +++ b/meta/recipes-devtools/python/python-native/nohostlibs.patch | |||
| @@ -1,10 +1,14 @@ | |||
| 1 | Upstream-Status: Inappropriate [embedded specific] | 1 | Upstream-Status: Inappropriate [embedded specific] |
| 2 | 2 | ||
| 3 | Index: Python-2.6.6/setup.py | 3 | 2011/09/29 |
| 4 | rebased for python-2.7.2 | ||
| 5 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
| 6 | |||
| 7 | Index: Python-2.7.2/setup.py | ||
| 4 | =================================================================== | 8 | =================================================================== |
| 5 | --- Python-2.6.6.orig/setup.py | 9 | --- Python-2.7.2.orig/setup.py |
| 6 | +++ Python-2.6.6/setup.py | 10 | +++ Python-2.7.2/setup.py |
| 7 | @@ -356,8 +356,8 @@ class PyBuildExt(build_ext): | 11 | @@ -369,8 +369,8 @@ class PyBuildExt(build_ext): |
| 8 | 12 | ||
| 9 | def detect_modules(self): | 13 | def detect_modules(self): |
| 10 | # Ensure that /usr/local is always used | 14 | # Ensure that /usr/local is always used |
| @@ -12,16 +16,22 @@ Index: Python-2.6.6/setup.py | |||
| 12 | - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 16 | - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
| 13 | + #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | 17 | + #add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
| 14 | + #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 18 | + #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') |
| 19 | self.add_multiarch_paths() | ||
| 15 | 20 | ||
| 16 | # Add paths specified in the environment variables LDFLAGS and | 21 | # Add paths specified in the environment variables LDFLAGS and |
| 17 | # CPPFLAGS for header and library files. | 22 | @@ -407,15 +407,15 @@ class PyBuildExt(build_ext): |
| 18 | @@ -393,10 +393,10 @@ class PyBuildExt(build_ext): | ||
| 19 | for directory in reversed(options.dirs): | 23 | for directory in reversed(options.dirs): |
| 20 | add_dir_to_list(dir_list, directory) | 24 | add_dir_to_list(dir_list, directory) |
| 21 | 25 | ||
| 22 | - if os.path.normpath(sys.prefix) != '/usr': | 26 | - if os.path.normpath(sys.prefix) != '/usr' \ |
| 27 | - and not sysconfig.get_config_var('PYTHONFRAMEWORK'): | ||
| 28 | + #if os.path.normpath(sys.prefix) != '/usr' \ | ||
| 29 | + #and not sysconfig.get_config_var('PYTHONFRAMEWORK'): | ||
| 30 | # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework | ||
| 31 | # (PYTHONFRAMEWORK is set) to avoid # linking problems when | ||
| 32 | # building a framework with different architectures than | ||
| 33 | # the one that is currently installed (issue #7473) | ||
| 23 | - add_dir_to_list(self.compiler.library_dirs, | 34 | - add_dir_to_list(self.compiler.library_dirs, |
| 24 | + | ||
| 25 | + add_dir_to_list(self.compiler.library_dirs, | 35 | + add_dir_to_list(self.compiler.library_dirs, |
| 26 | sysconfig.get_config_var("LIBDIR")) | 36 | sysconfig.get_config_var("LIBDIR")) |
| 27 | - add_dir_to_list(self.compiler.include_dirs, | 37 | - add_dir_to_list(self.compiler.include_dirs, |
| @@ -29,7 +39,7 @@ Index: Python-2.6.6/setup.py | |||
| 29 | sysconfig.get_config_var("INCLUDEDIR")) | 39 | sysconfig.get_config_var("INCLUDEDIR")) |
| 30 | 40 | ||
| 31 | try: | 41 | try: |
| 32 | @@ -407,11 +407,8 @@ class PyBuildExt(build_ext): | 42 | @@ -426,11 +426,8 @@ class PyBuildExt(build_ext): |
| 33 | # lib_dirs and inc_dirs are used to search for files; | 43 | # lib_dirs and inc_dirs are used to search for files; |
| 34 | # if a file is found in one of those directories, it can | 44 | # if a file is found in one of those directories, it can |
| 35 | # be assumed that no additional -I,-L directives are needed. | 45 | # be assumed that no additional -I,-L directives are needed. |
| @@ -43,13 +53,15 @@ Index: Python-2.6.6/setup.py | |||
| 43 | exts = [] | 53 | exts = [] |
| 44 | missing = [] | 54 | missing = [] |
| 45 | 55 | ||
| 46 | @@ -661,8 +658,7 @@ class PyBuildExt(build_ext): | 56 | @@ -676,9 +673,8 @@ class PyBuildExt(build_ext): |
| 47 | pass # Issue 7384: Already linked against curses or tinfo. | 57 | pass # Issue 7384: Already linked against curses or tinfo. |
| 48 | elif curses_library: | 58 | elif curses_library: |
| 49 | readline_libs.append(curses_library) | 59 | readline_libs.append(curses_library) |
| 50 | - elif self.compiler.find_library_file(lib_dirs + | 60 | - elif self.compiler.find_library_file(lib_dirs + |
| 51 | - ['/usr/lib/termcap'], | 61 | - ['/usr/lib/termcap'], |
| 62 | - 'termcap'): | ||
| 52 | + elif self.compiler.find_library_file(lib_dirs, | 63 | + elif self.compiler.find_library_file(lib_dirs, |
| 53 | 'termcap'): | 64 | + 'termcap'): |
| 54 | readline_libs.append('termcap') | 65 | readline_libs.append('termcap') |
| 55 | exts.append( Extension('readline', ['readline.c'], | 66 | exts.append( Extension('readline', ['readline.c'], |
| 67 | library_dirs=['/usr/lib/termcap'], | ||
