From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns/files/, net-dns/pdns/
Date: Sun, 10 May 2020 19:44:35 +0000 (UTC) [thread overview]
Message-ID: <1589139833.aa8e967236b90655df2bfc796f14fc228e786f86.whissi@gentoo> (raw)
commit: aa8e967236b90655df2bfc796f14fc228e786f86
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun May 10 19:39:23 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun May 10 19:43:53 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa8e9672
net-dns/pdns: fix boost-1.73+ compatibility
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
.../pdns-4.3.0-boost-1.73-compatibility.patch | 57 ++++++++++++++++++++++
net-dns/pdns/pdns-4.3.0.ebuild | 2 +
2 files changed, 59 insertions(+)
diff --git a/net-dns/pdns/files/pdns-4.3.0-boost-1.73-compatibility.patch b/net-dns/pdns/files/pdns-4.3.0-boost-1.73-compatibility.patch
new file mode 100644
index 00000000000..5975b09f099
--- /dev/null
+++ b/net-dns/pdns/files/pdns-4.3.0-boost-1.73-compatibility.patch
@@ -0,0 +1,57 @@
+Fix compatibility with boost-1.73+
+
+Backport of https://github.com/PowerDNS/pdns/commit/71246536642590e8e8b21c11307ec4bd0e165066
+
+--- a/pdns/ixfrdist-web.cc
++++ b/pdns/ixfrdist-web.cc
+@@ -32,7 +32,7 @@ IXFRDistWebServer::IXFRDistWebServer(const ComboAddress &listenAddress, const Ne
+ {
+ d_ws->setACL(acl);
+ d_ws->setLogLevel(loglevel);
+- d_ws->registerWebHandler("/metrics", boost::bind(&IXFRDistWebServer::getMetrics, this, _1, _2));
++ d_ws->registerWebHandler("/metrics", std::bind(&IXFRDistWebServer::getMetrics, this, std::placeholders::_1, std::placeholders::_2));
+ d_ws->bind();
+ }
+
+--- a/pdns/webserver.cc
++++ b/pdns/webserver.cc
+@@ -107,7 +107,7 @@ static void bareHandlerWrapper(WebServer::HandlerFunction handler, YaHTTP::Reque
+
+ 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::HandlerFunction handler, HttpRequest* req,
+ }
+
+ 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::HandlerFunction handler, HttpRequest* req,
+ }
+
+ 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);
+ }
+
+--- a/pdns/ws-auth.cc
++++ b/pdns/ws-auth.cc
+@@ -2328,8 +2328,8 @@ void AuthWebServer::webThread()
+ d_ws->registerApiHandler("/api", &apiDiscovery);
+ }
+ if (::arg().mustDo("webserver")) {
+- d_ws->registerWebHandler("/style.css", boost::bind(&AuthWebServer::cssfunction, this, _1, _2));
+- d_ws->registerWebHandler("/", boost::bind(&AuthWebServer::indexfunction, this, _1, _2));
++ d_ws->registerWebHandler("/style.css", std::bind(&AuthWebServer::cssfunction, this, std::placeholders::_1, std::placeholders::_2));
++ d_ws->registerWebHandler("/", std::bind(&AuthWebServer::indexfunction, this, std::placeholders::_1, std::placeholders::_2));
+ }
+ d_ws->go();
+ }
diff --git a/net-dns/pdns/pdns-4.3.0.ebuild b/net-dns/pdns/pdns-4.3.0.ebuild
index 97e6ee4740a..e2c22a1c64b 100644
--- a/net-dns/pdns/pdns-4.3.0.ebuild
+++ b/net-dns/pdns/pdns-4.3.0.ebuild
@@ -48,6 +48,8 @@ BDEPEND="virtual/pkgconfig
S="${WORKDIR}"/${P/_/-}
+PATCHES=( "${FILESDIR}"/${P}-boost-1.73-compatibility.patch )
+
src_configure() {
local dynmodules="pipe bind" # the default backends, always enabled
next reply other threads:[~2020-05-10 19:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-10 19:44 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-09 18:45 [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns/files/, net-dns/pdns/ Sven Wegener
2023-09-08 7:25 Sven Wegener
2023-02-16 21:20 Sven Wegener
2022-03-31 19:01 Sven Wegener
2021-06-27 21:07 Sven Wegener
2017-10-30 13:27 Sven Wegener
2017-05-25 15:04 Sven Wegener
2017-05-02 12:50 Sven Wegener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1589139833.aa8e967236b90655df2bfc796f14fc228e786f86.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox