ruby: apply patch to build with readline 6.3

This commit is contained in:
Juergen Daubert 2014-03-27 17:46:37 +01:00
parent ffde6d2f11
commit ec5f60af14
3 changed files with 22 additions and 2 deletions

View File

@ -1 +1,2 @@
5df0d715820deec596984e90feb6a999 ruby-2.1.1-readline-6.3.patch
53edc33b2f590ecdd9f6a344b9d92d0d ruby-2.1.1.tar.bz2

View File

@ -5,12 +5,15 @@
name=ruby
version=2.1.1
release=1
source=(ftp://ftp.ruby-lang.org/pub/$name/2.1/$name-$version.tar.bz2)
release=2
source=(ftp://ftp.ruby-lang.org/pub/$name/2.1/$name-$version.tar.bz2
$name-$version-readline-6.3.patch)
build () {
cd $name-$version
patch -p0 -i $SRC/$name-$version-readline-6.3.patch
./configure --prefix=/usr \
--mandir=/usr/man \
--enable-shared \

View File

@ -0,0 +1,16 @@
# https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/45225
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 45224)
+++ ext/readline/readline.c (revision 45225)
@@ -1974,7 +1974,7 @@
rl_attempted_completion_function = readline_attempted_completion_function;
#if defined(HAVE_RL_PRE_INPUT_HOOK)
- rl_pre_input_hook = (Function *)readline_pre_input_hook;
+ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
#endif
#ifdef HAVE_RL_CATCH_SIGNALS
rl_catch_signals = 0;