Date: Sun, 30 Mar 2014 15:08:53 +0200 (CEST) From: Christoph Moench-Tegeder <cmt@burggraben.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/188077: lang/ruby21 : fix build with current readline Message-ID: <20140330130853.844E0301CA@elch.exwg.net> Resent-Message-ID: <201403301310.s2UDA0G8022579@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 188077 >Category: ports >Synopsis: lang/ruby21 : fix build with current readline >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 30 13:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Christoph Moench-Tegeder >Release: FreeBSD 10.0-RELEASE amd64 >Organization: >Environment: System: FreeBSD elch.exwg.net 10.0-RELEASE FreeBSD 10.0-RELEASE #2 r260689: Wed Jan 15 18:32:44 CET 2014 cmt@elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64 ruby-2.1.1_1,1 lang/ruby21 readline-6.3_1 devel/readline >Description: Ruby 2.1 fails to build in it's readline extension, as it still uses the very-old-style "Function" type (instead of rl_hook_func_t). This does not affect ruby 1.9 nor ruby 2.0. >How-To-Repeat: >Fix: Patch obtained from upstream: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/readline/readline.c?r1=43458&r2=45225 Drop this into lang/ruby21/files/ : --- ext/readline/readline.c.orig 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; Regards, Christoph >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140330130853.844E0301CA>