diff --git a/recipes-kde/packagegroups/kde-world.bb b/recipes-kde/packagegroups/kde-world.bb index 975d26b7..bcc04a83 100644 --- a/recipes-kde/packagegroups/kde-world.bb +++ b/recipes-kde/packagegroups/kde-world.bb @@ -91,6 +91,7 @@ RDEPENDS_${PN} = " \ frameworkintegration \ plasma-desktop \ plasma-workspace-wallpapers \ + polkit-kde-agent-1 \ \ kwayland \ ${@bb.utils.contains("DISTRO_FEATURES", "x11", "kwin khotkeys kde-gtk-config", "",d)} \ diff --git a/recipes-kde/plasma/untier/polkit-kde-agent-1/files/0001-fix-build-for-QT_NO_SESSIONMANAGER.patch b/recipes-kde/plasma/untier/polkit-kde-agent-1/files/0001-fix-build-for-QT_NO_SESSIONMANAGER.patch new file mode 100644 index 00000000..4b2514d6 --- /dev/null +++ b/recipes-kde/plasma/untier/polkit-kde-agent-1/files/0001-fix-build-for-QT_NO_SESSIONMANAGER.patch @@ -0,0 +1,45 @@ +From 099c0a4f82aaea70d751ad33fc35dfaea0c80a1b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 9 Feb 2015 20:00:24 +0100 +Subject: [PATCH] fix build for QT_NO_SESSIONMANAGER +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + main.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/main.cpp b/main.cpp +index c770e25..8b93157 100644 +--- a/main.cpp ++++ b/main.cpp +@@ -25,7 +25,9 @@ + #include + #include + ++#ifndef QT_NO_SESSIONMANAGER + #include ++#endif + + #include "policykitkde.h" + +@@ -48,12 +50,14 @@ int main(int argc, char *argv[]) + PolicyKitKDE agent(argc, argv); + KDBusService service(KDBusService::Unique); + ++#ifndef QT_NO_SESSIONMANAGER + auto disableSessionManagement = [](QSessionManager &sm) { + sm.setRestartHint(QSessionManager::RestartNever); + }; + + QObject::connect(&agent, &QGuiApplication::commitDataRequest, disableSessionManagement); + QObject::connect(&agent, &QGuiApplication::saveStateRequest, disableSessionManagement); ++#endif + + agent.exec(); + } +-- +1.9.3 + diff --git a/recipes-kde/plasma/untier/polkit-kde-agent-1/polkit-kde-agent-1.bb b/recipes-kde/plasma/untier/polkit-kde-agent-1/polkit-kde-agent-1.bb new file mode 100644 index 00000000..44da3659 --- /dev/null +++ b/recipes-kde/plasma/untier/polkit-kde-agent-1/polkit-kde-agent-1.bb @@ -0,0 +1,28 @@ +SUMMARY = "Daemon providing a polkit authentication UI for KDE" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = " \ + file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24 \ +" + +inherit kde-plasma + +DEPENDS += " \ + ki18n \ + kwindowsystem \ + kdbusaddons \ + kwidgetsaddons \ + kcoreaddons \ + kcrash \ + kconfig \ + kiconthemes \ + knotifications \ + polkit-qt-1 \ +" + +PV = "${PLASMA_VERSION}" +SRC_URI[md5sum] = "ddf92f8756141293584164c591074850" +SRC_URI[sha256sum] = "f818e67cb745b96587e911474103fc90694cb269be3703978067672aa3f86591" + +SRC_URI += "file://0001-fix-build-for-QT_NO_SESSIONMANAGER.patch" + +FILES_${PN} += "${datadir}/knotifications5"