ports/187928: lang/ruby{20,21}: support for readline 6.3

Shin-ya Murakami murashin at gfd-dennou.org
Tue Mar 25 11:30:01 UTC 2014


>Number:         187928
>Category:       ports
>Synopsis:       lang/ruby{20,21}: support for readline 6.3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 25 11:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Shin-ya Murakami
>Release:        FreeBSD 11.0-CURRENT amd64
>Organization:
GFD-Dennou Club
>Environment:
System: FreeBSD phase 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r263062: Sat Mar 15 02:00:48 JST 2014 murashin at phase:/usr/obj/usr/src/sys/PHASE amd64

>Description:
	build of lang/ruby{20,21} were broken because of readline update.
	See https://bugs.ruby-lang.org/issues/9578 for details.
	The attached patch is available for both of lang/ruby{20,21}.
>How-To-Repeat:
	just type make in the ports dirs with readline-6.3.
>Fix:

--- ruby21.diff begins here ---
diff -urN /usr/ports/lang/ruby21/files/patch-ext_readline.c ruby21/files/patch-ext_readline.c
--- /usr/ports/lang/ruby21/files/patch-ext_readline.c	1970-01-01 09:00:00.000000000 +0900
+++ ruby21/files/patch-ext_readline.c	2014-03-25 18:20:14.260403000 +0900
@@ -0,0 +1,12 @@
+--- ext/readline/readline.c	2013/10/29 03:09:00	43458
++++ ext/readline/readline.c	2014/03/01 07:19:08	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;
+
--- ruby21.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list