[packages/nagios-plugins] build fix patch

jajcus jajcus at pld-linux.org
Fri Nov 23 20:01:24 CET 2012


commit 5237db59703caa7bbcc9d7b0f09116f16089e8d4
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Fri Nov 23 19:35:38 2012 +0100

    build fix patch

 nagios-plugins-gets.patch | 16 ++++++++++++++++
 nagios-plugins.spec       |  2 ++
 2 files changed, 18 insertions(+)
---
diff --git a/nagios-plugins.spec b/nagios-plugins.spec
index 606d8f8..24e9f62 100644
--- a/nagios-plugins.spec
+++ b/nagios-plugins.spec
@@ -43,6 +43,7 @@ Patch25:	%{name}-check_snmp_disk_monitor-bulk.patch
 Patch26:	%{name}-check_snmp_disk_monitor-opts.patch
 Patch27:	%{name}-ping.patch
 Patch28:	check_rbl.patch
+Patch29:	%{name}-gets.patch
 URL:		http://www.nagiosplugins.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -513,6 +514,7 @@ mv nagios-plugins-config-*/* .
 %patch26 -p0
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
 
 # bring contribs into shape...
 cd contrib
diff --git a/nagios-plugins-gets.patch b/nagios-plugins-gets.patch
new file mode 100644
index 0000000..16d6253
--- /dev/null
+++ b/nagios-plugins-gets.patch
@@ -0,0 +1,16 @@
+diff -dur nagios-plugins-1.4.15.orig/gl/stdio.in.h nagios-plugins-1.4.15/gl/stdio.in.h
+--- nagios-plugins-1.4.15.orig/gl/stdio.in.h	2010-07-27 22:47:15.000000000 +0200
++++ nagios-plugins-1.4.15/gl/stdio.in.h	2012-11-23 19:31:19.064578037 +0100
+@@ -137,12 +137,6 @@
+                  "use gnulib module fflush for portable POSIX compliance");
+ #endif
+ 
+-/* It is very rare that the developer ever has full control of stdin,
+-   so any use of gets warrants an unconditional warning.  Assume it is
+-   always declared, since it is required by C89.  */
+-#undef gets
+-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+-
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+ #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugins.git/commitdiff/8cce130d438294461c258a021456ad651435ef9d



More information about the pld-cvs-commit mailing list