Date: Thu, 28 Jul 2005 07:20:26 GMT From: Ralf van der Enden <tremere@cainites.net> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/84176: net/powerdns: Fix OpenLDAP compilation on systems with an old version of libtool Message-ID: <200507280720.j6S7KQPq070872@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/84176; it has been noted by GNATS. From: Ralf van der Enden <tremere@cainites.net> To: bug-followup@FreeBSD.org, tremere@cainites.net Cc: Subject: Re: ports/84176: net/powerdns: Fix OpenLDAP compilation on systems with an old version of libtool Date: Thu, 28 Jul 2005 09:12:24 +0200 This is a multi-part message in MIME format. --------------060101050008070808000709 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I've had contact with a person using the LDAP backend and it appears this still doesn't fix it completely. However, I've found a patch submitted by the author of PowerDNS. It can be applied after the previous patch. Regards, Ralf --------------060101050008070808000709 Content-Type: text/plain; name="pdns-2.9.18.ldap-cvs-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pdns-2.9.18.ldap-cvs-fix.patch" diff -ruN powerdns.orig/files/patch-modules_ldapbackend_utils_hh powerdns/files/patch-modules_ldapbackend_utils_hh --- powerdns.orig/files/patch-modules_ldapbackend_utils_hh Thu Jan 1 01:00:00 1970 +++ powerdns/files/patch-modules_ldapbackend_utils_hh Thu Jul 28 09:05:15 2005 @@ -0,0 +1,42 @@ +--- modules/ldapbackend/utils.hh.orig Sat Apr 23 23:40:15 2005 ++++ modules/ldapbackend/utils.hh Thu Jul 28 09:03:14 2005 +@@ -73,7 +73,7 @@ + } + + +-inline string ip2ptr4( string ip ) ++inline string ip2ptr4( const string& ip ) + { + string ptr; + vector<string> parts; +@@ -89,7 +89,7 @@ + } + + +-inline string ip2ptr6( string ip ) ++inline string ip2ptr6( const string& ip ) + { + string ptr, part, defstr; + vector<string> parts; +@@ -114,6 +114,21 @@ + } + + return ptr + "ip6.arpa"; ++} ++ ++ ++inline string strbind( const string& search, const string& replace, string subject ) ++{ ++ size_t pos = 0; ++ ++ ++ while( ( pos = subject.find( search, pos ) ) != string::npos ) ++ { ++ subject.replace( pos, search.size(), replace ); ++ pos += replace.size(); ++ } ++ ++ return subject; + } + + #endif --------------060101050008070808000709--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507280720.j6S7KQPq070872>