[osmctools] 08/09: Enable all hardening buildflags.

Bas Couwenberg sebastic at debian.org
Fri Mar 31 09:34:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository osmctools.

commit 0cc5b9a118e8c6981ed866a97b4576c50b99b2f1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Mar 31 11:31:34 2017 +0200

    Enable all hardening buildflags.
---
 debian/changelog |  1 +
 debian/rules     | 10 ++--------
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5917f9f..68ad061 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ osmctools (0.7-1) UNRELEASED; urgency=medium
   * Update man pages for upstream changes.
   * Bump Standards-Version to 3.9.8, no changes.
   * Update openstreetmap.org URLs in man pages to use HTTPS.
+  * Enable all hardening buildflags.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 31 Mar 2017 10:51:52 +0200
 
diff --git a/debian/rules b/debian/rules
index cb3d949..63e2b04 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,15 +3,9 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-export DEB_BUILD_HARDENING=1
 
-CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
-
-PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
-PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 %:
 	dh $@ --with autoreconf --parallel

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/osmctools.git



More information about the Pkg-grass-devel mailing list