ports/77480: Added a patch to fix compilation on FreeBSD 6.0

Ralf van der Enden tremere at cainites.net
Mon Feb 14 07:30:43 UTC 2005


>Number:         77480
>Category:       ports
>Synopsis:       Added a patch to fix compilation on FreeBSD 6.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 14 07:30:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Ralf van der Enden
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD lan.cainites.net 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #0: Wed Jan 26 23:24:15 CET 2005 root at lan.cainites.net:/usr/obj/usr/src/sys/HELLKERNEL i386


	
>Description:
Added a patch from the PowerDNS author that should fix compilation issues on FreeBSD 6.0
and possibly some other systems as well.
>How-To-Repeat:
	
>Fix:

	

--- pdns-2.9.17_1.diff begins here ---
diff -ruN powerdns.orig/Makefile powerdns/Makefile
--- powerdns.orig/Makefile	Tue Feb  1 11:17:09 2005
+++ powerdns/Makefile	Fri Feb 11 14:10:19 2005
@@ -7,6 +7,7 @@
 
 PORTNAME=	powerdns
 PORTVERSION=	2.9.17
+PORTREVISION=	1
 CATEGORIES=	dns ipv6
 MASTER_SITES=	http://downloads.powerdns.com/releases/
 DISTNAME=	pdns-${PORTVERSION}
@@ -31,10 +32,6 @@
 LIBMAP_CONF=	/etc/libmap.conf
 
 .include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 600000
-BROKEN=	"Does not compile on FreeBSD 6.0"
-.endif
 
 # use user config if possible
 .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
diff -ruN powerdns.orig/files/patch-pdns_logger_cc powerdns/files/patch-pdns_logger_cc
--- powerdns.orig/files/patch-pdns_logger_cc	Thu Jan  1 01:00:00 1970
+++ powerdns/files/patch-pdns_logger_cc	Fri Feb 11 12:52:12 2005
@@ -0,0 +1,28 @@
+--- pdns/logger.cc.orig	Fri Feb 11 12:49:28 2005
++++ pdns/logger.cc	Fri Feb 11 12:51:16 2005
+@@ -131,6 +131,25 @@
+   return *this;
+ }
+ 
++Logger& Logger::operator<<(long i)
++{
++  ostringstream tmp;
++  tmp<<i;
++
++  *this<<tmp.str();
++
++  return *this;
++}
++
++Logger& Logger::operator<<(unsigned long i)
++{
++  ostringstream tmp;
++  tmp<<i;
++
++  *this<<tmp.str();
++
++  return *this;
++}
+ 
+ Logger& Logger::operator<<(ostream & (&)(ostream &))
+ {
diff -ruN powerdns.orig/files/patch-pdns_logger_hh powerdns/files/patch-pdns_logger_hh
--- powerdns.orig/files/patch-pdns_logger_hh	Thu Jan  1 01:00:00 1970
+++ powerdns/files/patch-pdns_logger_hh	Sat Jan 29 13:19:53 2005
@@ -0,0 +1,11 @@
+--- pdns/logger.hh.orig	Sat Jan 29 12:51:20 2005
++++ pdns/logger.hh	Sat Jan 29 12:52:22 2005
+@@ -111,6 +111,8 @@
+   Logger& operator<<(const string &s);   //!< log a string
+   Logger& operator<<(int);   //!< log an int
+   Logger& operator<<(unsigned int);   //!< log an unsigned int
++  Logger& operator<<(long);   //!< log a long
++  Logger& operator<<(unsigned long);   //!< log an unsigned long
+   Logger& operator<<(Urgency);    //!< set the urgency, << style
+ 
+ #ifndef WIN32
--- pdns-2.9.17_1.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list