Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/files/, net-libs/libtorrent-rasterbar/
Date: Sun, 31 Oct 2021 04:33:21
Message-Id: 1635654766.e1ab2444c5bc7ea380b30447926371d2904cf29a.sam@gentoo
1 commit: e1ab2444c5bc7ea380b30447926371d2904cf29a
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 04:32:46 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 04:32:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ab2444
7
8 net-libs/libtorrent-rasterbar: fix Python bindings in 2.0.4
9
10 Thanks-to: Conrad <conrad_bugtracker <AT> fps-power.eu>
11 Closes: https://bugs.gentoo.org/820518
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 ...libtorrent-rasterbar-2.0.4-python-symbols.patch | 28 ++++++++++++++++++++++
15 ...ebuild => libtorrent-rasterbar-2.0.4-r4.ebuild} | 1 +
16 2 files changed, 29 insertions(+)
17
18 diff --git a/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-python-symbols.patch b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-python-symbols.patch
19 new file mode 100644
20 index 00000000000..109a6490af2
21 --- /dev/null
22 +++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-python-symbols.patch
23 @@ -0,0 +1,28 @@
24 +https://github.com/arvidn/libtorrent/commit/f2eefd327f1ca89b053eb1e5f4ed229efe52e47f
25 +https://bugs.gentoo.org/820518
26 +
27 +From: Nick Korotysh <kolchaprogrammer@××××.ru>
28 +Date: Fri, 25 Jun 2021 22:08:00 +0300
29 +Subject: [PATCH] added missed sources to Python bindings CMakeLists.txt
30 +
31 +fixes libtorrent loading module issues:
32 +libtorrent.cpython-39-x86_64-linux-gnu.so: undefined symbol: _Z16bind_sha256_hashv
33 +--- a/bindings/python/CMakeLists.txt
34 ++++ b/bindings/python/CMakeLists.txt
35 +@@ -49,6 +49,7 @@ Python3_add_library(python-libtorrent MODULE WITH_SOABI
36 + src/entry.cpp
37 + src/error_code.cpp
38 + src/fingerprint.cpp
39 ++ src/info_hash.cpp
40 + src/ip_filter.cpp
41 + src/magnet_uri.cpp
42 + src/module.cpp
43 +@@ -56,6 +57,7 @@ Python3_add_library(python-libtorrent MODULE WITH_SOABI
44 + src/session.cpp
45 + src/session_settings.cpp
46 + src/sha1_hash.cpp
47 ++ src/sha256_hash.cpp
48 + src/string.cpp
49 + src/torrent_handle.cpp
50 + src/torrent_info.cpp
51 +
52
53 diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
54 similarity index 97%
55 rename from net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild
56 rename to net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
57 index 9dc9cb50370..0982c19a126 100644
58 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild
59 +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild
60 @@ -41,6 +41,7 @@ BDEPEND="python? (
61 PATCHES=(
62 "${FILESDIR}"/${PN}-2.0.4-boost-1.76.patch
63 "${FILESDIR}"/${P}-boost-1.77.patch
64 + "${FILESDIR}"/${P}-python-symbols.patch
65 )
66
67 pkg_setup() {