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.
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to