Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 18:26:09 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349167 - in head/lang/gcl: . files
Message-ID:  <201403251826.s2PIQ9oA026807@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Tue Mar 25 18:26:09 2014
New Revision: 349167
URL: http://svnweb.freebsd.org/changeset/ports/349167
QAT: https://qat.redports.org/buildarchive/r349167/

Log:
  Import upstream git commit fe57756a5565ca1de89b976a8f2abd6315b1eb65 to
  fix compilation with devel/readline 6.3.
  
  PR:		ports/187730
  Submitted by:	Mamoru Iwaki <1wkmmr@gmail.com>

Added:
  head/lang/gcl/files/patch-o-gcl_readline.d   (contents, props changed)
Modified:
  head/lang/gcl/Makefile

Modified: head/lang/gcl/Makefile
==============================================================================
--- head/lang/gcl/Makefile	Tue Mar 25 18:19:44 2014	(r349166)
+++ head/lang/gcl/Makefile	Tue Mar 25 18:26:09 2014	(r349167)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gcl
 PORTVERSION=	2.6.10
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang tcl tk
 MASTER_SITES=	GNU
 

Added: head/lang/gcl/files/patch-o-gcl_readline.d
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/gcl/files/patch-o-gcl_readline.d	Tue Mar 25 18:26:09 2014	(r349167)
@@ -0,0 +1,20 @@
+--- o/gcl_readline.d.orig
++++ o/gcl_readline.d
+@@ -221,7 +221,7 @@
+    in case we want to do some simple parsing.  Return the array of matches,
+    or NULL if there aren't any. */
+ /* extern char **rl_completion_matches(char *,char *(*)(char *,int)); */
+-static char **rl_completion(char *text, int start, int end) {
++static char **rl_completion(const char *text, int start, int end) {
+ 	return rl_completion_matches(text, (rl_compentry_func_t *)rl_completion_words_new);
+ }
+ #endif
+@@ -469,7 +469,7 @@
+   char *pn="GCL",*cp=getenv("TERM");
+   rl_readline_name=pn;
+ #ifdef RL_COMPLETION
+-  rl_attempted_completion_function = (CPPFunction *)rl_completion;
++  rl_attempted_completion_function = rl_completion;
+ #endif		
+   if (isatty(0) && (!cp || strcmp(cp,"dumb")))
+     readline_on=1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403251826.s2PIQ9oA026807>