Bug#865775: postgis shouldn't disable PIE

Adrian Bunk bunk at debian.org
Sat Jun 24 18:37:33 UTC 2017


Source: postgis
Version: 2.3.2+dfsg-1
Severity: normal
Tags: patch

With gcc in stretch defaulting to PIE, hardening=+all,-pie changed
semantics from "enable hardening but not PIE" to "enable all hardening
and explicitely disable the default PIE".
The latter is usually not intended.

The -pie in hardening flags was in some cases required in pre-stretch
releases to avoid build failures caused by (incorrectly) passing -fPIE
to the compiler when building shared libraries or plugins.
This problem does no longer exist.

Please consider applying the following patch:

--- debian/rules.old	2017-06-24 18:29:40.000000000 +0000
+++ debian/rules	2017-06-24 18:29:49.000000000 +0000
@@ -7,9 +7,8 @@
 # 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
+# Enable hardening build flags
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 # Magic to automatically create a debian/control file for the (or all)
 # supported versions of Postgres.



More information about the Pkg-grass-devel mailing list