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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEC11158086 for ; Sun, 31 Oct 2021 04:22:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01D77E09EF; Sun, 31 Oct 2021 04:22:34 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCE75E09EF for ; Sun, 31 Oct 2021 04:22:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9EE9934357B for ; Sun, 31 Oct 2021 04:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA4B7D0 for ; Sun, 31 Oct 2021 04:22:30 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1635654123.116d6431c3830f6332bc67e1ec591fcbe6542bdc.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/files/, net-libs/libtorrent-rasterbar/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-boost-1.76.patch net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild X-VCS-Directories: net-libs/libtorrent-rasterbar/ net-libs/libtorrent-rasterbar/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 116d6431c3830f6332bc67e1ec591fcbe6542bdc X-VCS-Branch: master Date: Sun, 31 Oct 2021 04:22:30 +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: 69927219-377a-4235-8d29-e1b0844520ed X-Archives-Hash: 6f8fe4171111ff2cedd47d02581b0413 commit: 116d6431c3830f6332bc67e1ec591fcbe6542bdc Author: Sam James gentoo org> AuthorDate: Sun Oct 31 04:22:03 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Oct 31 04:22:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116d6431 net-libs/libtorrent-rasterbar: add Boost 1.76(?) patch Closes: https://bugs.gentoo.org/820836 Signed-off-by: Sam James gentoo.org> .../libtorrent-rasterbar-2.0.4-boost-1.76.patch | 58 ++++++++++++++++++++++ .../libtorrent-rasterbar-2.0.4-r3.ebuild | 1 + 2 files changed, 59 insertions(+) diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-boost-1.76.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-boost-1.76.patch new file mode 100644 index 00000000000..5e8e04e940f --- /dev/null +++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-boost-1.76.patch @@ -0,0 +1,58 @@ +https://github.com/paullouisageneau/boost-asio-gnutls/commit/895105972e5a9318d572b147c1872f64d23e2a8e +https://bugs.gentoo.org/820836 + +From 895105972e5a9318d572b147c1872f64d23e2a8e Mon Sep 17 00:00:00 2001 +From: Shantanu Singh +Date: Fri, 18 Sep 2020 14:01:39 -0700 +Subject: [PATCH] Use fully qualified std::placeholders to prevent conflicts + with boost::placeholders + +--- a/deps/asio-gnutls/include/boost/asio/gnutls/stream.hpp ++++ b/deps/asio-gnutls/include/boost/asio/gnutls/stream.hpp +@@ -244,8 +244,7 @@ template class stream : public stream_base + return; + } + +- using namespace std::placeholders; +- m_impl->read_handler = std::bind(callable, _1, _2); ++ m_impl->read_handler = std::bind(callable, std::placeholders::_1, std::placeholders::_2); + m_impl->bytes_read = 0; + m_impl->async_schedule(); + return callable.get_completion_result(); +@@ -293,8 +292,7 @@ template class stream : public stream_base + return; + } + +- using namespace std::placeholders; +- m_impl->write_handler = std::bind(callable, _1, _2); ++ m_impl->write_handler = std::bind(callable, std::placeholders::_1, std::placeholders::_2); + m_impl->bytes_written = 0; + m_impl->async_schedule(); + return callable.get_completion_result(); +@@ -568,8 +566,6 @@ template class stream : public stream_base + + void async_schedule() + { +- using namespace std::placeholders; +- + if (!parent) return; + auto& next_layer = parent->m_next_layer; + +@@ -581,14 +577,14 @@ template class stream : public stream_base + else + next_layer.async_wait( + next_layer_type::wait_read, +- std::bind(&impl::handle_read, this->shared_from_this(), _1)); ++ std::bind(&impl::handle_read, this->shared_from_this(), std::placeholders::_1)); + } + + // Start a write operation if GnuTLS wants one + if (want_write() && !std::exchange(is_writing, true)) + { + next_layer.async_wait(next_layer_type::wait_write, +- std::bind(&impl::handle_write, this->shared_from_this(), _1)); ++ std::bind(&impl::handle_write, this->shared_from_this(), std::placeholders::_1)); + } + } + + diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild index 787c4093411..9dc9cb50370 100644 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild @@ -39,6 +39,7 @@ BDEPEND="python? ( )" PATCHES=( + "${FILESDIR}"/${PN}-2.0.4-boost-1.76.patch "${FILESDIR}"/${P}-boost-1.77.patch )