commit: e1ab2444c5bc7ea380b30447926371d2904cf29a Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Oct 31 04:32:46 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 31 04:32:46 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1ab2444
net-libs/libtorrent-rasterbar: fix Python bindings in 2.0.4 Thanks-to: Conrad <conrad_bugtracker <AT> fps-power.eu> Closes: https://bugs.gentoo.org/820518 Signed-off-by: Sam James <sam <AT> gentoo.org> ...libtorrent-rasterbar-2.0.4-python-symbols.patch | 28 ++++++++++++++++++++++ ...ebuild => libtorrent-rasterbar-2.0.4-r4.ebuild} | 1 + 2 files changed, 29 insertions(+) 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 new file mode 100644 index 00000000000..109a6490af2 --- /dev/null +++ b/net-libs/libtorrent-rasterbar/files/libtorrent-rasterbar-2.0.4-python-symbols.patch @@ -0,0 +1,28 @@ +https://github.com/arvidn/libtorrent/commit/f2eefd327f1ca89b053eb1e5f4ed229efe52e47f +https://bugs.gentoo.org/820518 + +From: Nick Korotysh <[email protected]> +Date: Fri, 25 Jun 2021 22:08:00 +0300 +Subject: [PATCH] added missed sources to Python bindings CMakeLists.txt + +fixes libtorrent loading module issues: +libtorrent.cpython-39-x86_64-linux-gnu.so: undefined symbol: _Z16bind_sha256_hashv +--- a/bindings/python/CMakeLists.txt ++++ b/bindings/python/CMakeLists.txt +@@ -49,6 +49,7 @@ Python3_add_library(python-libtorrent MODULE WITH_SOABI + src/entry.cpp + src/error_code.cpp + src/fingerprint.cpp ++ src/info_hash.cpp + src/ip_filter.cpp + src/magnet_uri.cpp + src/module.cpp +@@ -56,6 +57,7 @@ Python3_add_library(python-libtorrent MODULE WITH_SOABI + src/session.cpp + src/session_settings.cpp + src/sha1_hash.cpp ++ src/sha256_hash.cpp + src/string.cpp + src/torrent_handle.cpp + src/torrent_info.cpp + 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 similarity index 97% rename from net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild rename to net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild index 9dc9cb50370..0982c19a126 100644 --- a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r3.ebuild +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-2.0.4-r4.ebuild @@ -41,6 +41,7 @@ BDEPEND="python? ( PATCHES=( "${FILESDIR}"/${PN}-2.0.4-boost-1.76.patch "${FILESDIR}"/${P}-boost-1.77.patch + "${FILESDIR}"/${P}-python-symbols.patch ) pkg_setup() {
