python3: do not prefer ncursesw over ncurses 1157/head
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 21 Apr 2015 07:22:27 +0000 (10:22 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 21 Apr 2015 07:22:27 +0000 (10:22 +0300)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python3/patches/011-do-not-prefer-ncursesw.patch [new file with mode: 0644]

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 (file)
index 0000000..c023225
--- /dev/null
@@ -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'):