summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 168815c)
raw | patch | inline | side by side (parent: 168815c)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 10 May 2009 15:11:57 +0000 (17:11 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 10 May 2009 15:11:57 +0000 (17:11 +0200) |
Those patches have been included upstream.
debian/changelog | patch | blob | history | |
debian/patches/00list | patch | blob | history | |
debian/patches/battery_acpi_complain.dpatch | [deleted file] | patch | blob | history |
debian/patches/ntpd_type_pun_fix.dpatch | [deleted file] | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 7c7683005fee27f0dacf51228acde625a5876faa..64e9423e24f7a4b04388d3f558de8742e39a2d2e 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
* debian/rules:
- Install collectd-{network,unixsock}.py to /usr/share/doc/collectd/
examples/.
+ * debian/patches:
+ - Removed battery_acpi_complain.dpatch - included upstream.
+ - Removed ntpd_type_pun_fix.dpatch - included upstream.
- -- Sebastian Harl <sh@tokkee.org> Sun, 10 May 2009 13:12:16 +0200
+ -- Sebastian Harl <sh@tokkee.org> Sun, 10 May 2009 17:10:55 +0200
collectd (4.6.2-2) unstable; urgency=low
diff --git a/debian/patches/00list b/debian/patches/00list
index 63040b338196c0e14bdfa7307954242a9d4bae05..332b35c8333c22b54c6ead8e9d0f6750c3bfbc7f 100644 (file)
--- a/debian/patches/00list
+++ b/debian/patches/00list
rrd_filter_path.dpatch
collection_conf_path.dpatch
-battery_acpi_complain.dpatch
-ntpd_type_pun_fix.dpatch
diff --git a/debian/patches/battery_acpi_complain.dpatch b/debian/patches/battery_acpi_complain.dpatch
+++ /dev/null
@@ -1,50 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## battery_acpi_complain.dpatch by Sebastian Harl <sh@tokkee.org>
-##
-## DP: battery plugin: Don't complain about missing /proc/acpi/battery each
-## DP: interval. Instead, complain once when the read callback is called for
-## DP: the first time.
-
-@DPATCH@
-
-diff a/src/battery.c b/src/battery.c
---- a/src/battery.c
-+++ b/src/battery.c
-@@ -23,6 +23,8 @@
- #include "common.h"
- #include "plugin.h"
-
-+#include "utils_complain.h"
-+
- #if HAVE_MACH_MACH_TYPES_H
- # include <mach/mach_types.h>
- #endif
-@@ -436,6 +438,8 @@ static int battery_read (void)
- /* #endif HAVE_IOKIT_IOKITLIB_H || HAVE_IOKIT_PS_IOPOWERSOURCES_H */
-
- #elif KERNEL_LINUX
-+ static c_complain_t acpi_dir_complaint = C_COMPLAIN_INIT_STATIC;
-+
- FILE *fh;
- char buffer[1024];
- char filename[256];
-@@ -506,8 +510,17 @@ static int battery_read (void)
- battery_submit ("0", "voltage", voltage);
- }
-
-- walk_directory (battery_acpi_dir, battery_read_acpi,
-- /* user_data = */ NULL);
-+ if (0 == access (battery_acpi_dir, R_OK))
-+ walk_directory (battery_acpi_dir, battery_read_acpi,
-+ /* user_data = */ NULL);
-+ else
-+ {
-+ char errbuf[1024];
-+ c_complain_once (LOG_WARNING, &acpi_dir_complaint,
-+ "battery plugin: Failed to access `%s': %s",
-+ battery_acpi_dir,
-+ sstrerror (errno, errbuf, sizeof (errbuf)));
-+ }
-
- #endif /* KERNEL_LINUX */
-
diff --git a/debian/patches/ntpd_type_pun_fix.dpatch b/debian/patches/ntpd_type_pun_fix.dpatch
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## ntpd_type_pun_fix.dpatch by Florian Forster <octo@verplant.org>
-##
-## DP: ntpd plugin: Fix dereference of type-punned pointer.
-
-@DPATCH@
-
-diff a/src/ntpd.c b/src/ntpd.c
---- a/src/ntpd.c
-+++ b/src/ntpd.c
-@@ -896,25 +896,33 @@ static int ntpd_read (void)
-
- if (ptr->v6_flag)
- {
-- struct sockaddr_in6 *sa_ptr;
-- sa_ptr = (struct sockaddr_in6 *) &sa;
-+ struct sockaddr_in6 sa6;
-
-- sa_ptr->sin6_family = AF_INET6;
-- sa_ptr->sin6_port = htons (123);
-- memcpy (&sa_ptr->sin6_addr, &ptr->srcadr6,
-+ assert (sizeof (sa) >= sizeof (sa6));
-+
-+ memset (&sa6, 0, sizeof (sa6));
-+ sa6.sin6_family = AF_INET6;
-+ sa6.sin6_port = htons (123);
-+ memcpy (&sa6.sin6_addr, &ptr->srcadr6,
- sizeof (struct in6_addr));
-- sa_len = sizeof (struct sockaddr_in6);
-+ sa_len = sizeof (sa6);
-+
-+ memcpy (&sa, &sa6, sizeof (sa6));
- }
- else
- {
-- struct sockaddr_in *sa_ptr;
-- sa_ptr = (struct sockaddr_in *) &sa;
-+ struct sockaddr_in sa4;
-
-- sa_ptr->sin_family = AF_INET;
-- sa_ptr->sin_port = htons (123);
-- memcpy (&sa_ptr->sin_addr, &ptr->srcadr,
-+ assert (sizeof (sa) >= sizeof (sa4));
-+
-+ memset (&sa4, 0, sizeof (sa4));
-+ sa4.sin_family = AF_INET;
-+ sa4.sin_port = htons (123);
-+ memcpy (&sa4.sin_addr, &ptr->srcadr,
- sizeof (struct in_addr));
-- sa_len = sizeof (struct sockaddr_in);
-+ sa_len = sizeof (sa4);
-+
-+ memcpy (&sa, &sa4, sizeof (sa4));
- }
-
- if (do_reverse_lookups == 0)