From 6e042a2b22f6d1efe7cba71565a2ced6a311fdeb Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 21 Apr 2015 10:20:26 +0300 Subject: [PATCH 1/2] python3: replace with libncursesw with libncurses Signed-off-by: Alexandru Ardelean --- lang/python3/files/python3-package-ncurses.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python3/files/python3-package-ncurses.mk b/lang/python3/files/python3-package-ncurses.mk index 74bedfe2f..7e703b3dd 100644 --- a/lang/python3/files/python3-package-ncurses.mk +++ b/lang/python3/files/python3-package-ncurses.mk @@ -8,7 +8,7 @@ define Package/python3-ncurses $(call Package/python3/Default) TITLE:=Python $(PYTHON3_VERSION) ncurses module - DEPENDS:=+python3-light +libncursesw + DEPENDS:=+python3-light +libncurses endef $(eval $(call Py3BasePackage,python3-ncurses, \ From 9fc15af80aaaa6f05c16de5b9c0a22ae81cafeec Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Tue, 21 Apr 2015 10:22:27 +0300 Subject: [PATCH 2/2] python3: do not prefer ncursesw over ncurses Signed-off-by: Alexandru Ardelean --- .../patches/011-do-not-prefer-ncursesw.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lang/python3/patches/011-do-not-prefer-ncursesw.patch diff --git a/lang/python3/patches/011-do-not-prefer-ncursesw.patch b/lang/python3/patches/011-do-not-prefer-ncursesw.patch new file mode 100644 index 000000000..c02322534 --- /dev/null +++ b/lang/python3/patches/011-do-not-prefer-ncursesw.patch @@ -0,0 +1,15 @@ +diff --git a/setup.py b/setup.py +index 2779658..b6d3d61 100644 +--- a/setup.py ++++ b/setup.py +@@ -693,8 +693,8 @@ class PyBuildExt(build_ext): + # use the same library for the readline and curses modules. + if 'curses' in readline_termcap_library: + curses_library = readline_termcap_library +- elif self.compiler.find_library_file(lib_dirs, 'ncursesw'): +- curses_library = 'ncursesw' ++ #elif self.compiler.find_library_file(lib_dirs, 'ncursesw'): ++ # curses_library = 'ncursesw' + elif self.compiler.find_library_file(lib_dirs, 'ncurses'): + curses_library = 'ncurses' + elif self.compiler.find_library_file(lib_dirs, 'curses'):