summaryrefslogtreecommitdiff
path: root/lang/swi-prolog-lite
diff options
context:
space:
mode:
authorjoerg <joerg>2014-04-16 21:03:51 +0000
committerjoerg <joerg>2014-04-16 21:03:51 +0000
commit129635a142e7434d108f47edae10bb64066bbf18 (patch)
tree720b6c876e68b7468e90cb482543b8187978ee63 /lang/swi-prolog-lite
parent42e743f78215337635c7b9dd888cd1314dd75aa2 (diff)
downloadpkgsrc-129635a142e7434d108f47edae10bb64066bbf18.tar.gz
Fix build with readline 6.3. Correct toupper() while here.
Diffstat (limited to 'lang/swi-prolog-lite')
-rw-r--r--lang/swi-prolog-lite/distinfo4
-rw-r--r--lang/swi-prolog-lite/patches/patch-src_os_pl-fmt.c13
-rw-r--r--lang/swi-prolog-lite/patches/patch-src_pl-rl.c12
3 files changed, 28 insertions, 1 deletions
diff --git a/lang/swi-prolog-lite/distinfo b/lang/swi-prolog-lite/distinfo
index 2913fae5ee3..d96259699e6 100644
--- a/lang/swi-prolog-lite/distinfo
+++ b/lang/swi-prolog-lite/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2013/01/24 12:03:08 is Exp $
+$NetBSD: distinfo,v 1.17 2014/04/16 21:03:51 joerg Exp $
SHA1 (swi-prolog/pl-5.11.18.tar.gz) = b929d47f2e92230e2afcaaaf25e9a34c40adc54e
RMD160 (swi-prolog/pl-5.11.18.tar.gz) = 1cbf0dab3a9cd63b3178d6a43c983b31402d7b7f
@@ -8,4 +8,6 @@ SHA1 (patch-ae) = 4135212b4c5faf70e01e78e45df5e1a0ccc927a6
SHA1 (patch-ar) = 2bf3648f29c6263ea2efe13b95309a1fe72b14b8
SHA1 (patch-packages_clib_sha1_brg_endian.h) = db9f50eb0d0f92e44a79048d0bb84b690945964b
SHA1 (patch-packages_xpce_src_img_gifread.c) = 5ef16b048f8343cde92a17d9fd3c78b0c3e7c374
+SHA1 (patch-src_os_pl-fmt.c) = dc3dd7ff6349557afc5b7d5d0f6de9c9815e6403
SHA1 (patch-src_pl-funcs.h) = 792257fcc533c835a607e6d660ed42058b7a8a95
+SHA1 (patch-src_pl-rl.c) = ed0cd8d1df40bd1e1ab1e9c4a4cb5b77c4dec14b
diff --git a/lang/swi-prolog-lite/patches/patch-src_os_pl-fmt.c b/lang/swi-prolog-lite/patches/patch-src_os_pl-fmt.c
new file mode 100644
index 00000000000..719dbbed12c
--- /dev/null
+++ b/lang/swi-prolog-lite/patches/patch-src_os_pl-fmt.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_os_pl-fmt.c,v 1.1 2014/04/16 21:03:51 joerg Exp $
+
+--- src/os/pl-fmt.c.orig 2014-04-16 20:47:33.000000000 +0000
++++ src/os/pl-fmt.c
+@@ -917,7 +917,7 @@ formatNumber(bool split, int div, int ra
+ { char *s;
+
+ for(s=buf; *s; s++)
+- *s = toupper(*s);
++ *s = toupper((unsigned char)*s);
+ }
+ if ( split || div > 0 )
+ { int before = (int)(len-div);
diff --git a/lang/swi-prolog-lite/patches/patch-src_pl-rl.c b/lang/swi-prolog-lite/patches/patch-src_pl-rl.c
new file mode 100644
index 00000000000..8a6f6997d2a
--- /dev/null
+++ b/lang/swi-prolog-lite/patches/patch-src_pl-rl.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_pl-rl.c,v 1.1 2014/04/16 21:03:51 joerg Exp $
+
+--- src/pl-rl.c.orig 2014-04-16 20:47:02.000000000 +0000
++++ src/pl-rl.c
+@@ -93,7 +93,6 @@ extern void add_history(char *); /* shou
+ /* readline.h versions */
+ extern int rl_begin_undo_group(void); /* delete when conflict arrises! */
+ extern int rl_end_undo_group(void);
+-extern Function *rl_event_hook;
+ #ifndef HAVE_RL_FILENAME_COMPLETION_FUNCTION
+ #define rl_filename_completion_function filename_completion_function
+ extern char *filename_completion_function(const char *, int);