Bas Couwenberg pushed to branch master at Debian GIS Project / pywps

Commits:
8af34d66 by Bas Couwenberg at 2018-06-29T20:55:28+02:00
Disable PIE only on older Ubuntu releases.

- - - - -


3 changed files:

- debian/changelog
- debian/control
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ pywps (4.0.0-6) UNRELEASED; urgency=medium
 
   * Drop ancient X-Python-Version field.
   * Strip trailing whitespace from control & rules files.
+  * Disable PIE only on older Ubuntu releases.
 
  -- Bas Couwenberg <[email protected]>  Sun, 06 May 2018 09:22:02 +0200
 


=====================================
debian/control
=====================================
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,7 @@ Build-Depends: debhelper (>= 9),
                dh-apache2,
                dh-python,
                libjs-mathjax,
+               lsb-release,
                python-all,
                python-dateutil,
                python-flufl.enum,


=====================================
debian/rules
=====================================
--- a/debian/rules
+++ b/debian/rules
@@ -14,9 +14,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
 
 %:



View it on GitLab: 
https://salsa.debian.org/debian-gis-team/pywps/commit/8af34d66b92757fa35e08985c9c9f936c3402d2d

-- 
View it on GitLab: 
https://salsa.debian.org/debian-gis-team/pywps/commit/8af34d66b92757fa35e08985c9c9f936c3402d2d
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to