Source: kterm
Version: 6.2.0-46
Tags: patch

Please build kterm with hardening and --as-needed flags as per the
attached patch.

Building with -as-needed should clear the dpkg-shlibdeps warnings
below and fix bug #733483.

dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/kterm/usr/bin/kterm was not linked against libSM.so.6 (it uses
none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/kterm/usr/bin/kterm was not linked against libncurses.so.5 (it
uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/kterm/usr/bin/kterm was not linked against libICE.so.6 (it uses
none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/kterm/usr/bin/kterm was not linked against libXpm.so.4 (it uses
none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if
debian/kterm/usr/bin/kterm was not linked against libXext.so.6 (it
uses none of the library's symbols)
diff -u kterm-6.2.0/debian/rules kterm-6.2.0/debian/rules
--- kterm-6.2.0/debian/rules
+++ kterm-6.2.0/debian/rules
@@ -2,6 +2,10 @@
 # Made with the aid of debmake, by Christoph Lameter,
 # based on the sample debian/rules file for GNU hello by Ian Jackson.
 
+dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" 
DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed" dpkg-buildflags
+export MODULE_CFLAGS = $(shell $(dpkg_buildflags) --get CFLAGS)
+export LOCAL_LDFLAGS = $(shell $(dpkg_buildflags) --get LDFLAGS)
+
 package=kterm
 
 build: build-stamp

Reply via email to