Группа :: Разработка/Python
Пакет: python
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: Python-2.3.2-alt-tinfo.patch
diff -urN Python-2.3.2.old/configure.in Python-2.3.2/configure.in
--- Python-2.3.2.old/configure.in 2003-11-21 22:14:57 +0300
+++ Python-2.3.2/configure.in 2003-11-21 22:39:57 +0300
@@ -2794,12 +2794,12 @@
# check for readline 4.0
AC_CHECK_LIB(readline, rl_pre_input_hook,
AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK, 1,
- [Define if you have readline 4.0]), , -ltermcap)
+ [Define if you have readline 4.0]), , -ltinfo)
# check for readline 4.2
AC_CHECK_LIB(readline, rl_completion_matches,
AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1,
- [Define if you have readline 4.2]), , -ltermcap)
+ [Define if you have readline 4.2]), , -ltinfo)
AC_MSG_CHECKING(for broken nice())
AC_CACHE_VAL(ac_cv_broken_nice, [
diff -urN Python-2.3.2.old/setup.py Python-2.3.2/setup.py
--- Python-2.3.2.old/setup.py 2003-11-21 22:14:57 +0300
+++ Python-2.3.2/setup.py 2003-11-21 22:45:45 +0300
@@ -408,6 +408,9 @@
if self.compiler.find_library_file(lib_dirs, 'readline'):
readline_libs = ['readline']
if self.compiler.find_library_file(lib_dirs,
+ 'tinfo'):
+ readline_libs.append('tinfo')
+ elif self.compiler.find_library_file(lib_dirs,
'ncurses'):
readline_libs.append('ncurses')
elif self.compiler.find_library_file(lib_dirs, 'curses'):