From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 363AD138359 for ; Wed, 14 Oct 2020 07:13:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E231E0866; Wed, 14 Oct 2020 07:13:07 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53EC6E0866 for ; Wed, 14 Oct 2020 07:13:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED524335D83 for ; Wed, 14 Oct 2020 07:13:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 775BF38E for ; Wed, 14 Oct 2020 07:13:04 +0000 (UTC) From: "Sven Wegener" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Wegener" Message-ID: <1602659391.a0014e52097aa0abc9f681c8f0b589a482c5781c.swegener@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/files/, net-dns/pdns-recursor/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/pdns-recursor/files/pdns-recursor-4.3.5-boost-1.73.0.patch net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild X-VCS-Directories: net-dns/pdns-recursor/ net-dns/pdns-recursor/files/ X-VCS-Committer: swegener X-VCS-Committer-Name: Sven Wegener X-VCS-Revision: a0014e52097aa0abc9f681c8f0b589a482c5781c X-VCS-Branch: master Date: Wed, 14 Oct 2020 07:13:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3fd7a9ef-95ad-412e-ac26-705848679543 X-Archives-Hash: 5eba0b91acd092e68851fe143629f5a5 commit: a0014e52097aa0abc9f681c8f0b589a482c5781c Author: Sven Wegener gentoo org> AuthorDate: Wed Oct 14 07:08:29 2020 +0000 Commit: Sven Wegener gentoo org> CommitDate: Wed Oct 14 07:09:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0014e52 net-dns/pdns-recursor: Add part of boost-1.73 patch for 4.3.5 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sven Wegener gentoo.org> .../files/pdns-recursor-4.3.5-boost-1.73.0.patch | 47 ++++++++++++++++++++++ net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild | 4 ++ 2 files changed, 51 insertions(+) diff --git a/net-dns/pdns-recursor/files/pdns-recursor-4.3.5-boost-1.73.0.patch b/net-dns/pdns-recursor/files/pdns-recursor-4.3.5-boost-1.73.0.patch new file mode 100644 index 00000000000..40a6ae56584 --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-4.3.5-boost-1.73.0.patch @@ -0,0 +1,47 @@ +From 71246536642590e8e8b21c11307ec4bd0e165066 Mon Sep 17 00:00:00 2001 +From: Remi Gacogne +Date: Tue, 28 Apr 2020 17:51:47 +0200 +Subject: [PATCH] Replace boost's placeholders with the ones from the std + namespace + +Boost 1.73 moved boost::bind placeholders to the placeholders +namespace which did not exist before 1.60, let's switch to +std::bind and std::placeholders instead of doing per-version handling. +--- + pdns/ixfrdist-web.cc | 2 +- + pdns/webserver.cc | 6 +++--- + pdns/ws-auth.cc | 4 ++-- + pdns/ws-recursor.cc | 12 ++++++------ + 4 files changed, 12 insertions(+), 12 deletions(-) + +diff --git a/webserver.cc b/webserver.cc +index eafd3059a0..b47cc6d7e0 100644 +--- a/webserver.cc ++++ b/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); + } + diff --git a/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild index 0806261b1f4..a02b4e16a14 100644 --- a/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild +++ b/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild @@ -36,6 +36,10 @@ BDEPEND="virtual/pkgconfig" S="${WORKDIR}"/${P/_/-} +PATCHES=( + "${FILESDIR}"/${P}-boost-1.73.0.patch +) + pkg_setup() { filter-flags -ftree-vectorize }