python: removed obsolete patch

This commit is contained in:
Fredrik Rinnestam 2014-06-04 23:21:40 +02:00
parent 752481feaa
commit 4b0edbd1a9
3 changed files with 1 additions and 32 deletions

View File

@ -1,3 +1,2 @@
41f7348b348e3f72fcfb4f4d76701352 Python-2.7.7.tar.xz
387d5f6d00d2be01ecb87216cac0f88c pyconfig.h
e843269080db424430719b3040073531 python-2.7.6-readline-6.3.patch

View File

@ -7,14 +7,11 @@ name=python
version=2.7.7
release=1
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
pyconfig.h $name-$version-readline-6.3.patch)
pyconfig.h)
build () {
cd Python-$version
# http://bugs.python.org/issue20374
patch -p1 -i $SRC/$name-$version-readline-6.3.patch
# set OPT to the python default without -O3
# our CFLAGS are used as well
OPT="-Wall -Wstrict-prototypes -fwrapv" \

View File

@ -1,27 +0,0 @@
# HG changeset patch
# User Benjamin Peterson <benjamin@python.org>
# Date 1390541532 18000
# Node ID 79b82ebc4fd17fda401c32840da1da0577e3c73e
# Parent f28b60141c5c417111670a22b223f0c411136c7b
use new readline function types (closes #20374)
diff --git a/Modules/readline.c b/Modules/readline.c
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -911,12 +911,12 @@ setup_readline(void)
rl_bind_key_in_map ('\t', rl_complete, emacs_meta_keymap);
rl_bind_key_in_map ('\033', rl_complete, emacs_meta_keymap);
/* Set our hook functions */
- rl_startup_hook = (Function *)on_startup_hook;
+ rl_startup_hook = (rl_hook_func_t *)on_startup_hook;
#ifdef HAVE_RL_PRE_INPUT_HOOK
- rl_pre_input_hook = (Function *)on_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)on_pre_input_hook;
#endif
/* Set our completion function */
- rl_attempted_completion_function = (CPPFunction *)flex_complete;
+ rl_attempted_completion_function = (rl_completion_func_t *)flex_complete;
/* Set Python word break characters */
completer_word_break_characters =
rl_completer_word_break_characters =