From 2fd8544ba4750021a440f18ec3d3c01e23d674aa Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 26 Feb 2009 16:37:43 +0000 Subject: [PATCH] - Fix build with gcc4.4 --- pdns-gcc44.patch | 11 +++++++++++ pdns.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 pdns-gcc44.patch diff --git a/pdns-gcc44.patch b/pdns-gcc44.patch new file mode 100644 index 0000000..cba5412 --- /dev/null +++ b/pdns-gcc44.patch @@ -0,0 +1,11 @@ +diff -up pdns-2.9.22/pdns/misc.hh.orig pdns-2.9.22/pdns/misc.hh +--- pdns-2.9.22/pdns/misc.hh.orig 2009-02-26 17:09:41.000000000 +0100 ++++ pdns-2.9.22/pdns/misc.hh 2009-02-26 17:09:54.000000000 +0100 +@@ -20,6 +20,7 @@ + #define MISC_HH + #include + #include ++#include + + #if 0 + #include diff --git a/pdns.spec b/pdns.spec index dacfcf5..f39551e 100644 --- a/pdns.spec +++ b/pdns.spec @@ -1,7 +1,7 @@ Summary: A modern, advanced and high performance authoritative-only nameserver Name: pdns Version: 2.9.22 -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Daemons License: GPLv2 @@ -9,6 +9,7 @@ URL: http://powerdns.com BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz Patch0: %{name}-fixinit.patch +Patch1: %{name}-gcc44.patch Requires(post): %{_sbindir}/useradd, /sbin/chkconfig Requires(preun): /sbin/service, /sbin/chkconfig @@ -80,6 +81,7 @@ This package contains the SQLite backend for %{name} %prep %setup -q %patch0 -p1 -b .fixinit +%patch1 -p1 -b .gcc44 %build export CPPFLAGS="-DLDAP_DEPRECATED %{optflags}" @@ -179,6 +181,9 @@ fi %changelog +* Thu Feb 26 2009 Ruben Kerkhof - 2.9.22-5 +- Fix build with gcc4.4 + * Thu Feb 26 2009 Fedora Release Engineering - 2.9.22-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild