From 3543e0ac77a51f975e1c6175f2a64d2eacacd404 Mon Sep 17 00:00:00 2001 From: Jauhien Piatlicki Date: Sat, 18 Oct 2014 20:12:53 +0200 Subject: [x11-misc/sddm] sync with tree: fix bug 524072 and temporary fix bug 523630 --- x11-misc/sddm/files/sddm-9999-upower.patch | 12 ++++++++++++ x11-misc/sddm/sddm-9999.ebuild | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 x11-misc/sddm/files/sddm-9999-upower.patch (limited to 'x11-misc/sddm') diff --git a/x11-misc/sddm/files/sddm-9999-upower.patch b/x11-misc/sddm/files/sddm-9999-upower.patch new file mode 100644 index 00000000..8c0f34c2 --- /dev/null +++ b/x11-misc/sddm/files/sddm-9999-upower.patch @@ -0,0 +1,12 @@ +diff -u -r sddm-0.9.0.orig/src/daemon/PowerManager.cpp sddm-0.9.0/src/daemon/PowerManager.cpp +--- sddm-0.9.0.orig/src/daemon/PowerManager.cpp 2014-10-01 18:40:37.402683578 +0200 ++++ sddm-0.9.0/src/daemon/PowerManager.cpp 2014-10-01 18:40:43.502618164 +0200 +@@ -197,7 +197,7 @@ + m_backends << new Login1Backend(); + + // check if upower interface exists +- if (interface->isServiceRegistered(UPOWER_SERVICE)) ++// if (interface->isServiceRegistered(UPOWER_SERVICE)) + m_backends << new UPowerBackend(); + } + diff --git a/x11-misc/sddm/sddm-9999.ebuild b/x11-misc/sddm/sddm-9999.ebuild index 548297ac..48ba4c85 100644 --- a/x11-misc/sddm/sddm-9999.ebuild +++ b/x11-misc/sddm/sddm-9999.ebuild @@ -16,6 +16,7 @@ IUSE="consolekit systemd +upower" REQUIRED_USE="?? ( upower systemd )" RDEPEND="sys-libs/pam + >=x11-base/xorg-server-1.15.1 x11-libs/libxcb[xkb(-)] dev-qt/qtcore:5 dev-qt/qtdbus:5 @@ -37,6 +38,7 @@ pkg_pretend() { src_prepare() { use consolekit && epatch "${FILESDIR}/${P}-consolekit.patch" + use upower && epatch "${FILESDIR}/${P}-upower.patch" # respect user's cflags sed -e 's|-Wall -march=native||' \ -- cgit v1.2.3-65-gdbad