rpms/pdns/devel pdns-gcc43.patch,NONE,1.1 pdns.spec,1.9,1.10

Ruben Kerkhof (ruben) fedora-extras-commits at redhat.com
Sat Feb 9 14:54:13 UTC 2008


Author: ruben

Update of /cvs/pkgs/rpms/pdns/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10468

Modified Files:
	pdns.spec 
Added Files:
	pdns-gcc43.patch 
Log Message:
* Sat Feb 09 2008 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21-4
- GCC 4.3 fixes


pdns-gcc43.patch:

--- NEW FILE pdns-gcc43.patch ---
diff -up pdns-2.9.21/pdns/misc.hh.orig pdns-2.9.21/pdns/misc.hh
--- pdns-2.9.21/pdns/misc.hh.orig	2008-02-09 15:32:57.000000000 +0100
+++ pdns-2.9.21/pdns/misc.hh	2008-02-09 15:33:23.000000000 +0100
@@ -19,6 +19,7 @@
 #ifndef MISC_HH
 #define MISC_HH
 #include <stdint.h>
+#include <cstring>
 
 #if 0
 #define RDTSC(qp) \
@@ -234,7 +235,7 @@ inline bool dns_isspace(char c)
   return c==' ' || c=='\t' || c=='\r' || c=='\n';
 }
 
-inline const char dns_tolower(char c)
+inline char dns_tolower(char c)
 {
   if(c>='A' && c<='Z')
     c+='a'-'A';
diff -up pdns-2.9.21/pdns/dns.hh.orig pdns-2.9.21/pdns/dns.hh
--- pdns-2.9.21/pdns/dns.hh.orig	2008-02-09 15:37:26.000000000 +0100
+++ pdns-2.9.21/pdns/dns.hh	2008-02-09 15:37:43.000000000 +0100
@@ -115,7 +115,7 @@ struct EDNS0Record 
 #pragma pack (pop)
 #endif 
 
-typedef enum  {
+enum  {
         ns_t_invalid = 0,       /* Cookie. */
         ns_t_a = 1,             /* Host address. */
         ns_t_ns = 2,            /* Authoritative server. */
diff -up pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig pdns-2.9.21/modules/ldapbackend/powerldap.cc
--- pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig	2008-02-09 15:41:12.000000000 +0100
+++ pdns-2.9.21/modules/ldapbackend/powerldap.cc	2008-02-09 15:42:17.000000000 +0100
@@ -1,4 +1,6 @@
 #include "powerldap.hh"
+// for timeval
+#include <sys/time.h>
 
 
 
diff -up pdns-2.9.21/pdns/dynmessenger.cc.orig pdns-2.9.21/pdns/dynmessenger.cc
--- pdns-2.9.21/pdns/dynmessenger.cc.orig	2008-02-09 15:47:52.000000000 +0100
+++ pdns-2.9.21/pdns/dynmessenger.cc	2008-02-09 15:48:38.000000000 +0100
@@ -18,6 +18,7 @@
 */
 #include "dynmessenger.hh"
 #include <cstdio>
+#include <cstdlib>
 #include <cstring>
 #include <cerrno>
 #include <iostream>


Index: pdns.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pdns/devel/pdns.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- pdns.spec	5 Dec 2007 21:54:57 -0000	1.9
+++ pdns.spec	9 Feb 2008 14:53:39 -0000	1.10
@@ -1,7 +1,7 @@
 Summary:	A modern, advanced and high performance authoritative-only nameserver
 Name:		pdns
 Version:	2.9.21
-Release:	3%{?dist}
+Release:	4%{?dist}
 
 Group:		System Environment/Daemons
 License:	GPLv2
@@ -10,6 +10,7 @@
 Source0:	http://downloads.powerdns.com/releases/%{name}-%{version}.tar.gz
 Patch0:		%{name}-fixinit.patch
 Patch1:		%{name}-avoid-version.patch
+Patch2:		%{name}-gcc43.patch
 
 Requires(post):	%{_sbindir}/useradd, /sbin/chkconfig
 Requires(preun):	/sbin/service, /sbin/chkconfig
@@ -82,6 +83,7 @@
 %setup -q
 %patch0 -p1 -b .fixinit
 %patch1 -p1 -b .avoid-version
+%patch2 -p1
 
 %build
 export CPPFLAGS="-DLDAP_DEPRECATED %{optflags}"
@@ -181,6 +183,9 @@
 
 
 %changelog
+* Sat Feb 09 2008 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21-4
+- GCC 4.3 fixes
+
 * Wed Dec 05 2007 Ruben Kerkhof <ruben at rubenkerkhof.com> 2.9.21-3
 - Rebuild to pick up new openldap
 




More information about the fedora-extras-commits mailing list