pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/canna Don't provide a declaration of fgets...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f3d2963720b
branches:  trunk
changeset: 365654:9f3d2963720b
user:      maya <maya%pkgsrc.org@localhost>
date:      Sat Jul 22 17:44:40 2017 +0000

description:
Don't provide a declaration of fgets and gets in a function.
stdio.h is enough. fixes build failure with ssp/fortify

diffstat:

 inputmethod/canna/distinfo                       |   3 ++-
 inputmethod/canna/patches/patch-lib_canna_lisp.c |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r d609eff36b6c -r 9f3d2963720b inputmethod/canna/distinfo
--- a/inputmethod/canna/distinfo        Sat Jul 22 17:28:56 2017 +0000
+++ b/inputmethod/canna/distinfo        Sat Jul 22 17:44:40 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2015/11/04 17:41:19 agc Exp $
+$NetBSD: distinfo,v 1.16 2017/07/22 17:44:40 maya Exp $
 
 SHA1 (Canna37p3.tar.bz2) = e39eece7c70c669dd46dd74b26121a60a2496fde
 RMD160 (Canna37p3.tar.bz2) = 33e5eb9e2dc144835db838612897e652acbc60ed
@@ -22,3 +22,4 @@
 SHA1 (patch-lib_RK_dd.c) = 8055a2a3902e7d4d0cc1d782295c2879311750ec
 SHA1 (patch-lib_RK_ncache.c) = e792592500e7db85a6b2370c4ea9eb533d97bda0
 SHA1 (patch-lib_canna_keydef.c) = af14140f58bf8a6214a7fb9d5d73347c1b3cdd85
+SHA1 (patch-lib_canna_lisp.c) = 0ed74a04406ab21fb88ef94b182cff2ff3c793ef
diff -r d609eff36b6c -r 9f3d2963720b inputmethod/canna/patches/patch-lib_canna_lisp.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/canna/patches/patch-lib_canna_lisp.c  Sat Jul 22 17:44:40 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_canna_lisp.c,v 1.1 2017/07/22 17:44:40 maya Exp $
+
+Don't provide a declaration of gets and fgets
+we're including stdio.h
+
+--- lib/canna/lisp.c.orig      2004-04-26 22:49:21.000000000 +0000
++++ lib/canna/lisp.c
+@@ -1355,8 +1355,6 @@ int c;
+ static int
+ tyi()
+ {
+-  char *gets(), *fgets();
+-
+   if (untyibuf) {
+     int ret = untyibuf[--untyip];
+     if (untyip == 0) {



Home | Main Index | Thread Index | Old Index