From aaad7203e82a69cfde21d34a43da180daddf989a Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 31 Oct 2021 09:19:55 +0000 Subject: net-libs/libtorrent-rasterbar: fix build with python + gnutls Closes: https://bugs.gentoo.org/820836 Signed-off-by: Sam James --- ...libtorrent-rasterbar-2.0.4-asio-ssl-error.patch | 29 ++++++++++++++++++++++ .../libtorrent-rasterbar-2.0.4-r5.ebuild | 1 + 2 files changed, 30 insertions(+) create mode 100644 net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-asio-ssl-error.patch diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-asio-ssl-error.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-asio-ssl-error.patch new file mode 100644 index 000000000000..16c274c21351 --- /dev/null +++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-asio-ssl-error.patch @@ -0,0 +1,29 @@ +From 61ebb3317b1f8a63fcf4d018a21dac6818ea21cf Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 31 Oct 2021 09:16:46 +0000 +Subject: [PATCH] Add missing include for get_ssl_category + +error::get_ssl_category is defined in boost/asio/ssl/error.hpp, so +include it when we're building with SSL support. + +Bug: https://bugs.gentoo.org/820836 + +--- + bindings/python/src/error_code.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/bindings/python/src/error_code.cpp b/bindings/python/src/error_code.cpp +index 2fc5f42..b947119 100644 +--- a/bindings/python/src/error_code.cpp ++++ b/bindings/python/src/error_code.cpp +@@ -49,6 +49,7 @@ namespace boost + + #include + #if TORRENT_USE_SSL ++#include + #include + #endif + #if TORRENT_USE_I2P +-- +2.33.1 + diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild index 9ea627318a8f..cf17459e25a7 100644 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild @@ -44,6 +44,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.0.4-boost-1.76.patch "${FILESDIR}"/${P}-boost-1.77.patch "${FILESDIR}"/${P}-python-symbols.patch + "${FILESDIR}"/${PN}-2.0.4-asio-ssl-error.patch ) pkg_setup() { -- cgit v1.2.3-65-gdbad