[Debian-med-packaging] Bug#865655: pirs shouldn't disable PIE

Adrian Bunk bunk at debian.org
Fri Jun 23 14:17:35 UTC 2017


Source: pirs
Version: 2.0.2+dfsg-5.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-23 14:15:56.000000000 +0000
+++ debian/rules	2017-06-23 14:16:01.000000000 +0000
@@ -2,7 +2,7 @@
 
 # DH_VERBOSE := 1
 
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 PERLDIR    := debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)



More information about the Debian-med-packaging mailing list