[pdns] Enable hardened build, thanks Ruben Kerkhof

Morten Stevens mstevens at fedoraproject.org
Tue Mar 5 18:38:19 UTC 2013


commit c1598f56d898cdbbd35cfa91b66ff34320aadb2a
Author: Morten Stevens <mstevens at imt-systems.com>
Date:   Tue Mar 5 19:37:19 2013 +0100

    Enable hardened build, thanks Ruben Kerkhof

 pdns.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/pdns.spec b/pdns.spec
index 6f2e138..2ff060c 100644
--- a/pdns.spec
+++ b/pdns.spec
@@ -1,8 +1,9 @@
+%global _hardened_build 1
 %global backends %{nil}
 
 Name: pdns
 Version: 3.2
-Release: 4%{?dist}
+Release: 5%{?dist}
 Summary: A modern, advanced and high performance authoritative-only nameserver
 Group: System Environment/Daemons
 License: GPLv2
@@ -94,7 +95,7 @@ This package contains the SQLite backend for %{name}
 %patch0 -p1 -b .default-config-patch
 
 %build
-export CPPFLAGS="-DLDAP_DEPRECATED %{optflags}"
+export CPPFLAGS="-DLDAP_DEPRECATED"
 
 %configure \
 	--sysconfdir=%{_sysconfdir}/%{name} \
@@ -198,6 +199,9 @@ exit 0
 %doc pdns/bind-dnssec.schema.sqlite3.sql
 
 %changelog
+* Tue Mar 05 2013 Ruben Kerkhof <ruben at rubenkerkhof.com> - 3.2-5
+- Enable hardened build as per http://fedoraproject.org/wiki/Packaging:Guidelines#PIE
+
 * Mon Feb 11 2013 Ruben Kerkhof <ruben at rubenkerkhof.com> - 3.2-4
 - Enable PrivateTmp as per http://fedoraproject.org/wiki/Features/ServicesPrivateTmp
 - Fix bogus date in changelog


More information about the scm-commits mailing list