File qbittorrent-fix_boost_1.66_build.patch of Package qbittorrent
Index: qbittorrent-4.6.0/CMakeLists.txt
===================================================================
--- qbittorrent-4.6.0.orig/CMakeLists.txt
+++ qbittorrent-4.6.0/CMakeLists.txt
@@ -7,7 +7,7 @@ project(qBittorrent
)
# version requirements - older versions may work, but you are on your own
-set(minBoostVersion 1.71)
+set(minBoostVersion 1.66)
set(minQt5Version 5.15.2)
set(minQt6Version 6.2)
set(minOpenSSLVersion 1.1.1)
Index: qbittorrent-4.6.0/src/app/stacktrace.cpp
===================================================================
--- qbittorrent-4.6.0.orig/src/app/stacktrace.cpp
+++ qbittorrent-4.6.0/src/app/stacktrace.cpp
@@ -30,7 +30,16 @@
#include <boost/stacktrace.hpp>
+#include <sstream>
+#include <boost/version.hpp>
+
std::string getStacktrace()
{
+#if BOOST_VERSION >= 107100
return boost::stacktrace::to_string(boost::stacktrace::stacktrace());
+#else
+ std::ostringstream out;
+ out << boost::stacktrace::stacktrace();
+ return out.str();
+#endif
}