[Git][debian-gis-team/postgis][experimental] Disable PIE on Ubuntu xenial again, still causing issues.
Christoph Berg
gitlab at salsa.debian.org
Fri Oct 11 13:15:12 BST 2019
Christoph Berg pushed to branch experimental at Debian GIS Project / postgis
Commits:
765f6ffb by Christoph Berg at 2019-10-11T12:14:49Z
Disable PIE on Ubuntu xenial again, still causing issues.
https://trac.osgeo.org/postgis/ticket/4532
- - - - -
2 changed files:
- debian/changelog
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,6 +1,7 @@
postgis (3.0.0~rc1+dfsg-1~exp2) UNRELEASED; urgency=medium
* regress/run_test.pl: Cherry-pick fix for running on installed packages.
+ * Disable PIE on Ubuntu xenial again, still causing issues.
-- Christoph Berg <myon at debian.org> Tue, 08 Oct 2019 11:53:04 +0200
=====================================
debian/rules
=====================================
@@ -10,6 +10,16 @@ export DH_OPTIONS
# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+# Disable PIE on Ubuntu xenial (causes "undefined reference to symbol 'roundf@@GLIBC_2.2.5'")
+VENDOR_DERIVES_FROM_UBUNTU ?= $(shell dpkg-vendor --derives-from Ubuntu && echo yes)
+DISTRIBUTION_RELEASE := $(shell lsb_release -cs)
+
+ifeq ($(VENDOR_DERIVES_FROM_UBUNTU),yes)
+ ifneq (,$(filter $(DISTRIBUTION_RELEASE),xenial))
+ export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+ endif
+endif
+
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/commit/765f6ffbc61dd611b21113c1e8d3a441f491907e
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/commit/765f6ffbc61dd611b21113c1e8d3a441f491907e
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/20191011/c3aa972e/attachment.html>
More information about the Pkg-grass-devel
mailing list