Code

Drop -ssl -lcrypto from linking. collectd-5.7.1-1.1
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sun, 5 Feb 2017 19:48:41 +0000 (20:48 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 8 Feb 2017 10:05:46 +0000 (11:05 +0100)
openssl's functionality is not used by collectd.

Closes: #852924
debian/changelog
debian/patches/drop_lssl_lcrypto_from_linking.patch [new file with mode: 0644]
debian/patches/series

index 8786d9b30ede797d2f76e19e4eecee23a8e04840..16ff8d4a7e0d241b593b27bca5401a76e5a9b9da 100644 (file)
@@ -1,3 +1,11 @@
+collectd (5.7.1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop -ssl -lcrypto from linking (openssl's functionality is not used by
+    collectd). Add drop_lssl_lcrypto_from_linking.patch (Closes: #852924).
+
+ -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc>  Sun, 05 Feb 2017 20:40:33 +0100
+
 collectd (5.7.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/patches/drop_lssl_lcrypto_from_linking.patch b/debian/patches/drop_lssl_lcrypto_from_linking.patch
new file mode 100644 (file)
index 0000000..5a2a6d9
--- /dev/null
@@ -0,0 +1,37 @@
+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
index 196b7393ce2fce1a476b2bc64c983047ef3c0f85..74ad7761c0d858cac771a48ffddfaac3975950d2 100644 (file)
@@ -5,3 +5,4 @@ nagios-debian-paths.patch
 mqtt_resource_leak.patch
 mqtt_invalid_symbols.patch
 dpdkstat_goto_label.patch
+drop_lssl_lcrypto_from_linking.patch