Bug#762336: Please enable hardened build flags
Since the original report and patch, the package have been orphaned, and
the rules file changed in a way that make the tested patch no longer
apply.
I suspect something like the following untested patch might work.
diff --git a/debian/rules b/debian/rules
index 16aad6f..f55fc4c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
configureoptions = --bindir=/usr/sbin/ --sysconfdir=/etc/bandwidthd/ --localstatedir=/var/lib/
p_bwdstatic = bandwidthd
@@ -26,7 +29,7 @@ configure-bwdstatic-stamp:
cp -f /usr/share/misc/config.sub config.sub
dh_autoreconf
chmod +x configure
- INSTALL='install --strip-program=true' dh_auto_configure -- $(configureoptions) --disable-pgsql
+ $(shell dpkg-buildflags --export=cmdline) INSTALL='install --strip-program=true' dh_auto_configure -- $(configureoptions) --disable-pgsql
touch $@
configure-bwdpgsql: configure-bwdpgsql-stamp
I do not dare to apply it without testing.
--
Happy hacking
Petter Reinholdtsen
Reply to: