[whatsup] add a patch to fix bug #1117251

David Brown dmlb2000 at fedoraproject.org
Tue Jul 8 16:31:06 UTC 2014


commit d793a6366acd8df8c41f55ee138777006cadc96d
Author: David Brown <dmlb2000 at gmail.com>
Date:   Tue Jul 8 09:30:59 2014 -0700

    add a patch to fix bug #1117251

 whatsup-1.14-bug#1117251.patch |   27 +++++++++++++++++++++++++++
 whatsup.spec                   |    4 +++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/whatsup-1.14-bug#1117251.patch b/whatsup-1.14-bug#1117251.patch
new file mode 100644
index 0000000..4bd35d2
--- /dev/null
+++ b/whatsup-1.14-bug#1117251.patch
@@ -0,0 +1,27 @@
+Index: src/libnodeupdown/nodeupdown_backend_ganglia.c
+===================================================================
+--- src/libnodeupdown/nodeupdown_backend_ganglia.c	(revision 967)
++++ src/libnodeupdown/nodeupdown_backend_ganglia.c	(revision 968)
+@@ -180,6 +180,9 @@
+ 
+       /* store as up or down */
+       reported = atol(attr[5]);
++      /* With ganglia 3.2.0, attr[4] is actually TAGS, and we want the
++	 next pair.  */
++      if (!reported) reported = atol(attr[7]);
+       if (abs(localtime - reported) < timeout_len)
+ 	nodeupdown_add_up_node(handle, attr[1]);
+       else
+Index: ChangeLog
+===================================================================
+--- ChangeLog	(revision 967)
++++ ChangeLog	(revision 968)
+@@ -1,3 +1,8 @@
++2012-09-19  Dave Love <d.love at liverpool.ac.uk>
++
++	* src/libnodeupdown/nodeupdown_backend_ganglia.c (_xml_parse_start):
++	Update XML parsing for newer Ganglias.
++	
+ 2012-06-26  Albert Chu  <chu11 at llnl.gov>
+ 
+ 	* tagged whatsup-1-14-1
diff --git a/whatsup.spec b/whatsup.spec
index 3c41362..68f28dc 100644
--- a/whatsup.spec
+++ b/whatsup.spec
@@ -9,13 +9,14 @@
 Summary:       Node up/down detection utility
 Name:          whatsup
 Version:       1.14
-Release:       7%{?dist}
+Release:       8%{?dist}
 Group:         Applications/Communications
 License:       GPLv2+
 URL:           https://computing.llnl.gov/linux/whatsup.html
 Source0:       http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}-1/%{name}-%{version}.tar.gz
 Source1:       %{name}-hostsfile
 Source2:       %{name}-pingd.service
+Patch0:        %{name}-%{version}-bug#1117251.patch
 BuildRequires: perl(ExtUtils::MakeMaker) expat-devel, libtool-ltdl-devel, libgenders-devel
 BuildRequires: autoconf, automake, libtool
 %if 0%{?fedora} > 15
@@ -120,6 +121,7 @@ Genders clusterlist module for %{libname}
 
 %prep
 %setup -q
+%patch0 -p0
 %if 0%{?fedora} > 17
 autoreconf -I config -f -i
 %endif


More information about the scm-commits mailing list