Disable threads kio_file support for now. It's totally broken on OpenBSD.

Kio has switched to threads implementation for copying (kio_copy) files. This
implementation is broken under OpenBSD. Good that we can (still) disable it.
This commit is contained in:
rsadowski 2023-01-04 20:35:52 +00:00
parent 2b13e99e8d
commit 331a9eca12
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@
COMMENT = network transparent access to files and data in KDE
DISTNAME = kio-${VERSION}
REVISION = 0
SHARED_LIBS = KF5KIOCore 10.7 # 5.20
SHARED_LIBS += KF5KIOGui 11.4 # 5.20

View File

@ -0,0 +1,15 @@
Disable threads kio_file support for now. It's totally broken on OpenBSD
https://bugs.kde.org/show_bug.cgi?id=463796
Index: src/core/slave.cpp
--- src/core/slave.cpp.orig
+++ src/core/slave.cpp
@@ -447,7 +447,7 @@ Slave *Slave::createSlave(const QString &protocol, con
const auto useThreads = []() {
return qgetenv("KIO_ENABLE_WORKER_THREADS") != "0";
};
- static bool bUseThreads = useThreads();
+ static bool bUseThreads = false; // useThreads();
// Threads have performance benefits, but degrade robustness
// (a worker crashing kills the app). So let's only enable the feature for kio_file, for now.