commit:     924031f6594df891034810354731cd8190e538d3
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 18 19:40:21 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Sep 19 08:43:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=924031f6

kde-plasma/kdesu-gui: Fix build w/ kde-frameworks/kwindowsystem[-X]

Closes: https://bugs.gentoo.org/939735
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kdesu-gui-6.1.5-fix-without-x11.patch    | 28 ++++++++++++++++++++++
 kde-plasma/kdesu-gui/kdesu-gui-6.1.5.ebuild        |  3 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-fix-without-x11.patch 
b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-fix-without-x11.patch
new file mode 100644
index 000000000000..bb5317cb1cc5
--- /dev/null
+++ b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-fix-without-x11.patch
@@ -0,0 +1,28 @@
+From bcaa74b9c7d896f5578e1f681dfa1a1f0bf2756d Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Wed, 18 Sep 2024 19:34:20 +0000
+Subject: [PATCH] Fix build w/ WITH_X11=OFF when KWindowSystem was built w/
+ KWINDOWSYSTEM_X11=OFF
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ kdesu/kdesu.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/kdesu/kdesu.cpp b/kdesu/kdesu.cpp
+index 887df083..a5e4a945 100644
+--- a/kdesu/kdesu.cpp
++++ b/kdesu/kdesu.cpp
+@@ -40,7 +40,9 @@
+ #include <klocalizedstring.h>
+ #include <kmessagebox.h>
+ #include <kshell.h>
++#if WITH_X11
+ #include <kstartupinfo.h>
++#endif
+ #include <kuser.h>
+ #include <kwindowsystem.h>
+ 
+-- 
+2.46.0
+

diff --git a/kde-plasma/kdesu-gui/kdesu-gui-6.1.5.ebuild 
b/kde-plasma/kdesu-gui/kdesu-gui-6.1.5.ebuild
index 99081e35a177..7c67dbaca947 100644
--- a/kde-plasma/kdesu-gui/kdesu-gui-6.1.5.ebuild
+++ b/kde-plasma/kdesu-gui/kdesu-gui-6.1.5.ebuild
@@ -35,7 +35,8 @@ RDEPEND="${DEPEND}
 
 PATCHES=(
        "${FILESDIR}/${PN}-6.1.5-build-only-kdesu.patch" # downstream split
-       "${FILESDIR}/${PN}-5.27.11-cmake.patch" # bug 939081, pending upstream 
MR
+       "${FILESDIR}/${PN}-5.27.11-cmake.patch" # bug 939081
+       "${FILESDIR}/${P}-fix-without-x11.patch" # bug 939735, pending upstream 
MR
 )
 
 src_prepare() {

Reply via email to