Code

patches: remove 4 patches merged upstream
authorMarc Fournier <marc@bl.uem.li>
Wed, 23 Aug 2017 14:06:45 +0000 (16:06 +0200)
committerMarc Fournier <marc@bl.uem.li>
Wed, 23 Aug 2017 14:56:34 +0000 (16:56 +0200)
debian/changelog
debian/patches/dpdkstat_goto_label.patch [deleted file]
debian/patches/drop_lssl_lcrypto_from_linking.patch [deleted file]
debian/patches/mqtt_invalid_symbols.patch [deleted file]
debian/patches/mqtt_resource_leak.patch [deleted file]
debian/patches/series

index 8f400bee7855e9e9a6cdf40878b3a056d18e1bee..4a306ccfed20a73458c892f32ceae8a6be37810f 100644 (file)
@@ -1,6 +1,11 @@
 collectd (5.7.2-1) UNRELEASED; urgency=medium
 
   * New upstream release.
+  * debian/patches:
+    - drop dpdkstat_goto_label.patch; included upstream.
+    - drop drop_lssl_lcrypto_from_linking.patch; included upstream.
+    - drop mqtt_invalid_symbols.patch; included upstream.
+    - drop mqtt_resource_leak.patch; included upstream.
 
  -- Marc Fournier <marc@bl.uem.li>  Wed, 23 Aug 2017 15:58:47 +0200
 
diff --git a/debian/patches/dpdkstat_goto_label.patch b/debian/patches/dpdkstat_goto_label.patch
deleted file mode 100644 (file)
index fe0958a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-Description: dpdkstat plugin: jump to the right label
-Author: Ruben Kerkhof <ruben@rubenkerkhof.com>
-
-diff --git a/src/dpdkstat.c b/src/dpdkstat.c
-index 2686be151..d1383458d 100644
---- a/src/dpdkstat.c
-+++ b/src/dpdkstat.c
-@@ -289,13 +289,13 @@ static int dpdk_shm_init(size_t size) {
-   if (err) {
-     ERROR("dpdkstat semaphore init failed: %s",
-           sstrerror(errno, errbuf, sizeof(errbuf)));
--    goto close;
-+    goto fail;
-   }
-   err = sem_init(&g_configuration->sema_stats_in_shm, 1, 0);
-   if (err) {
-     ERROR("dpdkstat semaphore init failed: %s",
-           sstrerror(errno, errbuf, sizeof(errbuf)));
--    goto close;
-+    goto fail;
-   }
-   g_configuration->xstats = NULL;
diff --git a/debian/patches/drop_lssl_lcrypto_from_linking.patch b/debian/patches/drop_lssl_lcrypto_from_linking.patch
deleted file mode 100644 (file)
index 5a2a6d9..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-Author: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
-Subject: Remove SSL libs from libs
-
-The Makefile/Configure adds "-lssl -lcrypto" but does not depend libssl-dev
-nor does it use any of its functions diretly.
-Depending on those should not be needed unless for static compilation thus
-removing them.
-
-BTS: https://bugs.debian.org/852924
-
----
- configure.ac    |    2 +-
- src/Makefile.am |    2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
---- a/configure.ac
-+++ b/configure.ac
-@@ -3574,7 +3574,7 @@ then
-       if test "x$LIBNETAPP_LIBS" = "x"
-       then
--              LIBNETAPP_LIBS="$PTHREAD_LIBS -lxml -ladt -lssl -lm -lcrypto -lz"
-+              LIBNETAPP_LIBS="$PTHREAD_LIBS -lxml -ladt -lm -lz"
-       fi
-       AC_MSG_NOTICE([netapp LIBS: $LIBNETAPP_LIBS])
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -825,7 +825,7 @@ if BUILD_PLUGIN_NOTIFY_EMAIL
- pkglib_LTLIBRARIES += notify_email.la
- notify_email_la_SOURCES = notify_email.c
- notify_email_la_LDFLAGS = $(PLUGIN_LDFLAGS)
--notify_email_la_LIBADD = -lesmtp -lssl -lcrypto
-+notify_email_la_LIBADD = -lesmtp
- endif
- if BUILD_PLUGIN_NOTIFY_NAGIOS
diff --git a/debian/patches/mqtt_invalid_symbols.patch b/debian/patches/mqtt_invalid_symbols.patch
deleted file mode 100644 (file)
index 5adce34..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-Description: mqtt plugin: Fix invalid symbols in topic name.
-Author: Denys Fedoryshchenko <denys@visp.net.lb>
-
-diff --git a/src/mqtt.c b/src/mqtt.c
-index 6b76af97b..8a24ccaa0 100644
---- a/src/mqtt.c
-+++ b/src/mqtt.c
-@@ -462,6 +462,7 @@ static int format_topic(char *buf, size_t buf_len, data_set_t const *ds,
-                         value_list_t const *vl, mqtt_client_conf_t *conf) {
-   char name[MQTT_MAX_TOPIC_SIZE];
-   int status;
-+  char *c;
-   if ((conf->topic_prefix == NULL) || (conf->topic_prefix[0] == 0))
-     return (FORMAT_VL(buf, buf_len, vl));
-@@ -474,6 +475,10 @@ static int format_topic(char *buf, size_t buf_len, data_set_t const *ds,
-   if ((status < 0) || (((size_t)status) >= buf_len))
-     return (ENOMEM);
-+  while((c = strchr(buf, '#')) || (c = strchr(buf, '+'))) {
-+       *c = '_';
-+  }
-+
-   return (0);
- } /* int format_topic */
diff --git a/debian/patches/mqtt_resource_leak.patch b/debian/patches/mqtt_resource_leak.patch
deleted file mode 100644 (file)
index c07b29c..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Description: mqtt plugin: Fix resource leak.
-Author: Denys Fedoryshchenko <denys@visp.net.lb>
-
-diff --git a/src/mqtt.c b/src/mqtt.c
-index 95deb0075..6b76af97b 100644
---- a/src/mqtt.c
-+++ b/src/mqtt.c
-@@ -448,6 +448,7 @@ static int publish(mqtt_client_conf_t *conf, char const *topic,
-      * measure; we will try to reconnect the next time we have to publish a
-      * message */
-     conf->connected = 0;
-+    mosquitto_disconnect(conf->mosq);
-     pthread_mutex_unlock(&conf->lock);
-     return (-1);
index 74ad7761c0d858cac771a48ffddfaac3975950d2..8c3f46b2e3722b791529ef4ad0b272c6927927ab 100644 (file)
@@ -2,7 +2,3 @@ rrd_filter_path.patch
 collection_conf_path.patch
 myplugin_includes.patch
 nagios-debian-paths.patch
-mqtt_resource_leak.patch
-mqtt_invalid_symbols.patch
-dpdkstat_goto_label.patch
-drop_lssl_lcrypto_from_linking.patch