[packages/nagios-plugins] fix another fatal error

glen glen at pld-linux.org
Fri Oct 2 14:10:38 CEST 2015


commit 09ac797b359ec2232759613c0f5914f9b8eccaa8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Oct 2 15:10:23 2015 +0300

    fix another fatal error
    
    https://github.com/nagios-plugins/nagios-plugins/pull/110

 nagios-plugins.spec |  4 +++-
 syntax-error.patch  | 30 ++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugins.spec b/nagios-plugins.spec
index d888434..30b460e 100644
--- a/nagios-plugins.spec
+++ b/nagios-plugins.spec
@@ -16,7 +16,7 @@ Summary:	Host/service/network monitoring program plugins for Nagios
 Summary(pl.UTF-8):	Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa
 Name:		nagios-plugins
 Version:	2.1.1
-Release:	3
+Release:	4
 License:	GPL v3
 Group:		Networking
 Source0:	http://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
@@ -37,6 +37,7 @@ Patch23:	%{name}-check_disk_smb-zero-cap.patch
 Patch24:	%{name}-paths.patch
 Patch27:	%{name}-ping.patch
 Patch28:	use-lib.patch
+Patch29:	syntax-error.patch
 URL:		http://www.nagiosplugins.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -518,6 +519,7 @@ mv nagios-plugins-config-*/* .
 %patch24 -p1
 %patch27 -p1
 %patch28 -p1
+%patch29 -p1
 
 # remove libtool m4 macro copies, breaks when system libtool is older
 %{__rm} gl/m4/libtool.m4 gl/m4/lt*.m4
diff --git a/syntax-error.patch b/syntax-error.patch
new file mode 100644
index 0000000..f092ebd
--- /dev/null
+++ b/syntax-error.patch
@@ -0,0 +1,30 @@
+upstream:
+https://github.com/nagios-plugins/nagios-plugins/pull/110
+
+commit 842384a9097f30265637040d7f719f619a310118
+Author: Elan Ruusamäe <glen at delfi.ee>
+Date:   Fri Oct 2 15:06:24 2015 +0300
+
+    fix stupid syntax error!
+    
+    can be catched with trival compile only run:
+    
+    $ perl -c check_mailq.pl
+    syntax error at check_mailq.pl line 40, near ")
+    
+    sub print_help ()"
+    check_mailq.pl had compilation errors.
+
+diff --git a/plugins-scripts/check_mailq.pl b/plugins-scripts/check_mailq.pl
+index 65247a2..e503fa9 100755
+--- a/plugins-scripts/check_mailq.pl
++++ b/plugins-scripts/check_mailq.pl
+@@ -35,7 +35,7 @@ use FindBin;
+ use lib "$FindBin::Bin";
+ use utils qw(%ERRORS &print_revision &support &usage );
+ 
+-my ($sudo)
++my ($sudo);
+ 
+ sub print_help ();
+ sub print_usage ();
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugins.git/commitdiff/09ac797b359ec2232759613c0f5914f9b8eccaa8



More information about the pld-cvs-commit mailing list