Mon Apr 21 18:17:35 2014 UTC ()
Fix readline use.
(joerg)
diff -r1.19 -r1.20 pkgsrc/math/genius/distinfo
diff -r0 -r1.1 pkgsrc/math/genius/patches/patch-src_genius-readline-helper.c
diff -r0 -r1.1 pkgsrc/math/genius/patches/patch-src_inter.c
--- pkgsrc/math/genius/distinfo 2013/10/27 20:35:48 1.19
+++ pkgsrc/math/genius/distinfo 2014/04/21 18:17:35 1.20
| @@ -1,9 +1,11 @@ | | | @@ -1,9 +1,11 @@ |
1 | $NetBSD: distinfo,v 1.19 2013/10/27 20:35:48 joerg Exp $ | | 1 | $NetBSD: distinfo,v 1.20 2014/04/21 18:17:35 joerg Exp $ |
2 | | | 2 | |
3 | SHA1 (genius-1.0.17.tar.gz) = 884a12db62de68aa90b078ba9baa124f73c44f51 | | 3 | SHA1 (genius-1.0.17.tar.gz) = 884a12db62de68aa90b078ba9baa124f73c44f51 |
4 | RMD160 (genius-1.0.17.tar.gz) = 17b6fa3fddf65f4bab8e0d7721f85ea8a666d838 | | 4 | RMD160 (genius-1.0.17.tar.gz) = 17b6fa3fddf65f4bab8e0d7721f85ea8a666d838 |
5 | Size (genius-1.0.17.tar.gz) = 3960909 bytes | | 5 | Size (genius-1.0.17.tar.gz) = 3960909 bytes |
6 | SHA1 (patch-configure) = a1431b1e521c35eea3df1acc16415806b54f58e7 | | 6 | SHA1 (patch-configure) = a1431b1e521c35eea3df1acc16415806b54f58e7 |
7 | SHA1 (patch-configure.in) = 73fcc7ba580b7f575bd16fdcf12fe81518904379 | | 7 | SHA1 (patch-configure.in) = 73fcc7ba580b7f575bd16fdcf12fe81518904379 |
8 | SHA1 (patch-gtkextra_gtkplot.c) = 3ea37b0a15454b5d81d62b93dd4a70828259d97f | | 8 | SHA1 (patch-gtkextra_gtkplot.c) = 3ea37b0a15454b5d81d62b93dd4a70828259d97f |
9 | SHA1 (patch-gtkextra_gtkplotsurface.c) = 5f1e98dc7268ebef3a5edf04496a92b4f620114c | | 9 | SHA1 (patch-gtkextra_gtkplotsurface.c) = 5f1e98dc7268ebef3a5edf04496a92b4f620114c |
| | | 10 | SHA1 (patch-src_genius-readline-helper.c) = 957f2241399a9092e6634b3c105ce7e487bfca07 |
| | | 11 | SHA1 (patch-src_inter.c) = 619a0f553acc0c30960cebfc4fa10146baac5dc4 |
$NetBSD: patch-src_genius-readline-helper.c,v 1.1 2014/04/21 18:17:35 joerg Exp $
--- src/genius-readline-helper.c.orig 2014-04-20 18:20:05.000000000 +0000
+++ src/genius-readline-helper.c
@@ -104,7 +104,7 @@ plugin_generator (const char *text, int
/* Note: keep in sync with inter.c */
/* FIXME: make this common */
static char **
-tab_completion (char *text, int start, int end)
+tab_completion (const char *text, int start, int end)
{
char *p;
for(p=rl_line_buffer;*p==' ' || *p=='\t';p++)
@@ -182,8 +182,7 @@ main(int argc, char *argv[])
rl_catch_sigwinch = 1;
rl_terminal_name = "xterm";
rl_readline_name = "Genius";
- rl_attempted_completion_function =
- (CPPFunction *)tab_completion;
+ rl_attempted_completion_function = tab_completion;
while(fgets(buf,4096,infp)) {
int count;
$NetBSD: patch-src_inter.c,v 1.1 2014/04/21 18:17:35 joerg Exp $
--- src/inter.c.orig 2014-04-20 18:19:20.000000000 +0000
+++ src/inter.c
@@ -366,6 +366,5 @@ void
init_inter(void)
{
rl_readline_name = "Genius";
- rl_attempted_completion_function =
- (CPPFunction *)tab_completion;
+ rl_attempted_completion_function = tab_completion;
}