summaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-06 23:09:04 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-06 23:09:04 +0000
commit43412ac10287f258a2bab9b686f24c073caa8e4e (patch)
tree57e4ba0db197e783078f2be6cde7086d55db8278 /math/octave
parentcf2615c97ccfcb2f4086464ab574035ebf287895 (diff)
downloadpkgsrc-43412ac10287f258a2bab9b686f24c073caa8e4e.tar.gz
Do not re-define gets() on SunOS, incompatible prototype.
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/distinfo3
-rw-r--r--math/octave/patches/patch-libgnu_stdio.in.h19
2 files changed, 21 insertions, 1 deletions
diff --git a/math/octave/distinfo b/math/octave/distinfo
index 0e37130c0ca..d0b43839ca5 100644
--- a/math/octave/distinfo
+++ b/math/octave/distinfo
@@ -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_interpreter_plot.txi) = b205f704ce625694a25ab57f4fad4460d1fbc0e9
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 --git a/math/octave/patches/patch-libgnu_stdio.in.h b/math/octave/patches/patch-libgnu_stdio.in.h
new file mode 100644
index 00000000000..750c923e5ec
--- /dev/null
+++ b/math/octave/patches/patch-libgnu_stdio.in.h
@@ -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@