From: Sebastian Andrzej Siewior Date: Sun, 5 Feb 2017 19:48:41 +0000 (+0100) Subject: Drop -ssl -lcrypto from linking. X-Git-Tag: collectd-5.7.1-1.1^0 X-Git-Url: https://git.tokkee.org/?p=pkg-collectd.git;a=commitdiff_plain;h=cc0a93971abd9b61f99f52cc85c94f8bf2c05862 Drop -ssl -lcrypto from linking. openssl's functionality is not used by collectd. Closes: #852924 --- diff --git a/debian/changelog b/debian/changelog index 8786d9b..16ff8d4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 index 0000000..5a2a6d9 --- /dev/null +++ b/debian/patches/drop_lssl_lcrypto_from_linking.patch @@ -0,0 +1,37 @@ +Author: Sebastian Andrzej Siewior +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/series b/debian/patches/series index 196b739..74ad776 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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