1 |
commit: 3533bc923a96ab77eaff45207bce6fe1a15f8cdf |
2 |
Author: Kai Krakow <kai <AT> kaishome <DOT> de> |
3 |
AuthorDate: Mon Oct 1 23:54:13 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 11 08:14:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3533bc92 |
7 |
|
8 |
games-util/gamemode: Depend on polkit for pkexec |
9 |
|
10 |
GameMode runs pkexec to start elevated processes. |
11 |
|
12 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
13 |
Signed-off-by: Kai Krakow <kai <AT> kaishome.de> |
14 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/10040 |
16 |
|
17 |
games-util/gamemode/gamemode-1.2.ebuild | 11 +++++++---- |
18 |
games-util/gamemode/gamemode-9999.ebuild | 11 +++++++---- |
19 |
2 files changed, 14 insertions(+), 8 deletions(-) |
20 |
|
21 |
diff --git a/games-util/gamemode/gamemode-1.2.ebuild b/games-util/gamemode/gamemode-1.2.ebuild |
22 |
index 6ac471006aa..45b778ba90e 100644 |
23 |
--- a/games-util/gamemode/gamemode-1.2.ebuild |
24 |
+++ b/games-util/gamemode/gamemode-1.2.ebuild |
25 |
@@ -26,6 +26,7 @@ IUSE="" |
26 |
|
27 |
RDEPEND=" |
28 |
>=sys-apps/systemd-236[${MULTILIB_USEDEP}] |
29 |
+ sys-auth/polkit |
30 |
" |
31 |
DEPEND="${RDEPEND}" |
32 |
|
33 |
@@ -79,10 +80,12 @@ multilib_src_compile() { |
34 |
|
35 |
multilib_src_install() { |
36 |
DESTDIR="${D}" eninja install |
37 |
- insinto /etc/security/limits.d |
38 |
- newins - 45-gamemode.conf <<-EOF |
39 |
- @gamemode - nice -10 |
40 |
- EOF |
41 |
+ if multilib_is_native_abi; then |
42 |
+ insinto /etc/security/limits.d |
43 |
+ newins - 45-gamemode.conf <<-EOF |
44 |
+ @gamemode - nice -10 |
45 |
+ EOF |
46 |
+ fi |
47 |
} |
48 |
|
49 |
pkg_postinst() { |
50 |
|
51 |
diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild |
52 |
index 6ac471006aa..45b778ba90e 100644 |
53 |
--- a/games-util/gamemode/gamemode-9999.ebuild |
54 |
+++ b/games-util/gamemode/gamemode-9999.ebuild |
55 |
@@ -26,6 +26,7 @@ IUSE="" |
56 |
|
57 |
RDEPEND=" |
58 |
>=sys-apps/systemd-236[${MULTILIB_USEDEP}] |
59 |
+ sys-auth/polkit |
60 |
" |
61 |
DEPEND="${RDEPEND}" |
62 |
|
63 |
@@ -79,10 +80,12 @@ multilib_src_compile() { |
64 |
|
65 |
multilib_src_install() { |
66 |
DESTDIR="${D}" eninja install |
67 |
- insinto /etc/security/limits.d |
68 |
- newins - 45-gamemode.conf <<-EOF |
69 |
- @gamemode - nice -10 |
70 |
- EOF |
71 |
+ if multilib_is_native_abi; then |
72 |
+ insinto /etc/security/limits.d |
73 |
+ newins - 45-gamemode.conf <<-EOF |
74 |
+ @gamemode - nice -10 |
75 |
+ EOF |
76 |
+ fi |
77 |
} |
78 |
|
79 |
pkg_postinst() { |