ruby: apply patch to build with readline 6.3
This commit is contained in:
parent
ffde6d2f11
commit
ec5f60af14
|
@ -1 +1,2 @@
|
|||
5df0d715820deec596984e90feb6a999 ruby-2.1.1-readline-6.3.patch
|
||||
53edc33b2f590ecdd9f6a344b9d92d0d ruby-2.1.1.tar.bz2
|
||||
|
|
|
@ -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 \
|
||||
|
|
16
ruby/ruby-2.1.1-readline-6.3.patch
Normal file
16
ruby/ruby-2.1.1-readline-6.3.patch
Normal 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;
|
Loading…
Reference in New Issue
Block a user