1 |
commit: 7be87d03197beed0aed5eb18d03f2665f7617bca |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 1 18:22:58 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 1 22:57:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be87d03 |
7 |
|
8 |
kde-plasma/kscreenlocker: Make ConsoleKit switch always accessible |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../files/kscreenlocker-5.19.5-ck-unlock.patch | 32 ++++++++++++++++++++++ |
14 |
.../kscreenlocker/kscreenlocker-5.19.4-r1.ebuild | 4 ++- |
15 |
2 files changed, 35 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch b/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..bb15eba72b8 |
20 |
--- /dev/null |
21 |
+++ b/kde-plasma/kscreenlocker/files/kscreenlocker-5.19.5-ck-unlock.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+From 1bac5f6e50bc3255ab0e4c9183e7456f53acfdd5 Mon Sep 17 00:00:00 2001 |
24 |
+From: Andreas Sturmlechner <asturm@g.o> |
25 |
+Date: Sat, 1 Aug 2020 20:05:17 +0200 |
26 |
+Subject: [PATCH] Provide ConsoleKit switch irrespective of HAVE_LOGINCTL |
27 |
+ |
28 |
+--- |
29 |
+ CMakeLists.txt | 2 -- |
30 |
+ 1 file changed, 2 deletions(-) |
31 |
+ |
32 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
33 |
+index 60d3ee1..aaebc82 100644 |
34 |
+--- a/CMakeLists.txt |
35 |
++++ b/CMakeLists.txt |
36 |
+@@ -92,7 +92,6 @@ set_package_properties(loginctl PROPERTIES |
37 |
+ ) |
38 |
+ set(HAVE_LOGINCTL ${loginctl_FOUND}) |
39 |
+ |
40 |
+-if ( NOT HAVE_LOGINCTL ) |
41 |
+ find_package(ConsoleKit) |
42 |
+ set_package_properties(ConsoleKit PROPERTIES |
43 |
+ URL "https://github.com/ConsoleKit2/ConsoleKit2" |
44 |
+@@ -100,7 +99,6 @@ if ( NOT HAVE_LOGINCTL ) |
45 |
+ TYPE RECOMMENDED |
46 |
+ ) |
47 |
+ set(HAVE_CONSOLEKIT ${ConsoleKit_FOUND}) |
48 |
+-endif () |
49 |
+ |
50 |
+ if (HAVE_LOGINCTL OR HAVE_CONSOLEKIT) |
51 |
+ set(HAVE_UNLOCK_CAPABILITY TRUE) |
52 |
+-- |
53 |
+2.28.0 |
54 |
+ |
55 |
|
56 |
diff --git a/kde-plasma/kscreenlocker/kscreenlocker-5.19.4-r1.ebuild b/kde-plasma/kscreenlocker/kscreenlocker-5.19.4-r1.ebuild |
57 |
index 06317c83154..8848223ae78 100644 |
58 |
--- a/kde-plasma/kscreenlocker/kscreenlocker-5.19.4-r1.ebuild |
59 |
+++ b/kde-plasma/kscreenlocker/kscreenlocker-5.19.4-r1.ebuild |
60 |
@@ -57,6 +57,8 @@ PDEPEND=" |
61 |
|
62 |
RESTRICT+=" test" |
63 |
|
64 |
+PATCHES=( "${FILESDIR}/${PN}-5.19.5-ck-unlock.patch" ) |
65 |
+ |
66 |
src_prepare() { |
67 |
ecm_src_prepare |
68 |
|
69 |
@@ -77,7 +79,7 @@ src_test() { |
70 |
src_configure() { |
71 |
local mycmakeargs=( |
72 |
-DCMAKE_DISABLE_FIND_PACKAGE_Seccomp=ON |
73 |
- $(cmake_use_find_package consolekit loginctl) |
74 |
+ $(cmake_use_find_package consolekit ConsoleKit) |
75 |
-DPAM_REQUIRED=$(usex pam) |
76 |
$(cmake_use_find_package pam PAM) |
77 |
) |