Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alois:leap156boost175
qbittorrent50
project.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File project.diff of Package qbittorrent50
--- newboost166.patch.orig +++ newboost166.patch @@ -1,7 +1,7 @@ -Index: qbittorrent-4.6.0beta1+git20231028.ee9390fe/CMakeLists.txt +Index: qBittorrent-release-5.0.0beta1/CMakeLists.txt =================================================================== ---- qbittorrent-4.6.0beta1+git20231028.ee9390fe.orig/CMakeLists.txt -+++ qbittorrent-4.6.0beta1+git20231028.ee9390fe/CMakeLists.txt +--- qBittorrent-release-5.0.0beta1.orig/CMakeLists.txt ++++ qBittorrent-release-5.0.0beta1/CMakeLists.txt @@ -7,7 +7,7 @@ project(qBittorrent ) @@ -11,10 +11,10 @@ Index: qbittorrent-4.6.0beta1+git2023102 set(minQt6Version 6.5.0) set(minOpenSSLVersion 3.0.2) set(minLibtorrent1Version 1.2.19) -Index: qbittorrent-4.6.0beta1+git20231028.ee9390fe/src/app/stacktrace.cpp +Index: qBittorrent-release-5.0.0beta1/src/app/stacktrace.cpp =================================================================== ---- qbittorrent-4.6.0beta1+git20231028.ee9390fe.orig/src/app/stacktrace.cpp -+++ qbittorrent-4.6.0beta1+git20231028.ee9390fe/src/app/stacktrace.cpp +--- qBittorrent-release-5.0.0beta1.orig/src/app/stacktrace.cpp ++++ qBittorrent-release-5.0.0beta1/src/app/stacktrace.cpp @@ -30,7 +30,16 @@ #include <boost/stacktrace.hpp> @@ -32,3 +32,119 @@ Index: qbittorrent-4.6.0beta1+git2023102 + return out.str(); +#endif } +Index: qBittorrent-release-5.0.0beta1/src/base/bittorrent/sessionimpl.cpp +=================================================================== +--- qBittorrent-release-5.0.0beta1.orig/src/base/bittorrent/sessionimpl.cpp ++++ qBittorrent-release-5.0.0beta1/src/base/bittorrent/sessionimpl.cpp +@@ -1,4 +1,5 @@ + /* ++ * u + * Bittorrent Client using Qt and libtorrent. + * Copyright (C) 2015-2024 Vladimir Golovnev <glassez@yandex.ru> + * Copyright (C) 2006 Christophe Dumez <chris@qbittorrent.org> +@@ -42,8 +43,6 @@ + #include <iphlpapi.h> + #endif + +-#include <boost/asio/ip/tcp.hpp> +- + #include <libtorrent/add_torrent_params.hpp> + #include <libtorrent/address.hpp> + #include <libtorrent/alert_types.hpp> +@@ -94,6 +93,7 @@ + #include "extensiondata.h" + #include "filesearcher.h" + #include "filterparserthread.h" ++#include "hash.h" + #include "loadtorrentparams.h" + #include "lttypecast.h" + #include "nativesessionextension.h" +Index: qBittorrent-release-5.0.0beta1/src/base/bittorrent/hash.h +=================================================================== +--- /dev/null ++++ qBittorrent-release-5.0.0beta1/src/base/bittorrent/hash.h +@@ -0,0 +1,72 @@ ++#pragma once ++ ++#include <boost/asio/ip/tcp.hpp> ++#include <functional> ++ ++namespace std { ++ ++template <> ++struct hash<boost::asio::ip::address_v4> ++{ ++ std::size_t operator()(const boost::asio::ip::address_v4& addr) ++ const BOOST_ASIO_NOEXCEPT ++ { ++ return std::hash<unsigned int>()(addr.to_uint()); ++ } ++}; ++ ++template <> ++struct hash<boost::asio::ip::address_v6> ++{ ++ std::size_t operator()(const boost::asio::ip::address_v6& addr) ++ const BOOST_ASIO_NOEXCEPT ++ { ++ const boost::asio::ip::address_v6::bytes_type bytes = addr.to_bytes(); ++ std::size_t result = static_cast<std::size_t>(addr.scope_id()); ++ combine_4_bytes(result, &bytes[0]); ++ combine_4_bytes(result, &bytes[4]); ++ combine_4_bytes(result, &bytes[8]); ++ combine_4_bytes(result, &bytes[12]); ++ return result; ++ } ++ ++private: ++ static void combine_4_bytes(std::size_t& seed, const unsigned char* bytes) ++ { ++ const std::size_t bytes_hash = ++ (static_cast<std::size_t>(bytes[0]) << 24) | ++ (static_cast<std::size_t>(bytes[1]) << 16) | ++ (static_cast<std::size_t>(bytes[2]) << 8) | ++ (static_cast<std::size_t>(bytes[3])); ++ seed ^= bytes_hash + 0x9e3779b9 + (seed << 6) + (seed >> 2); ++ } ++}; ++ ++template <> ++struct hash<boost::asio::ip::address> ++{ ++ std::size_t operator()(const boost::asio::ip::address& addr) ++ const BOOST_ASIO_NOEXCEPT ++ { ++ return addr.is_v4() ++ ? std::hash<boost::asio::ip::address_v4>()(addr.to_v4()) ++ : std::hash<boost::asio::ip::address_v6>()(addr.to_v6()); ++ } ++}; ++ ++template <typename InternetProtocol> ++struct hash<boost::asio::ip::basic_endpoint<InternetProtocol> > ++{ ++ std::size_t operator()( ++ const boost::asio::ip::basic_endpoint<InternetProtocol>& ep) ++ const BOOST_ASIO_NOEXCEPT ++ { ++ std::size_t hash1 = std::hash<boost::asio::ip::address>()(ep.address()); ++ std::size_t hash2 = std::hash<unsigned short>()(ep.port()); ++ return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2)); ++ } ++}; ++ ++} // namespace std ++ ++ +Index: qBittorrent-release-5.0.0beta1/src/base/bittorrent/torrentimpl.h +=================================================================== +--- qBittorrent-release-5.0.0beta1.orig/src/base/bittorrent/torrentimpl.h ++++ qBittorrent-release-5.0.0beta1/src/base/bittorrent/torrentimpl.h +@@ -49,6 +49,7 @@ + + #include "base/path.h" + #include "base/tagset.h" ++#include "hash.h" + #include "infohash.h" + #include "speedmonitor.h" + #include "sslparameters.h" --- qbittorrent.spec.orig +++ qbittorrent.spec @@ -43,8 +43,11 @@ Patch3: qbittorrent-altpython.pa BuildRequires: cmake >= 3.16 BuildRequires: fdupes BuildRequires: hicolor-icon-theme -# 1.76 now -BuildRequires: libboost_system-devel >= 1.66 +%if 0%{?suse_version} > 1500 +BuildRequires: libboost_system-devel +%else +BuildRequires: libboost_system1_75_0-devel +%endif BuildRequires: pkgconfig BuildRequires: qt6-core-private-devel BuildRequires: cmake(Qt6Core) >= 6.5.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor