From 6b67170aa3d4fdcc75f1031a20388ac2614c687f Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 1 Dec 2008 21:27:23 +0100 Subject: [PATCH] Added perl-uninitialized-var.dpatch. Upstream patch to fix an uninitialized variable warning causing a FTBFS because of -Werror. --- debian/changelog | 4 +++- debian/patches/00list | 1 + debian/patches/perl-uninitialized-var.dpatch | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 debian/patches/perl-uninitialized-var.dpatch diff --git a/debian/changelog b/debian/changelog index d1bbc0f..7d7e203 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,8 @@ collectd (4.5.1-1) experimental; urgency=low - Disabled onewire plugin - owfs is not yet available in Debian. - Install contrib/snmp-probe-host.px to /usr/share/doc/collectd/examples/. * debian/patches: + - Added perl-uninitialized-var.dpatch - upstream patch to fix an + uninitialized variable warning causing a FTBFS because of -Werror. - Removed myplugin_strcpy.dpatch - applied upstream. - Removed perl_deadlock.dpatch - included upstream. - Removed memory_libstatgrab.dpatch - included upstream. @@ -27,7 +29,7 @@ collectd (4.5.1-1) experimental; urgency=low - Removed memcached_fdleak.dpatch - included upstream. - Removed memcached_timeout.dpatch - included upstream. - -- Sebastian Harl Mon, 01 Dec 2008 21:11:59 +0100 + -- Sebastian Harl Mon, 01 Dec 2008 21:25:58 +0100 collectd (4.4.2-2) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 332b35c..12d1fc0 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,3 +1,4 @@ rrd_filter_path.dpatch collection_conf_path.dpatch +perl-uninitialized-var.dpatch diff --git a/debian/patches/perl-uninitialized-var.dpatch b/debian/patches/perl-uninitialized-var.dpatch new file mode 100644 index 0000000..afac436 --- /dev/null +++ b/debian/patches/perl-uninitialized-var.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## perl-uninitialized-var.dpatch by Ulrich Habel +## +## DP: Fixed an uninitialized variable warning. + +@DPATCH@ + +diff a/src/perl.c b/src/perl.c +--- a/src/perl.c ++++ b/src/perl.c +@@ -1790,7 +1790,7 @@ static int perl_config (oconfig_item_t *ci) + + for (i = 0; i < ci->children_num; ++i) { + oconfig_item_t *c = ci->children + i; +- int current_status; ++ int current_status = 0; + + if (NULL != perl_threads) + aTHX = PERL_GET_CONTEXT; -- 2.30.2