pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/octave Do not re-define gets() on SunOS, incompat...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4e8b0e70689
branches:  trunk
changeset: 631478:a4e8b0e70689
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Mar 06 23:09:04 2014 +0000

description:
Do not re-define gets() on SunOS, incompatible prototype.

diffstat:

 math/octave/distinfo                        |   3 ++-
 math/octave/patches/patch-libgnu_stdio.in.h |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r d12ce4a0fa9c -r a4e8b0e70689 math/octave/distinfo
--- a/math/octave/distinfo      Thu Mar 06 23:06:58 2014 +0000
+++ b/math/octave/distinfo      Thu Mar 06 23:09:04 2014 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.39 2014/03/06 23:06:58 jperkin Exp $
+$NetBSD: distinfo,v 1.40 2014/03/06 23:09:04 jperkin Exp $
 
 SHA1 (octave-3.6.4.tar.bz2) = 3cc9366b6dbbd336eaf90fe70ad16e63705d82c4
 RMD160 (octave-3.6.4.tar.bz2) = b0356f0c5d9366b8129d72ac58bbde837fee1a95
@@ -8,6 +8,7 @@
 SHA1 (patch-doc_liboctave_liboctave.texi) = c53484c70adea766ba1378a1f118942c924a88a5
 SHA1 (patch-fflush-fpos_t.c) = 24ed7f95f8431b59bc5ee0dfb0e6624b8029f512
 SHA1 (patch-fseeko-fpos_t.c) = ca846a014f9adfd47f7bbcf6557bf26a53f4a8e9
+SHA1 (patch-libgnu_stdio.in.h) = 20950b67577e0ff34e761b02ac15338c9cfc4cb9
 SHA1 (patch-libgnu_string.in.h) = 4af39b76faa3ac90454a9d664919b7a6cd45fa9d
 SHA1 (patch-liboctave_oct-time.cc) = 40c21f509b6c95942e6ba43c52494d1d707ed515
 SHA1 (patch-scripts_audio_wavread.m) = e679a41cb49eeb32d98d44b81fd5e3d535dd2767
diff -r d12ce4a0fa9c -r a4e8b0e70689 math/octave/patches/patch-libgnu_stdio.in.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave/patches/patch-libgnu_stdio.in.h       Thu Mar 06 23:09:04 2014 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-libgnu_stdio.in.h,v 1.1 2014/03/06 23:09:04 jperkin Exp $
+
+Do not re-define gets() on SunOS, incompatible prototype.
+
+--- libgnu/stdio.in.h.orig     2013-02-21 20:21:19.000000000 +0000
++++ libgnu/stdio.in.h
+@@ -704,10 +704,12 @@ _GL_WARN_ON_USE (getline, "getline is un
+ /* It is very rare that the developer ever has full control of stdin,
+    so any use of gets warrants an unconditional warning; besides, C11
+    removed it.  */
++#ifndef __sun
+ #undef gets
+ #if HAVE_RAW_DECL_GETS
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+ #endif
++#endif
+ 
+ 
+ #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@



Home | Main Index | Thread Index | Old Index