1 |
commit: aaad7203e82a69cfde21d34a43da180daddf989a |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 31 09:19:55 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 31 09:19:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaad7203 |
7 |
|
8 |
net-libs/libtorrent-rasterbar: fix build with python + gnutls |
9 |
|
10 |
Closes: https://bugs.gentoo.org/820836 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
...libtorrent-rasterbar-2.0.4-asio-ssl-error.patch | 29 ++++++++++++++++++++++ |
14 |
.../libtorrent-rasterbar-2.0.4-r5.ebuild | 1 + |
15 |
2 files changed, 30 insertions(+) |
16 |
|
17 |
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 |
18 |
new file mode 100644 |
19 |
index 00000000000..16c274c2135 |
20 |
--- /dev/null |
21 |
+++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-asio-ssl-error.patch |
22 |
@@ -0,0 +1,29 @@ |
23 |
+From 61ebb3317b1f8a63fcf4d018a21dac6818ea21cf Mon Sep 17 00:00:00 2001 |
24 |
+From: Sam James <sam@g.o> |
25 |
+Date: Sun, 31 Oct 2021 09:16:46 +0000 |
26 |
+Subject: [PATCH] Add missing include for get_ssl_category |
27 |
+ |
28 |
+error::get_ssl_category is defined in boost/asio/ssl/error.hpp, so |
29 |
+include it when we're building with SSL support. |
30 |
+ |
31 |
+Bug: https://bugs.gentoo.org/820836 |
32 |
+ |
33 |
+--- |
34 |
+ bindings/python/src/error_code.cpp | 1 + |
35 |
+ 1 file changed, 1 insertion(+) |
36 |
+ |
37 |
+diff --git a/bindings/python/src/error_code.cpp b/bindings/python/src/error_code.cpp |
38 |
+index 2fc5f42..b947119 100644 |
39 |
+--- a/bindings/python/src/error_code.cpp |
40 |
++++ b/bindings/python/src/error_code.cpp |
41 |
+@@ -49,6 +49,7 @@ namespace boost |
42 |
+ |
43 |
+ #include <boost/asio/error.hpp> |
44 |
+ #if TORRENT_USE_SSL |
45 |
++#include <boost/asio/ssl/error.hpp> |
46 |
+ #include <libtorrent/ssl.hpp> |
47 |
+ #endif |
48 |
+ #if TORRENT_USE_I2P |
49 |
+-- |
50 |
+2.33.1 |
51 |
+ |
52 |
|
53 |
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 |
54 |
index 9ea627318a8..cf17459e25a 100644 |
55 |
--- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild |
56 |
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r5.ebuild |
57 |
@@ -44,6 +44,7 @@ PATCHES=( |
58 |
"${FILESDIR}"/${PN}-2.0.4-boost-1.76.patch |
59 |
"${FILESDIR}"/${P}-boost-1.77.patch |
60 |
"${FILESDIR}"/${P}-python-symbols.patch |
61 |
+ "${FILESDIR}"/${PN}-2.0.4-asio-ssl-error.patch |
62 |
) |
63 |
|
64 |
pkg_setup() { |