[Git][debian-gis-team/zoo-project][master] Disable PIE only on older Ubuntu releases.

Bas Couwenberg gitlab at salsa.debian.org
Fri Jun 29 19:56:27 BST 2018


Bas Couwenberg pushed to branch master at Debian GIS Project / zoo-project


Commits:
4ef8f69e by Bas Couwenberg at 2018-06-29T20:56:19+02:00
Disable PIE only on older Ubuntu releases.

- - - - -


2 changed files:

- debian/control
- debian/rules


Changes:

=====================================
debian/control
=====================================
--- a/debian/control
+++ b/debian/control
@@ -23,6 +23,7 @@ Build-Depends: debhelper (>= 9),
                libtinyxml-dev,
                libxml2-dev,
                libxslt1-dev,
+               lsb-release,
                otb-bin,
                otb-bin-qt,
                python-all,


=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -6,9 +6,12 @@ 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)
+DISTRIBUTION_RELEASE       := $(shell lsb_release -cs)
 
 ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
-	export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+  ifneq (,$(filter $(DISTRIBUTION_RELEASE),trusty xenial artful bionic))
+    export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+  endif
 endif
 
 include /usr/share/dpkg/pkg-info.mk



View it on GitLab: https://salsa.debian.org/debian-gis-team/zoo-project/commit/4ef8f69e271a60f3eab42008924fff2ad416eda5

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/zoo-project/commit/4ef8f69e271a60f3eab42008924fff2ad416eda5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20180629/0ab8ee49/attachment.html>


More information about the Pkg-grass-devel mailing list