From 1395b783a0df780de7536b367b0db4ba4dc946336e7ee805d0e3707529e7c253 Mon Sep 17 00:00:00 2001 From: Luigi Baldoni Date: Sun, 2 Jan 2022 08:37:23 +0000 Subject: [PATCH] Accepting request 943467 from home:alois:branches:devel:libraries:c_c++ - Add libtorrent-rasterbar-boost_178.patch (fix Factory build) OBS-URL: https://build.opensuse.org/request/show/943467 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=154 --- libtorrent-rasterbar-boost_178.patch | 46 ++++++++++++++++++++++++++++ libtorrent-rasterbar.changes | 5 +++ libtorrent-rasterbar.spec | 4 ++- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 libtorrent-rasterbar-boost_178.patch diff --git a/libtorrent-rasterbar-boost_178.patch b/libtorrent-rasterbar-boost_178.patch new file mode 100644 index 0000000..149d338 --- /dev/null +++ b/libtorrent-rasterbar-boost_178.patch @@ -0,0 +1,46 @@ +From 71d608fceca7e61c9d124f9ea83f71b06eda3b17 Mon Sep 17 00:00:00 2001 +From: arvidn +Date: Sun, 12 Dec 2021 21:52:15 +0100 +Subject: [PATCH] update allocator sizes for boost-1.78 + +--- + include/libtorrent/aux_/allocating_handler.hpp | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/include/libtorrent/aux_/allocating_handler.hpp b/include/libtorrent/aux_/allocating_handler.hpp +index 726032e085c..7096dfd2e67 100644 +--- a/include/libtorrent/aux_/allocating_handler.hpp ++++ b/include/libtorrent/aux_/allocating_handler.hpp +@@ -77,11 +77,11 @@ namespace libtorrent { namespace aux { + constexpr std::size_t openssl_write_cost = 0; + #endif + +- 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 + 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 read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 9 * sizeof(void*); ++ constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 9 * sizeof(void*); ++ constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 9 * sizeof(void*); ++ constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 9 * sizeof(void*); ++ constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 168; + 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; +@@ -124,12 +124,12 @@ namespace libtorrent { namespace aux { + #endif + 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 udp_handler_max_size = tracking + 168; ++ constexpr std::size_t utp_handler_max_size = tracking + 192; + 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 + 128; ++ constexpr std::size_t tick_handler_max_size = tracking + 136; + #endif + + enum HandlerName diff --git a/libtorrent-rasterbar.changes b/libtorrent-rasterbar.changes index dbeb8c8..c6de576 100644 --- a/libtorrent-rasterbar.changes +++ b/libtorrent-rasterbar.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jan 2 08:26:53 UTC 2022 - Luigi Baldoni + +- Add libtorrent-rasterbar-boost_178.patch (fix Factory build) + ------------------------------------------------------------------- Sun Dec 5 07:18:54 UTC 2021 - Luigi Baldoni diff --git a/libtorrent-rasterbar.spec b/libtorrent-rasterbar.spec index ce7c288..0e81c44 100644 --- a/libtorrent-rasterbar.spec +++ b/libtorrent-rasterbar.spec @@ -1,7 +1,7 @@ # # spec file for package libtorrent-rasterbar # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,6 +33,8 @@ 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-boost_178.patch +Patch0: libtorrent-rasterbar-boost_178.patch BuildRequires: cmake >= 3.12.0 BuildRequires: fdupes BuildRequires: gcc-c++