From 1c7d6584a7811b7785ae5c1e378f14b5ba0971cf Mon Sep 17 00:00:00 2001 From: takeshi_hoshina Date: Mon, 2 Nov 2020 11:07:33 +0900 Subject: basesystem-jj recipes --- .../06-avoid_usr_lib_termcap_path_in_linking.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 external/meta-python2/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch (limited to 'external/meta-python2/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch') diff --git a/external/meta-python2/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch b/external/meta-python2/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch new file mode 100644 index 00000000..435b3190 --- /dev/null +++ b/external/meta-python2/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch @@ -0,0 +1,35 @@ +Upstream-Status: Pending + +The poison directories patch has detected library path issue while +compiling the python in cross environment, as seen bellow. + +warning: library search path "/usr/lib/termcap" is unsafe for cross-compilation + +This Patch fixes this issue in the python build environment. +11 Oct 2010 +Nitin A Kamble + +2011/09/29 +Rebased for python 2.7.2 +Signed-off-by: Nitin A Kamble + +Signed-off-by: Paul Eggleton + +diff --git a/setup.py b/setup.py +index 67eda74..59c537e 100644 +--- a/setup.py ++++ b/setup.py +@@ -761,12 +761,10 @@ class PyBuildExt(build_ext): + pass # Issue 7384: Already linked against curses or tinfo. + elif curses_library: + readline_libs.append(curses_library) +- elif self.compiler.find_library_file(lib_dirs + +- ['/usr/lib/termcap'], ++ elif self.compiler.find_library_file(lib_dirs, + 'termcap'): + readline_libs.append('termcap') + exts.append( Extension('readline', ['readline.c'], +- library_dirs=['/usr/lib/termcap'], + extra_link_args=readline_extra_link_args, + libraries=readline_libs) ) + else: -- cgit 1.2.3-korg