Source: squid3
Version: 3.5.17-1
Severity: minor
Tags: patch
Dear Maintainer,
While rebuilding squid package, I noticed some warnings:
...
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/squidclient/usr/bin/squidclient was not linked against
libnettle.so.* (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/squidclient/usr/bin/squidclient was not linked against
libnetfilter_conntrack.so.* (it uses none of the library's symbols)
...
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/squid-cgi/usr/lib/cgi-bin/cachemgr.cgi was not linked against
libnetfilter_conntrack.so.* (it uses none of the library's symbols)
...
Attached patch fixes them (however, obviously, overall positive effect
is very minor; squid{client,-cgi} are likely only installed together
with main squid package, and its dependencies remains mostly unchanged).
-- System Information:
Debian Release: 8.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (100,
'proposed-updates')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-- no debconf information
diff -Nru squid3-3.5.17/debian/rules squid3-3.5.17/debian/rules
--- squid3-3.5.17/debian/rules 2016-04-03 20:57:40.000000000 +0300
+++ squid3-3.5.17/debian/rules 2016-04-15 21:47:32.000000000 +0300
@@ -2,6 +2,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
include /usr/share/dpkg/buildflags.mk
include /usr/share/cdbs/1/rules/debhelper.mk