diff options
-rw-r--r-- | net-irc/kvirc/files/fixqprocess.patch | 29 | ||||
-rw-r--r-- | net-irc/kvirc/kvirc-5.2_pre20220629000000.ebuild | 4 |
2 files changed, 33 insertions, 0 deletions
diff --git a/net-irc/kvirc/files/fixqprocess.patch b/net-irc/kvirc/files/fixqprocess.patch new file mode 100644 index 000000000000..2127dcc3f1ce --- /dev/null +++ b/net-irc/kvirc/files/fixqprocess.patch @@ -0,0 +1,29 @@ +commit b4405b0c3dbd00c31d20597360249966bfd627c9 +Author: Alexey Sokolov <sokolov@google.com> +Date: Sat May 27 12:46:34 2023 +0100 + + Fix includes, QProcess is used not only without KDE + + https://bugs.gentoo.org/906940 + +diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp +index 2abab2c10..842d3fa3f 100644 +--- a/src/modules/system/libkvisystem.cpp ++++ b/src/modules/system/libkvisystem.cpp +@@ -50,12 +50,13 @@ + #endif + + #ifdef COMPILE_KDE_SUPPORT +-#include <KToolInvocation> // invokeTerminal() for system.runcmd +-#else // tools we need to work around the absence of ++// invokeTerminal() for system.runcmd ++// tools we need to work around the absence of ++#include <KToolInvocation> ++#endif + // invokeTerminal() + #include <QProcess> + #include <QStringList> +-#endif + + PluginManager * g_pPluginManager; + diff --git a/net-irc/kvirc/kvirc-5.2_pre20220629000000.ebuild b/net-irc/kvirc/kvirc-5.2_pre20220629000000.ebuild index a7cba86601de..71c722a5b2f7 100644 --- a/net-irc/kvirc/kvirc-5.2_pre20220629000000.ebuild +++ b/net-irc/kvirc/kvirc-5.2_pre20220629000000.ebuild @@ -80,6 +80,10 @@ fi DOCS=() +PATCHES=( + "${FILESDIR}/fixqprocess.patch" +) + pkg_setup() { if use python; then python-single-r1_pkg_setup |