[libterm-slang-perl] 15/15: Use dh_auto_build, but disable "format" hardening for now
    Axel Beckert 
    abe at deuxchevaux.org
       
    Tue Dec 24 01:44:58 UTC 2013
    
    
  
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libterm-slang-perl.
commit 1c0cbef111720fc14c6d7498c67a1ddde455e25e
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Dec 24 02:44:36 2013 +0100
    Use dh_auto_build, but disable "format" hardening for now
    
    See http://bugs.debian.org/661546
    
    Fixes lintian warning hardening-no-fortify-functions
---
 debian/changelog |  5 +++--
 debian/rules     | 12 +-----------
 2 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b5b8c19..957ac05 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,8 +44,9 @@ libterm-slang-perl (0.07-12) UNRELEASED; urgency=low
     + Replace "dh_clean -k" with "dh_prep"
     + Remove obsolete dh_{clean,installchangelogs} parameters
     + Move dh_install{docs,examples} parameters to debian/{docs,examples}
-    + Use dh_auto_{configure,test,install,clean}
-      - Not using dh_auto_build for now, c.f. #661546
+    + Use dh_auto_{configure,build,test,install,clean}
+      - Disable "format" hardening for now, c.f. #661546
+      - Fixes lintian warning hardening-no-fortify-functions
     + Remove obsolete /usr/share/perl5 handling
     + Remove obsolete variable usage
     + Finally switch to a minimal dh-style debian/rules file
diff --git a/debian/rules b/debian/rules
index 1ef97fe..f14149a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,17 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# Allow disabling build optimisation by setting noopt in
-# $DEB_BUILD_OPTIONS
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
-else
-        CFLAGS += -O2
-endif
+export DEB_BUILD_MAINT_OPTIONS=hardening=-format
 
 %:
 	dh $@
-
-override_dh_auto_build:
-	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libterm-slang-perl.git
    
    
More information about the Pkg-perl-cvs-commits
mailing list