From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8674F138335 for ; Thu, 11 Oct 2018 08:30:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48D8FE07D0; Thu, 11 Oct 2018 08:30:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23BCFE07D0 for ; Thu, 11 Oct 2018 08:30:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2367C340D4C for ; Thu, 11 Oct 2018 08:30:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9AD0D435 for ; Thu, 11 Oct 2018 08:30:25 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1539245643.3533bc923a96ab77eaff45207bce6fe1a15f8cdf.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/gamemode/gamemode-1.2.ebuild games-util/gamemode/gamemode-9999.ebuild X-VCS-Directories: games-util/gamemode/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3533bc923a96ab77eaff45207bce6fe1a15f8cdf X-VCS-Branch: master Date: Thu, 11 Oct 2018 08:30:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e6a8724a-c4dc-477a-8ce6-8097701542ad X-Archives-Hash: d016a7e8d2a1cd51a66d6d31569d98bf commit: 3533bc923a96ab77eaff45207bce6fe1a15f8cdf Author: Kai Krakow kaishome de> AuthorDate: Mon Oct 1 23:54:13 2018 +0000 Commit: Michał Górny gentoo 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 kaishome.de> Signed-off-by: Michał Górny 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() {