From 6fe426120aa77b532a13ae36846f2e9cb76045ea9af29389edd3b48892d2e549 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sun, 5 Dec 2021 08:25:55 +0000 Subject: [PATCH] Accepting request 935764 from home:alois:branches:devel:libraries:c_c++ - Update to version 2.0.5 * fix build with WolfSSL * fix issue where incoming uTP connections were not accepted over SOCKS5 * fix several issues in handling of checking files of v2 torrents, esp. from magnet links * make the token limit when parsing metadata from magnet files configurable * fix issue with stalled pieces on disk full errors * fix missing python binding for file_progress_flags * fix torrent_file_with_hashes() to fail when we don't have the piece layers * restore path character encoding conversion for non UTF-8 locales * fix use-after-free bug in make_magnet_uri * add write_torrent_file() to produce a .torrent file from add_torrent_params * allow loading v2 .torrent files without piece layer * fix issue with adding v2 torrents with invalid file root hash - Drop libtorrent-rasterbar-2.0.4-handler-buffer.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/935764 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=153 --- ...rrent-rasterbar-2.0.4-handler-buffer.patch | 35 ------------------- libtorrent-rasterbar-2.0.4.tar.gz | 3 -- libtorrent-rasterbar-2.0.5.tar.gz | 3 ++ libtorrent-rasterbar.changes | 25 +++++++++++++ libtorrent-rasterbar.spec | 4 +-- 5 files changed, 29 insertions(+), 41 deletions(-) delete mode 100644 libtorrent-rasterbar-2.0.4-handler-buffer.patch delete mode 100644 libtorrent-rasterbar-2.0.4.tar.gz create mode 100644 libtorrent-rasterbar-2.0.5.tar.gz diff --git a/libtorrent-rasterbar-2.0.4-handler-buffer.patch b/libtorrent-rasterbar-2.0.4-handler-buffer.patch deleted file mode 100644 index bae55a6..0000000 --- a/libtorrent-rasterbar-2.0.4-handler-buffer.patch +++ /dev/null @@ -1,35 +0,0 @@ ---- a/include/libtorrent/aux_/allocating_handler.hpp -+++ b/include/libtorrent/aux_/allocating_handler.hpp -@@ -79,9 +79,9 @@ namespace libtorrent { namespace aux { - - constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 8 * sizeof(void*); - constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 8 * sizeof(void*); -- constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 128 + 8 * sizeof(void*); -- constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 152 + 8 * sizeof(void*); -- constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 144; -+ constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 8 * sizeof(void*); -+ constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 8 * sizeof(void*); -+ constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 160; - constexpr std::size_t abort_handler_max_size = tracking + debug_tick + 104; - constexpr std::size_t submit_handler_max_size = tracking + debug_tick + 104; - constexpr std::size_t deferred_handler_max_size = tracking + debug_tick + 112; -@@ -122,14 +122,14 @@ namespace libtorrent { namespace aux { - constexpr std::size_t fuzzer_write_cost = 0; - constexpr std::size_t fuzzer_read_cost = 0; - #endif -- constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 152; -- constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 152; -- constexpr std::size_t udp_handler_max_size = tracking + 144; -- constexpr std::size_t utp_handler_max_size = tracking + 168; -+ constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 168; -+ constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 168; -+ constexpr std::size_t udp_handler_max_size = tracking + 160; -+ constexpr std::size_t utp_handler_max_size = tracking + 184; - constexpr std::size_t abort_handler_max_size = tracking + 72; - constexpr std::size_t submit_handler_max_size = tracking + 72; - constexpr std::size_t deferred_handler_max_size = tracking + 80; -- constexpr std::size_t tick_handler_max_size = tracking + 112; -+ constexpr std::size_t tick_handler_max_size = tracking + 128; - #endif - - enum HandlerName diff --git a/libtorrent-rasterbar-2.0.4.tar.gz b/libtorrent-rasterbar-2.0.4.tar.gz deleted file mode 100644 index e241451..0000000 --- a/libtorrent-rasterbar-2.0.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:55bcce16c4b85b8cccd20e7ff4a9fde92db66333a25d6504a83c0bb0a5f7f529 -size 4311319 diff --git a/libtorrent-rasterbar-2.0.5.tar.gz b/libtorrent-rasterbar-2.0.5.tar.gz new file mode 100644 index 0000000..0531732 --- /dev/null +++ b/libtorrent-rasterbar-2.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e965c2e53170c61c0db3a2d898a61769cb7acd541bbf157cbbef97a185930ea5 +size 4407260 diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index 11b6c4f..dbeb8c8 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Sun Dec 5 07:18:54 UTC 2021 - Luigi Baldoni + +- Update to version 2.0.5 + * fix build with WolfSSL + * fix issue where incoming uTP connections were not accepted + over SOCKS5 + * fix several issues in handling of checking files of v2 + torrents, esp. from magnet links + * make the token limit when parsing metadata from magnet files + configurable + * fix issue with stalled pieces on disk full errors + * fix missing python binding for file_progress_flags + * fix torrent_file_with_hashes() to fail when we don't have + the piece layers + * restore path character encoding conversion for non UTF-8 + locales + * fix use-after-free bug in make_magnet_uri + * add write_torrent_file() to produce a .torrent file from + add_torrent_params + * allow loading v2 .torrent files without piece layer + * fix issue with adding v2 torrents with invalid file root hash +- Drop libtorrent-rasterbar-2.0.4-handler-buffer.patch (merged + upstream) + ------------------------------------------------------------------- Sun Oct 31 10:36:56 UTC 2021 - Luigi Baldoni diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index d789712..ce7c288 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -26,15 +26,13 @@ %bcond_with examples %bcond_with tests Name: libtorrent-rasterbar -Version: 2.0.4 +Version: 2.0.5 Release: 0 Summary: A C++ implementation of the BitTorrent protocol License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: https://libtorrent.org/ Source: https://github.com/arvidn/%{_name}/releases/download/v%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM libtorrent-rasterbar-2.0.4-handler-buffer.patch -- Bump handler allocation sizes for boost-1.77 (commit 8ed34b67d) -Patch0: libtorrent-rasterbar-2.0.4-handler-buffer.patch BuildRequires: cmake >= 3.12.0 BuildRequires: fdupes BuildRequires: gcc-c++