pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/radiance radiance: Don't declare own fgets. F...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49f045ed0a31
branches:  trunk
changeset: 443224:49f045ed0a31
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Dec 09 10:48:24 2020 +0000

description:
radiance: Don't declare own fgets. Fixes build on NetBSD-current.

diffstat:

 graphics/radiance/distinfo                        |   4 ++-
 graphics/radiance/patches/patch-src_meta_mgvars.c |  24 +++++++++++++++++++++++
 graphics/radiance/patches/patch-src_meta_plotin.c |  15 ++++++++++++++
 3 files changed, 42 insertions(+), 1 deletions(-)

diffs (66 lines):

diff -r 1e3c5b5852f3 -r 49f045ed0a31 graphics/radiance/distinfo
--- a/graphics/radiance/distinfo        Wed Dec 09 10:38:04 2020 +0000
+++ b/graphics/radiance/distinfo        Wed Dec 09 10:48:24 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2015/11/03 21:34:18 agc Exp $
+$NetBSD: distinfo,v 1.19 2020/12/09 10:48:24 nia Exp $
 
 SHA1 (rad3R6P1.tar.gz) = 71f46abd1c30be282a93237fa0c162d3bf0b1f99
 RMD160 (rad3R6P1.tar.gz) = 3bcf40518a57cdb5455264c83a3e206b67b3d1fa
@@ -32,7 +32,9 @@
 SHA1 (patch-av) = 0bfd2ec0fb16f3c106a285b49f1cf48a29274fbb
 SHA1 (patch-aw) = 6b57d85e4c4ef4a3501f4a0263ef8a47fbac8958
 SHA1 (patch-src_common_readmesh.c) = 1e5b2a0abd5f50c69ccccb5db28688e914c3cc0a
+SHA1 (patch-src_meta_mgvars.c) = 5493db60499a87bec7232871e4f185c05e8a5329
 SHA1 (patch-src_meta_plot.h) = b6959e2d349dc25abbde816f4b128a2fb0218200
+SHA1 (patch-src_meta_plotin.c) = 236a63b5d0791c29349b068837e30048f2872bdc
 SHA1 (patch-src_meta_xmeta.c) = 360c282bd9adf376ea86140d6c63af523114618d
 SHA1 (patch-src_ot_writemesh.c) = 109266d289720ed6760f430ab7a7637312ac9c3d
 SHA1 (patch-src_ot_writeoct.c) = b6f6426ef6abf731cd5c9735e6012c07f5e9ff35
diff -r 1e3c5b5852f3 -r 49f045ed0a31 graphics/radiance/patches/patch-src_meta_mgvars.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/radiance/patches/patch-src_meta_mgvars.c Wed Dec 09 10:48:24 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_meta_mgvars.c,v 1.1 2020/12/09 10:48:24 nia Exp $
+
+Don't declare own fgets.
+
+--- src/meta/mgvars.c.orig     2004-04-10 02:54:06.000000000 +0000
++++ src/meta/mgvars.c
+@@ -175,7 +175,7 @@ char  *file
+ )
+ {
+       FILE  *fp;
+-      char  sbuf[MAXLINE], *fgets();
++      char  sbuf[MAXLINE];
+       int  inquote;
+       register char  *cp, *cp2;
+ 
+@@ -521,7 +521,7 @@ FILE  *fp,
+ register DARRAY  *dp
+ )
+ {
+-      char  sbuf[MAXLINE], *fgets();
++      char  sbuf[MAXLINE];
+       register char  *cp;
+ 
+       dp->size = 0;
diff -r 1e3c5b5852f3 -r 49f045ed0a31 graphics/radiance/patches/patch-src_meta_plotin.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/radiance/patches/patch-src_meta_plotin.c Wed Dec 09 10:48:24 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_meta_plotin.c,v 1.1 2020/12/09 10:48:24 nia Exp $
+
+Don't declare own fgets.
+
+--- src/meta/plotin.c.orig     2003-11-15 16:51:42.000000000 +0000
++++ src/meta/plotin.c
+@@ -90,7 +90,7 @@ convert(             /* convert to meta-file */
+       FILE  *infp
+ )
+ {
+-    char  *fgets(), sbuf[BUFSIZ];
++    char  sbuf[BUFSIZ];
+     int  command;
+     int  a1, a2, a3, a4, a5, a6;
+ 



Home | Main Index | Thread Index | Old Index