public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
Date: Thu, 11 Oct 2018 08:30:25 +0000 (UTC)	[thread overview]
Message-ID: <1539245643.3533bc923a96ab77eaff45207bce6fe1a15f8cdf.mgorny@gentoo> (raw)

commit:     3533bc923a96ab77eaff45207bce6fe1a15f8cdf
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Mon Oct  1 23:54:13 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 11 08:14:03 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3533bc92

games-util/gamemode: Depend on polkit for pkexec

GameMode runs pkexec to start elevated processes.

Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/10040

 games-util/gamemode/gamemode-1.2.ebuild  | 11 +++++++----
 games-util/gamemode/gamemode-9999.ebuild | 11 +++++++----
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/games-util/gamemode/gamemode-1.2.ebuild b/games-util/gamemode/gamemode-1.2.ebuild
index 6ac471006aa..45b778ba90e 100644
--- a/games-util/gamemode/gamemode-1.2.ebuild
+++ b/games-util/gamemode/gamemode-1.2.ebuild
@@ -26,6 +26,7 @@ IUSE=""
 
 RDEPEND="
 	>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
+	sys-auth/polkit
 "
 DEPEND="${RDEPEND}"
 
@@ -79,10 +80,12 @@ multilib_src_compile() {
 
 multilib_src_install() {
 	DESTDIR="${D}" eninja install
-	insinto /etc/security/limits.d
-	newins - 45-gamemode.conf <<-EOF
-		@gamemode - nice -10
-	EOF
+	if multilib_is_native_abi; then
+		insinto /etc/security/limits.d
+		newins - 45-gamemode.conf <<-EOF
+			@gamemode - nice -10
+		EOF
+	fi
 }
 
 pkg_postinst() {

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 6ac471006aa..45b778ba90e 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -26,6 +26,7 @@ IUSE=""
 
 RDEPEND="
 	>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
+	sys-auth/polkit
 "
 DEPEND="${RDEPEND}"
 
@@ -79,10 +80,12 @@ multilib_src_compile() {
 
 multilib_src_install() {
 	DESTDIR="${D}" eninja install
-	insinto /etc/security/limits.d
-	newins - 45-gamemode.conf <<-EOF
-		@gamemode - nice -10
-	EOF
+	if multilib_is_native_abi; then
+		insinto /etc/security/limits.d
+		newins - 45-gamemode.conf <<-EOF
+			@gamemode - nice -10
+		EOF
+	fi
 }
 
 pkg_postinst() {


             reply	other threads:[~2018-10-11  8:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-11  8:30 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-28 11:34 [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/ Joonas Niilola
2020-09-28 11:34 Joonas Niilola
2020-09-28 11:34 Joonas Niilola
2020-09-28 11:34 Joonas Niilola
2020-12-29  7:43 Joonas Niilola
2021-02-24  8:31 Joonas Niilola
2021-02-24  8:31 Joonas Niilola
2021-02-24  8:31 Joonas Niilola
2022-10-01 20:08 James Le Cuirot
2024-02-07 13:59 Joonas Niilola
2024-02-07 13:59 Joonas Niilola
2024-08-30  7:33 Joonas Niilola
2024-08-30  7:33 Joonas Niilola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1539245643.3533bc923a96ab77eaff45207bce6fe1a15f8cdf.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox