commit:     aaad7203e82a69cfde21d34a43da180daddf989a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 31 09:19:55 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 31 09:19:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaad7203

net-libs/libtorrent-rasterbar: fix build with python + gnutls

Closes: https://bugs.gentoo.org/820836
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...libtorrent-rasterbar-2.0.4-asio-ssl-error.patch | 29 ++++++++++++++++++++++
 .../libtorrent-rasterbar-2.0.4-r5.ebuild           |  1 +
 2 files changed, 30 insertions(+)

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 00000000000..16c274c2135
--- /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 <[email protected]>
+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 <boost/asio/error.hpp>
+ #if TORRENT_USE_SSL
++#include <boost/asio/ssl/error.hpp>
+ #include <libtorrent/ssl.hpp>
+ #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 9ea627318a8..cf17459e25a 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() {

Reply via email to