From 7abf8440b51ddab5c115e112b34f0a5d429b9580 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 17 Sep 2008 10:23:06 +0200 Subject: [PATCH] Added debian/patches/memory_libstatgrab.dpatch. Trivial upstream patch to fix a typo in the libstatgrab code of the memory plugin. --- debian/changelog | 4 +++- debian/patches/00list | 1 + debian/patches/memory_libstatgrab.dpatch | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 debian/patches/memory_libstatgrab.dpatch diff --git a/debian/changelog b/debian/changelog index 207abd1..3481a96 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,8 +4,10 @@ collectd (4.4.2-2) unstable; urgency=low in 4.4.1-1 and instead build depend on libopenipmi-dev (>= 2.0.14-1~) which includes fixed .pc files. This fixes an undefined symbol error when loading the ipmi plugin caused by that work around (Closes: #494665). + * Added debian/patches/memory_libstatgrab.dpatch - trivial upstream patch to + fix a typo in the libstatgrab code of the memory plugin. - -- Sebastian Harl Mon, 11 Aug 2008 16:45:22 +0200 + -- Sebastian Harl Wed, 17 Sep 2008 10:19:47 +0200 collectd (4.4.2-1) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 5c01294..bc01ecd 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,4 +1,5 @@ rrd_filter_path.dpatch collection_conf_path.dpatch myplugin_strcpy.dpatch +memory_libstatgrab.dpatch diff --git a/debian/patches/memory_libstatgrab.dpatch b/debian/patches/memory_libstatgrab.dpatch new file mode 100755 index 0000000..8ae0c34 --- /dev/null +++ b/debian/patches/memory_libstatgrab.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## memory_libstatgrab.dpatch by Michael Stapelberg +## +## DP: Fix a typo in the libstatgrab code of the memory plugin. This is +## DP: relevant for e.g. GNU/kfreebsd. +## DP: (This is upstream Git commit 59f405559485a04c30b88c2f68fa9e112bdab6a6) + +@DPATCH@ + +diff a/src/memory.c b/src/memory.c +--- a/src/memory.c ++++ b/src/memory.c +@@ -319,7 +319,7 @@ static int memory_read (void) + if ((ios = sg_get_mem_stats ()) != NULL) + { + memory_submit ("used", ios->used); +- memory_submit ("cached", ios->cached); ++ memory_submit ("cached", ios->cache); + memory_submit ("free", ios->free); + } + #endif /* HAVE_LIBSTATGRAB */ -- 2.30.2