[postgis] 02/03: Enable all hardening buildflags except PIE (causes build failure).

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Wed Mar 23 22:31:04 UTC 2016


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

sebastic pushed a commit to branch master
in repository postgis.

commit 81997c836d352ccf9ead4a812fd2a60a7ee87699
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Mar 23 22:08:48 2016 +0100

    Enable all hardening buildflags except PIE (causes build failure).
---
 debian/changelog                 | 1 +
 debian/postgis.lintian-overrides | 2 ++
 debian/rules                     | 4 ++++
 3 files changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 107fa6a..1c0af2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ postgis (2.2.2+dfsg-1) UNRELEASED; urgency=medium
   * Drop patches applied upstream.
   * Drop hppa.patch, fixed upstream.
   * Update copyright years for Regina Obe & Sandro Santilli.
+  * Enable all hardening buildflags except PIE (causes build failure).
 
  -- Bas Couwenberg <sebastic at debian.org>  Wed, 23 Mar 2016 01:13:18 +0100
 
diff --git a/debian/postgis.lintian-overrides b/debian/postgis.lintian-overrides
new file mode 100644
index 0000000..f172802
--- /dev/null
+++ b/debian/postgis.lintian-overrides
@@ -0,0 +1,2 @@
+# PIE breaks the build
+postgis: hardening-no-pie *
diff --git a/debian/rules b/debian/rules
index 031f6dc..5442f83 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,10 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
+# Enable hardening build flags, except:
+#  pie: causes build failure
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+
 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
 DPKG_EXPORT_BUILDFLAGS = 1

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



More information about the Pkg-grass-devel mailing list