[gdal-grass] 01/01: Disable PIE on Ubuntu where it's still problematic.

Bas Couwenberg sebastic at debian.org
Sun Jun 4 17:50:07 UTC 2017


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

sebastic pushed a commit to branch experimental-2.2
in repository gdal-grass.

commit 3ceb43613537f6cfbd8e4b36d388ca30af7bf076
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Jun 4 19:49:51 2017 +0200

    Disable PIE on Ubuntu where it's still problematic.
---
 debian/changelog | 6 ++++++
 debian/rules     | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index df7ec4d..74abbd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libgdal-grass (2.2.0-1~exp2) UNRELEASED; urgency=medium
+
+  * Disable PIE on Ubuntu where it's still problematic.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 04 Jun 2017 19:49:37 +0200
+
 libgdal-grass (2.2.0-1~exp1) experimental; urgency=medium
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index 79a52d6..cdebb8a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,13 @@
 # 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
+
 PKGNAME=$(shell grep Package: debian/control.in | head -1 | cut -d' ' -f2)
 GRASS=grass$(subst .,,$(shell pkg-config --modversion grass | cut -d. -f1,2))
 GRASS_ABI=grass$(subst .,,$(shell pkg-config --modversion grass | cut -d. -f1,2,3 | sed -e 's/RC/-/'))

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



More information about the Pkg-grass-devel mailing list