Code

patches: Added gmond-fix-compile-error.dpatch.
authorSebastian Harl <sh@tokkee.org>
Thu, 15 Oct 2009 17:25:36 +0000 (19:25 +0200)
committerSebastian Harl <sh@tokkee.org>
Thu, 15 Oct 2009 17:25:36 +0000 (19:25 +0200)
This is an upstream patch fixing a compile error in the gmond plugin.

debian/changelog
debian/patches/00list
debian/patches/gmond-fix-compile-error.dpatch [new file with mode: 0644]

index c35b50c12a358f68dfc66a3a74a1ea09fc661561..a9ef0f7f6e8b8ffea5dc7e3fc15f2c12663eabcb 100644 (file)
@@ -29,10 +29,12 @@ collectd (4.8.1-1) unstable; urgency=medium
     - Removed libvirt-reconnect.dpatch - included upstream.
     - Removed network-fix-cacheflush.dpatch - included upstream.
     - Removed plugin-fix-unregister.dpatch - included upstream.
+    - Added gmond-fix-compile-error.dpatch - upstream patch fixing a compile
+      error in the gmond plugin.
   * debian/control:
     - Build depend on libyajl-dev, which is required by the curl_json plugin.
 
- -- Sebastian Harl <tokkee@debian.org>  Sun, 11 Oct 2009 20:00:06 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Thu, 15 Oct 2009 19:25:02 +0200
 
 collectd (4.7.2-1) unstable; urgency=low
 
index 332b35c8333c22b54c6ead8e9d0f6750c3bfbc7f..b21ebd38e4d9365217768fc9962377bf4a36f101 100644 (file)
@@ -1,3 +1,4 @@
 rrd_filter_path.dpatch
 collection_conf_path.dpatch
+gmond-fix-compile-error.dpatch
 
diff --git a/debian/patches/gmond-fix-compile-error.dpatch b/debian/patches/gmond-fix-compile-error.dpatch
new file mode 100644 (file)
index 0000000..c4f8e72
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gmond-fix-compile-error.dpatch by Sebastian Harl <sh@tokkee.org>
+##
+## DP: gmond plugin: Fixed a typo.
+## DP:
+## DP: For some reason, the value_t members "derive" and "absolute" had been
+## DP: spelled in all capital letters, obviously resulting in a build error.
+
+@DPATCH@
+
+diff a/src/gmond.c b/src/gmond.c
+--- a/src/gmond.c
++++ b/src/gmond.c
+@@ -542,9 +542,9 @@ static int staging_entry_update (const char *host, const char *name, /* {{{ */
+   else if (ds_type == DS_TYPE_GAUGE)
+     se->vl.values[ds_index].gauge = value.gauge;
+   else if (ds_type == DS_TYPE_DERIVE)
+-    se->vl.values[ds_index].DERIVE += value.derive;
++    se->vl.values[ds_index].derive += value.derive;
+   else if (ds_type == DS_TYPE_ABSOLUTE)
+-    se->vl.values[ds_index].ABSOLUTE = value.absolute;
++    se->vl.values[ds_index].absolute = value.absolute;
+   se->flags |= (0x01 << ds_index);