[pkg-bacula-commits] [SCM] Bacula, a network backup, recovery and verification program branch, master, updated. debian/5.2.6+dfsg-5-15-g1891544

Alexander Golovko alexandro at ankalagon.ru
Sat Oct 6 22:30:25 UTC 2012


The following commit has been merged in the master branch:
commit 2731bd971b387823fede317dd1e17eb725867b7b
Author: Alexander Golovko <alexandro at ankalagon.ru>
Date:   Sun Oct 7 00:06:59 2012 +0400

    override lintian warnings about hardening

diff --git a/debian/changelog b/debian/changelog
index b5816f5..4501085 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ bacula (5.2.6+dfsg-6) unstable; urgency=high
   * debian/control:
     - remove mtx from build-depends on Hurd, due to package unavailability and
       unneccessary functinality on this platforms.
+  * debian/rules:
+    + add lintian overrides for hardening for all packages.
 
  -- 
 
diff --git a/debian/rules b/debian/rules
index 5a9f95e..37b3365 100755
--- a/debian/rules
+++ b/debian/rules
@@ -166,6 +166,19 @@ override_dh_clean:
 	dh_autotools-dev_restoreconfig
 	dh_clean
 
+override_dh_lintian:
+	dh_lintian
+	# override hardening for all packages, due to upstream not recommend
+	# it usage: 
+	# https://bugs.launchpad.net/ubuntu/+source/bacula/+bug/265102/
+	for pkg in $$(sed -ne 's/Package: \(.*\)/\1/p' debian/control); do \
+		install -d "debian/$$pkg/usr/share/lintian/overrides"; \
+		echo hardening-no-fortify-functions \
+			>>"debian/$$pkg/usr/share/lintian/overrides/$$pkg"; \
+		echo hardening-no-relro \
+			>>"debian/$$pkg/usr/share/lintian/overrides/$$pkg"; \
+	done
+
 override_dh_fixperms:
 	dh_fixperms
 	chmod -x debian/bacula-sd/etc/bacula/scripts/mtx-changer.conf

-- 
Bacula, a network backup, recovery and verification program



More information about the pkg-bacula-commits mailing list