[savi] 14/16: Enable all hardening buildflags.

Bas Couwenberg sebastic at debian.org
Fri Oct 21 16:44:01 UTC 2016


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

sebastic pushed a commit to branch master
in repository savi.

commit 7f0ad6e39be54393b1806b43002fd5693dca3e36
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Sep 30 18:01:05 2016 +0200

    Enable all hardening buildflags.
---
 debian/changelog                | 1 +
 debian/patches/enable_zlib.diff | 2 +-
 debian/rules                    | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c79f273..a0d1ffc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ savi (1.5.0-1) UNRELEASED; urgency=medium
   * Refresh patches & add DEP3 headers.
   * Enable parallel dh.
   * Use CFLAGS from environment set by dpkg-buildflags.
+  * Enable all hardening buildflags.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 30 Sep 2016 16:56:33 +0200
 
diff --git a/debian/patches/enable_zlib.diff b/debian/patches/enable_zlib.diff
index 3c02d65..dae7378 100644
--- a/debian/patches/enable_zlib.diff
+++ b/debian/patches/enable_zlib.diff
@@ -51,7 +51,7 @@ Author: YunQiang Su <syq at debian.org>
  # commands and flags
  #
 -    CFLAGS = $(GCC_FLAGS) $(DEBUGFLAGS) \
-+    CFLAGS += $(GCC_FLAGS) $(DEBUGFLAGS) \
++    CFLAGS += -Wno-error=format-security $(GCC_FLAGS) $(DEBUGFLAGS) \
  		-I$(INCLUDE_DIR) $(TCL_INCLUDES)
  
  
diff --git a/debian/rules b/debian/rules
index aa05ffb..0c021cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
 %:
 	dh $@ --parallel
 

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



More information about the Pkg-grass-devel mailing list