From 1867111a3196e2e2a3c10bdf48979df547e6affb Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 18 Sep 2024 19:40:21 +0000 Subject: [PATCH] kde-plasma/kdesu-gui: Fix build w/ kde-frameworks/kwindowsystem[-X] Bug: https://bugs.gentoo.org/939735 Signed-off-by: Andreas Sturmlechner --- .../kdesu-gui-6.1.5-fix-without-x11.patch | 28 +++++++++++++++++++ .../kdesu-gui/kdesu-gui-6.2.49.9999.ebuild | 5 +++- kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild | 1 + 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-fix-without-x11.patch 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 00000000000..bb5317cb1cc --- /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 +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 +--- + 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 + #include + #include ++#if WITH_X11 + #include ++#endif + #include + #include + +-- +2.46.0 + diff --git a/kde-plasma/kdesu-gui/kdesu-gui-6.2.49.9999.ebuild b/kde-plasma/kdesu-gui/kdesu-gui-6.2.49.9999.ebuild index 90691276d77..92a6c0584b4 100644 --- a/kde-plasma/kdesu-gui/kdesu-gui-6.2.49.9999.ebuild +++ b/kde-plasma/kdesu-gui/kdesu-gui-6.2.49.9999.ebuild @@ -33,7 +33,10 @@ RDEPEND="${DEPEND} sys-apps/dbus[X] " -PATCHES=( "${FILESDIR}/${PN}-6.1.80-build-only-kdesu.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-6.1.80-build-only-kdesu.patch" # downstream split + "${FILESDIR}/${PN}-6.1.5-fix-without-x11.patch" # bug 939735, git master +) src_prepare() { ecm_src_prepare diff --git a/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild b/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild index 7210b22aef7..70dfd9e8d4c 100644 --- a/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild +++ b/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild @@ -33,6 +33,7 @@ RDEPEND="${DEPEND} sys-apps/dbus[X] " +# downstream split PATCHES=( "${FILESDIR}/${PN}-6.1.80-build-only-kdesu.patch" ) src_prepare() {