[postgis] 02/06: Disable PIE on Ubuntu where it's still problematic.
    Bas Couwenberg 
    sebastic at debian.org
       
    Sun Jun 25 09:54:29 UTC 2017
    
    
  
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository postgis.
commit 7c64f7375d2bfd75f2e2a8fa788fe546ac29a5d2
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Jun 25 10:52:25 2017 +0200
    Disable PIE on Ubuntu where it's still problematic.
---
 debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/debian/rules b/debian/rules
index 9274bd9..1ff6aa9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,13 @@ export DH_OPTIONS
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# Disable PIE on Ubuntu where it's still problematic
+VENDOR_DERIVES_FROM_UBUNTU ?= $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
+
+ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
+	export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+endif
+
 # Magic to automatically create a debian/control file for the (or all)
 # supported versions of Postgres.
 #
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis.git
    
    
More information about the Pkg-grass-devel
mailing list