pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/powerdns-recursor/patches powerdns-recursor: Remov...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/883052255f14
branches:  trunk
changeset: 440834:883052255f14
user:      otis <otis%pkgsrc.org@localhost>
date:      Mon Oct 19 19:40:36 2020 +0000

description:
powerdns-recursor: Remove patches not needed in 4.4.0

diffstat:

 net/powerdns-recursor/patches/patch-webserver.cc   |  35 ----------------------
 net/powerdns-recursor/patches/patch-ws-recursor.cc |  24 ---------------
 2 files changed, 0 insertions(+), 59 deletions(-)

diffs (67 lines):

diff -r 17d937821da8 -r 883052255f14 net/powerdns-recursor/patches/patch-webserver.cc
--- a/net/powerdns-recursor/patches/patch-webserver.cc  Mon Oct 19 18:58:59 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-webserver.cc,v 1.1 2020/06/17 22:55:11 otis Exp $
-
-boost 1.73 moved placeholders into std::placeholders namespace
-backport changes based on PR #9070 from
-https://github.com/PowerDNS/pdns/pull/9070/
-
---- webserver.cc.orig  2020-05-08 09:30:45.000000000 +0000
-+++ webserver.cc
-@@ -107,7 +107,7 @@ static void bareHandlerWrapper(WebServer
- 
- void WebServer::registerBareHandler(const string& url, HandlerFunction handler)
- {
--  YaHTTP::THandlerFunction f = boost::bind(&bareHandlerWrapper, handler, _1, _2);
-+  YaHTTP::THandlerFunction f = std::bind(&bareHandlerWrapper, handler, std::placeholders::_1, std::placeholders::_2);
-   YaHTTP::Router::Any(url, f);
- }
- 
-@@ -179,7 +179,7 @@ void WebServer::apiWrapper(WebServer::Ha
- }
- 
- void WebServer::registerApiHandler(const string& url, HandlerFunction handler, bool allowPassword) {
--  HandlerFunction f = boost::bind(&WebServer::apiWrapper, this, handler, _1, _2, allowPassword);
-+  HandlerFunction f = std::bind(&WebServer::apiWrapper, this, handler, std::placeholders::_1, std::placeholders::_2, allowPassword);
-   registerBareHandler(url, f);
- }
- 
-@@ -196,7 +196,7 @@ void WebServer::webWrapper(WebServer::Ha
- }
- 
- void WebServer::registerWebHandler(const string& url, HandlerFunction handler) {
--  HandlerFunction f = boost::bind(&WebServer::webWrapper, this, handler, _1, _2);
-+  HandlerFunction f = std::bind(&WebServer::webWrapper, this, handler, std::placeholders::_1, std::placeholders::_2);
-   registerBareHandler(url, f);
- }
- 
diff -r 17d937821da8 -r 883052255f14 net/powerdns-recursor/patches/patch-ws-recursor.cc
--- a/net/powerdns-recursor/patches/patch-ws-recursor.cc        Mon Oct 19 18:58:59 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-ws-recursor.cc,v 1.1 2020/06/17 22:55:11 otis Exp $
-
-boost 1.73 moved placeholders into std::placeholders namespace
-backport changes based on PR #9070 from
-https://github.com/PowerDNS/pdns/pull/9070/
-
---- ws-recursor.cc.orig        2020-05-08 09:31:59.000000000 +0000
-+++ ws-recursor.cc
-@@ -512,7 +512,7 @@ RecursorWebServer::RecursorWebServer(FDM
-   d_ws->bind();
- 
-   // legacy dispatch
--  d_ws->registerApiHandler("/jsonstat", boost::bind(&RecursorWebServer::jsonstat, this, _1, _2), true);
-+  d_ws->registerApiHandler("/jsonstat", std::bind(&RecursorWebServer::jsonstat, this, std::placeholders::_1, std::placeholders::_2), true);
-   d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", &apiServerCacheFlush);
-   d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", &apiServerConfigAllowFrom);
-   d_ws->registerApiHandler("/api/v1/servers/localhost/config", &apiServerConfig);
-@@ -743,5 +743,5 @@ void AsyncWebServer::go() {
-   auto server = std::dynamic_pointer_cast<AsyncServer>(d_server);
-   if (!server)
-     return;
--  server->asyncWaitForConnections(d_fdm, boost::bind(&AsyncWebServer::serveConnection, this, _1));
-+  server->asyncWaitForConnections(d_fdm, std::bind(&AsyncWebServer::serveConnection, this, std::placeholders::_1));
- }



Home | Main Index | Thread Index | Old Index