public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2018-10-11  8:30 Michał Górny
  0 siblings, 0 replies; 14+ messages in thread
From: Michał Górny @ 2018-10-11  8:30 UTC (permalink / raw
  To: gentoo-commits

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() {


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2020-09-28 11:34 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2020-09-28 11:34 UTC (permalink / raw
  To: gentoo-commits

commit:     e2df147d5abdb9bad470fbb41255b96b0d63d8d1
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sun Sep 20 11:17:21 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 11:32:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2df147d

games-util/gamemode: Drop old

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Closes: https://github.com/gentoo/gentoo/pull/13158
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest            |   1 -
 games-util/gamemode/gamemode-1.2.ebuild | 105 --------------------------------
 2 files changed, 106 deletions(-)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index f355f07bddd..9993c2e7000 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1,2 +1 @@
-DIST gamemode-1.2.tar.xz 38536 BLAKE2B af39b8c0585c522afa72238b8332a6a5301d36b3c53e50652a78c41788eae9f5cb319cad06eaf6f345c50f934e188df4c78d70efbad919dd6897d3350d14e568 SHA512 233602e5e93b6cfcc742510dafb00dc826000d0c8618a693e9a579dc3b31c546d22c0545084cfb78c6085226e6b0e26c066078bc1871d36d5fb90828cf63cea9
 DIST gamemode-1.6.tar.xz 69916 BLAKE2B 2fbb680de4043a004a91005647208fd9ca25de250bffe97acc0cabea47dba90d1ef670478582203d616704ea1f5a771115aadef4971e1e41f078104116b08cc4 SHA512 7cb4f4dd51b35e3a0164092342be56ce70bf1a81a8ff071725b429378cf92a100e263bc33890d5f5e281ad87fb72e2f820cb716c5aedf14f387610dcb59eb690

diff --git a/games-util/gamemode/gamemode-1.2.ebuild b/games-util/gamemode/gamemode-1.2.ebuild
deleted file mode 100644
index 45b778ba90e..00000000000
--- a/games-util/gamemode/gamemode-1.2.ebuild
+++ /dev/null
@@ -1,105 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-inherit meson multilib-minimal ninja-utils user
-
-DESCRIPTION="Optimise Linux system performance on demand"
-HOMEPAGE="https://github.com/FeralInteractive/gamemode"
-
-if [[ ${PV} == "9999" ]] ; then
-	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
-	GAMEMODE_GIT_PTR="master"
-	inherit git-r3
-else
-	GAMEMODE_GIT_PTR="${PV}"
-	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
-	KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-
-RDEPEND="
-	>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
-	sys-auth/polkit
-"
-DEPEND="${RDEPEND}"
-
-pkg_pretend() {
-	elog
-	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Examples of kernels providing that are sys-kernel/ck-source"
-	elog "and sys-kernel/pf-sources."
-	elog
-	elog "Support for soft realtime is completely optional. It may provide the"
-	elog "following benefits with systems having at least four CPU cores:"
-	elog
-	elog "  * more CPU shares allocated exclusively to the game"
-	elog "  * reduced input lag and reduced thread latency"
-	elog "  * more consistent frame times resulting in less microstutters"
-	elog
-	elog "You probably won't benefit from soft realtime mode and thus don't need"
-	elog "SCHED_ISO if:"
-	elog
-	elog "  * Your CPU has less than four cores because the game may experience"
-	elog "    priority inversion with the graphics driver (thus heuristics"
-	elog "    automatically disable SCHED_ISO usage then)"
-	elog "  * Your game uses busy-loops to interface with the graphics driver"
-	elog "    but you may still force SCHED_ISO per configuation file, YMMV,"
-	elog "    it depends on the graphics driver implementation, i.e. usage of"
-	elog "    __GL_THREADED_OPTIMIZATIONS or similar."
-	elog "  * If your game causes more than 70% CPU usage across all cores,"
-	elog "    SCHED_ISO automatically turns off and on depending on usage and"
-	elog "    is processed with higher-than-normal priority then (renice)."
-	elog "    This auto-switching may result in a lesser game experience."
-	elog
-	elog "For more info look at:"
-	elog "https://github.com/FeralInteractive/gamemode/blob/${GAMEMODE_GIT_PTR}/README.md"
-	elog
-}
-
-multilib_src_configure() {
-	local myconf=()
-	if ! multilib_is_native_abi; then
-		myconf+=(
-			-Dwith-examples=false
-			-Dwith-daemon=false
-		)
-	fi
-	meson_src_configure "${myconf[@]}"
-}
-
-multilib_src_compile() {
-	eninja
-}
-
-multilib_src_install() {
-	DESTDIR="${D}" eninja install
-	if multilib_is_native_abi; then
-		insinto /etc/security/limits.d
-		newins - 45-gamemode.conf <<-EOF
-			@gamemode - nice -10
-		EOF
-	fi
-}
-
-pkg_postinst() {
-	enewgroup gamemode
-
-	elog
-	elog "GameMode can renice your games. You need to be in the gamemode group for this to work."
-	elog "Run the following command as root to add your user:"
-	elog "# gpasswd -a USER gamemode  # with USER = your user name"
-	elog
-
-	elog "Enable and start the daemon in your systemd user instance, then add"
-	elog "LD_PRELOAD=\$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so %command%"
-	elog "to the start options of any steam game to enable the performance"
-	elog "governor as you start the game."
-	elog
-}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2020-09-28 11:34 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2020-09-28 11:34 UTC (permalink / raw
  To: gentoo-commits

commit:     8aecc9b9d855f27f70c12e103e62aa228a423783
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sun Sep 20 11:10:11 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 11:32:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aecc9b9

games-util/gamemode: Update 9999 ebuild

This updates the 9999 version to reflect the changes from upstream.

This also hacks around a header problem in multilib and removes the
hard dependency on systemd.

Closes: https://bugs.gentoo.org/722884
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-9999.ebuild | 61 +++++++++++++++++++++++---------
 1 file changed, 44 insertions(+), 17 deletions(-)

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 45b778ba90e..0af83005b8c 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
 
-inherit meson multilib-minimal ninja-utils user
+inherit meson multilib-minimal ninja-utils systemd
 
 DESCRIPTION="Optimise Linux system performance on demand"
 HOMEPAGE="https://github.com/FeralInteractive/gamemode"
@@ -22,14 +22,26 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-IUSE=""
+IUSE="systemd elogind"
+
+REQUIRED_USE="^^ ( systemd elogind )"
 
 RDEPEND="
-	>=sys-apps/systemd-236[${MULTILIB_USEDEP}]
+	acct-group/gamemode
+	dev-libs/inih
+	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
 	sys-auth/polkit
+	sys-libs/libcap
 "
 DEPEND="${RDEPEND}"
 
+DOCS=(
+	CHANGELOG.md
+	LICENSE.txt
+	README.md
+	example/gamemode.ini
+)
+
 pkg_pretend() {
 	elog
 	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
@@ -64,14 +76,18 @@ pkg_pretend() {
 }
 
 multilib_src_configure() {
-	local myconf=()
+	local emesonargs=(
+		-Dwith-sd-bus-provider=$(usex systemd "systemd" "elogind")
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+	)
 	if ! multilib_is_native_abi; then
-		myconf+=(
+		emesonargs+=(
 			-Dwith-examples=false
-			-Dwith-daemon=false
+			-Dwith-sd-bus-provider=no-daemon
 		)
 	fi
-	meson_src_configure "${myconf[@]}"
+
+	meson_src_configure
 }
 
 multilib_src_compile() {
@@ -89,17 +105,28 @@ multilib_src_install() {
 }
 
 pkg_postinst() {
-	enewgroup gamemode
-
 	elog
-	elog "GameMode can renice your games. You need to be in the gamemode group for this to work."
+	elog "GameMode has optional support for adjusting nice and ioprio of games"
+	elog "running with it. You may need to adjust your PAM limits to make use"
+	elog "of this. You need to be in the gamemode group for this to work."
+	elog
 	elog "Run the following command as root to add your user:"
 	elog "# gpasswd -a USER gamemode  # with USER = your user name"
 	elog
-
-	elog "Enable and start the daemon in your systemd user instance, then add"
-	elog "LD_PRELOAD=\$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so %command%"
-	elog "to the start options of any steam game to enable the performance"
-	elog "governor as you start the game."
+	elog "You can run the following command to test your settings:"
+	elog
+	elog "# gamemoded -t"
+	elog
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any"
+	elog "damage resulting from usage of this is your own responsibility."
+	elog
+	elog "systemd user sessions will automatically run the daemon on demand,"
+	elog "it does not need to be enabled explicitly. Games not supporting"
+	elog "GameMode natively can still make use of it, just add"
+	elog
+	elog "gamemoderun %command%"
+	elog
+	elog "to the start options of any steam game to enable optimizations"
+	elog "automatically as you start the game."
 	elog
 }


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2020-09-28 11:34 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2020-09-28 11:34 UTC (permalink / raw
  To: gentoo-commits

commit:     00377cfc2a15d4f698f4b2807f03942be3d2ca1c
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 28 11:33:31 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 11:33:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00377cfc

games-util/gamemode: fix typo with ck-sources

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-1.6.ebuild  | 2 +-
 games-util/gamemode/gamemode-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-util/gamemode/gamemode-1.6.ebuild b/games-util/gamemode/gamemode-1.6.ebuild
index 0af83005b8c..b84faf4b718 100644
--- a/games-util/gamemode/gamemode-1.6.ebuild
+++ b/games-util/gamemode/gamemode-1.6.ebuild
@@ -45,7 +45,7 @@ DOCS=(
 pkg_pretend() {
 	elog
 	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Examples of kernels providing that are sys-kernel/ck-source"
+	elog "feature. Examples of kernels providing that are sys-kernel/ck-sources"
 	elog "and sys-kernel/pf-sources."
 	elog
 	elog "Support for soft realtime is completely optional. It may provide the"

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 0af83005b8c..b84faf4b718 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -45,7 +45,7 @@ DOCS=(
 pkg_pretend() {
 	elog
 	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Examples of kernels providing that are sys-kernel/ck-source"
+	elog "feature. Examples of kernels providing that are sys-kernel/ck-sources"
 	elog "and sys-kernel/pf-sources."
 	elog
 	elog "Support for soft realtime is completely optional. It may provide the"


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2020-09-28 11:34 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2020-09-28 11:34 UTC (permalink / raw
  To: gentoo-commits

commit:     4a975c706fc60db759e21afc764983bb9de56315
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Sun Sep 20 11:15:29 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Sep 28 11:32:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a975c70

games-util/gamemode: Bump to 1.6

Closes: https://bugs.gentoo.org/696460
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest            |   1 +
 games-util/gamemode/gamemode-1.6.ebuild | 132 ++++++++++++++++++++++++++++++++
 2 files changed, 133 insertions(+)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index 9efa7de80bd..f355f07bddd 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1 +1,2 @@
 DIST gamemode-1.2.tar.xz 38536 BLAKE2B af39b8c0585c522afa72238b8332a6a5301d36b3c53e50652a78c41788eae9f5cb319cad06eaf6f345c50f934e188df4c78d70efbad919dd6897d3350d14e568 SHA512 233602e5e93b6cfcc742510dafb00dc826000d0c8618a693e9a579dc3b31c546d22c0545084cfb78c6085226e6b0e26c066078bc1871d36d5fb90828cf63cea9
+DIST gamemode-1.6.tar.xz 69916 BLAKE2B 2fbb680de4043a004a91005647208fd9ca25de250bffe97acc0cabea47dba90d1ef670478582203d616704ea1f5a771115aadef4971e1e41f078104116b08cc4 SHA512 7cb4f4dd51b35e3a0164092342be56ce70bf1a81a8ff071725b429378cf92a100e263bc33890d5f5e281ad87fb72e2f820cb716c5aedf14f387610dcb59eb690

diff --git a/games-util/gamemode/gamemode-1.6.ebuild b/games-util/gamemode/gamemode-1.6.ebuild
new file mode 100644
index 00000000000..0af83005b8c
--- /dev/null
+++ b/games-util/gamemode/gamemode-1.6.ebuild
@@ -0,0 +1,132 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit meson multilib-minimal ninja-utils systemd
+
+DESCRIPTION="Optimise Linux system performance on demand"
+HOMEPAGE="https://github.com/FeralInteractive/gamemode"
+
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
+	GAMEMODE_GIT_PTR="master"
+	inherit git-r3
+else
+	GAMEMODE_GIT_PTR="${PV}"
+	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd elogind"
+
+REQUIRED_USE="^^ ( systemd elogind )"
+
+RDEPEND="
+	acct-group/gamemode
+	dev-libs/inih
+	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
+	sys-auth/polkit
+	sys-libs/libcap
+"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+	CHANGELOG.md
+	LICENSE.txt
+	README.md
+	example/gamemode.ini
+)
+
+pkg_pretend() {
+	elog
+	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
+	elog "feature. Examples of kernels providing that are sys-kernel/ck-source"
+	elog "and sys-kernel/pf-sources."
+	elog
+	elog "Support for soft realtime is completely optional. It may provide the"
+	elog "following benefits with systems having at least four CPU cores:"
+	elog
+	elog "  * more CPU shares allocated exclusively to the game"
+	elog "  * reduced input lag and reduced thread latency"
+	elog "  * more consistent frame times resulting in less microstutters"
+	elog
+	elog "You probably won't benefit from soft realtime mode and thus don't need"
+	elog "SCHED_ISO if:"
+	elog
+	elog "  * Your CPU has less than four cores because the game may experience"
+	elog "    priority inversion with the graphics driver (thus heuristics"
+	elog "    automatically disable SCHED_ISO usage then)"
+	elog "  * Your game uses busy-loops to interface with the graphics driver"
+	elog "    but you may still force SCHED_ISO per configuation file, YMMV,"
+	elog "    it depends on the graphics driver implementation, i.e. usage of"
+	elog "    __GL_THREADED_OPTIMIZATIONS or similar."
+	elog "  * If your game causes more than 70% CPU usage across all cores,"
+	elog "    SCHED_ISO automatically turns off and on depending on usage and"
+	elog "    is processed with higher-than-normal priority then (renice)."
+	elog "    This auto-switching may result in a lesser game experience."
+	elog
+	elog "For more info look at:"
+	elog "https://github.com/FeralInteractive/gamemode/blob/${GAMEMODE_GIT_PTR}/README.md"
+	elog
+}
+
+multilib_src_configure() {
+	local emesonargs=(
+		-Dwith-sd-bus-provider=$(usex systemd "systemd" "elogind")
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+	)
+	if ! multilib_is_native_abi; then
+		emesonargs+=(
+			-Dwith-examples=false
+			-Dwith-sd-bus-provider=no-daemon
+		)
+	fi
+
+	meson_src_configure
+}
+
+multilib_src_compile() {
+	eninja
+}
+
+multilib_src_install() {
+	DESTDIR="${D}" eninja install
+	if multilib_is_native_abi; then
+		insinto /etc/security/limits.d
+		newins - 45-gamemode.conf <<-EOF
+			@gamemode - nice -10
+		EOF
+	fi
+}
+
+pkg_postinst() {
+	elog
+	elog "GameMode has optional support for adjusting nice and ioprio of games"
+	elog "running with it. You may need to adjust your PAM limits to make use"
+	elog "of this. You need to be in the gamemode group for this to work."
+	elog
+	elog "Run the following command as root to add your user:"
+	elog "# gpasswd -a USER gamemode  # with USER = your user name"
+	elog
+	elog "You can run the following command to test your settings:"
+	elog
+	elog "# gamemoded -t"
+	elog
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any"
+	elog "damage resulting from usage of this is your own responsibility."
+	elog
+	elog "systemd user sessions will automatically run the daemon on demand,"
+	elog "it does not need to be enabled explicitly. Games not supporting"
+	elog "GameMode natively can still make use of it, just add"
+	elog
+	elog "gamemoderun %command%"
+	elog
+	elog "to the start options of any steam game to enable optimizations"
+	elog "automatically as you start the game."
+	elog
+}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2020-12-29  7:43 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2020-12-29  7:43 UTC (permalink / raw
  To: gentoo-commits

commit:     32121c3ad2ccca244c0eb9a509d852e283fc15e7
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 07:32:12 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 07:43:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32121c3a

games-util/gamemode: drop note about ck-sources

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-1.6.ebuild  | 3 +--
 games-util/gamemode/gamemode-9999.ebuild | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/games-util/gamemode/gamemode-1.6.ebuild b/games-util/gamemode/gamemode-1.6.ebuild
index b84faf4b718..aff87162859 100644
--- a/games-util/gamemode/gamemode-1.6.ebuild
+++ b/games-util/gamemode/gamemode-1.6.ebuild
@@ -45,8 +45,7 @@ DOCS=(
 pkg_pretend() {
 	elog
 	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Examples of kernels providing that are sys-kernel/ck-sources"
-	elog "and sys-kernel/pf-sources."
+	elog "feature. Example of a kernel providing that is sys-kernel/pf-sources."
 	elog
 	elog "Support for soft realtime is completely optional. It may provide the"
 	elog "following benefits with systems having at least four CPU cores:"

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index b84faf4b718..aff87162859 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -45,8 +45,7 @@ DOCS=(
 pkg_pretend() {
 	elog
 	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Examples of kernels providing that are sys-kernel/ck-sources"
-	elog "and sys-kernel/pf-sources."
+	elog "feature. Example of a kernel providing that is sys-kernel/pf-sources."
 	elog
 	elog "Support for soft realtime is completely optional. It may provide the"
 	elog "following benefits with systems having at least four CPU cores:"


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2021-02-24  8:31 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2021-02-24  8:31 UTC (permalink / raw
  To: gentoo-commits

commit:     155df67433d05b30b542384b7599776b2fc10a26
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Thu Feb 18 20:02:31 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 24 08:30:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=155df674

games-util/gamemode: Update version requirements on -9999

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index aff87162859..65304e1c622 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -28,7 +28,7 @@ REQUIRED_USE="^^ ( systemd elogind )"
 
 RDEPEND="
 	acct-group/gamemode
-	dev-libs/inih
+	>=dev-libs/inih-53
 	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
 	sys-auth/polkit
 	sys-libs/libcap


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2021-02-24  8:31 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2021-02-24  8:31 UTC (permalink / raw
  To: gentoo-commits

commit:     cccabfb284ce91780c40ad8db6877e5d78dd3bb3
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Thu Feb 18 20:04:01 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 24 08:30:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cccabfb2

games-util/gamemode: Bump to 1.6.1

Closes: https://bugs.gentoo.org/771351
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest              |   1 +
 games-util/gamemode/gamemode-1.6.1.ebuild | 131 ++++++++++++++++++++++++++++++
 2 files changed, 132 insertions(+)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index 9993c2e7000..1a3f0d22ef7 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1 +1,2 @@
+DIST gamemode-1.6.1.tar.xz 71224 BLAKE2B aafa3123a2c672197d28fafbc7331004b6e4c87808e831f5e0341fd9a690acda8305da114651391fe39e6702bac805cede9d696280d03d4cc3d03d6f4d782efd SHA512 99403a68675522d3b412424591ab7f0cef54968a699f8f68aa59a42a43df73db4bc8a84ee8f97b9f78f329ecd1ed2f3a50e3cb539458f23e7c5fbe28f7978e47
 DIST gamemode-1.6.tar.xz 69916 BLAKE2B 2fbb680de4043a004a91005647208fd9ca25de250bffe97acc0cabea47dba90d1ef670478582203d616704ea1f5a771115aadef4971e1e41f078104116b08cc4 SHA512 7cb4f4dd51b35e3a0164092342be56ce70bf1a81a8ff071725b429378cf92a100e263bc33890d5f5e281ad87fb72e2f820cb716c5aedf14f387610dcb59eb690

diff --git a/games-util/gamemode/gamemode-1.6.1.ebuild b/games-util/gamemode/gamemode-1.6.1.ebuild
new file mode 100644
index 00000000000..65304e1c622
--- /dev/null
+++ b/games-util/gamemode/gamemode-1.6.1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit meson multilib-minimal ninja-utils systemd
+
+DESCRIPTION="Optimise Linux system performance on demand"
+HOMEPAGE="https://github.com/FeralInteractive/gamemode"
+
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
+	GAMEMODE_GIT_PTR="master"
+	inherit git-r3
+else
+	GAMEMODE_GIT_PTR="${PV}"
+	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd elogind"
+
+REQUIRED_USE="^^ ( systemd elogind )"
+
+RDEPEND="
+	acct-group/gamemode
+	>=dev-libs/inih-53
+	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
+	sys-auth/polkit
+	sys-libs/libcap
+"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+	CHANGELOG.md
+	LICENSE.txt
+	README.md
+	example/gamemode.ini
+)
+
+pkg_pretend() {
+	elog
+	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
+	elog "feature. Example of a kernel providing that is sys-kernel/pf-sources."
+	elog
+	elog "Support for soft realtime is completely optional. It may provide the"
+	elog "following benefits with systems having at least four CPU cores:"
+	elog
+	elog "  * more CPU shares allocated exclusively to the game"
+	elog "  * reduced input lag and reduced thread latency"
+	elog "  * more consistent frame times resulting in less microstutters"
+	elog
+	elog "You probably won't benefit from soft realtime mode and thus don't need"
+	elog "SCHED_ISO if:"
+	elog
+	elog "  * Your CPU has less than four cores because the game may experience"
+	elog "    priority inversion with the graphics driver (thus heuristics"
+	elog "    automatically disable SCHED_ISO usage then)"
+	elog "  * Your game uses busy-loops to interface with the graphics driver"
+	elog "    but you may still force SCHED_ISO per configuation file, YMMV,"
+	elog "    it depends on the graphics driver implementation, i.e. usage of"
+	elog "    __GL_THREADED_OPTIMIZATIONS or similar."
+	elog "  * If your game causes more than 70% CPU usage across all cores,"
+	elog "    SCHED_ISO automatically turns off and on depending on usage and"
+	elog "    is processed with higher-than-normal priority then (renice)."
+	elog "    This auto-switching may result in a lesser game experience."
+	elog
+	elog "For more info look at:"
+	elog "https://github.com/FeralInteractive/gamemode/blob/${GAMEMODE_GIT_PTR}/README.md"
+	elog
+}
+
+multilib_src_configure() {
+	local emesonargs=(
+		-Dwith-sd-bus-provider=$(usex systemd "systemd" "elogind")
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+	)
+	if ! multilib_is_native_abi; then
+		emesonargs+=(
+			-Dwith-examples=false
+			-Dwith-sd-bus-provider=no-daemon
+		)
+	fi
+
+	meson_src_configure
+}
+
+multilib_src_compile() {
+	eninja
+}
+
+multilib_src_install() {
+	DESTDIR="${D}" eninja install
+	if multilib_is_native_abi; then
+		insinto /etc/security/limits.d
+		newins - 45-gamemode.conf <<-EOF
+			@gamemode - nice -10
+		EOF
+	fi
+}
+
+pkg_postinst() {
+	elog
+	elog "GameMode has optional support for adjusting nice and ioprio of games"
+	elog "running with it. You may need to adjust your PAM limits to make use"
+	elog "of this. You need to be in the gamemode group for this to work."
+	elog
+	elog "Run the following command as root to add your user:"
+	elog "# gpasswd -a USER gamemode  # with USER = your user name"
+	elog
+	elog "You can run the following command to test your settings:"
+	elog
+	elog "# gamemoded -t"
+	elog
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any"
+	elog "damage resulting from usage of this is your own responsibility."
+	elog
+	elog "systemd user sessions will automatically run the daemon on demand,"
+	elog "it does not need to be enabled explicitly. Games not supporting"
+	elog "GameMode natively can still make use of it, just add"
+	elog
+	elog "gamemoderun %command%"
+	elog
+	elog "to the start options of any steam game to enable optimizations"
+	elog "automatically as you start the game."
+	elog
+}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2021-02-24  8:31 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2021-02-24  8:31 UTC (permalink / raw
  To: gentoo-commits

commit:     4b8cb7267913c42cee83bfe811ce114cad7c05a4
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Thu Feb 18 20:05:17 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 24 08:30:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b8cb726

games-util/gamemode: Drop old

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Closes: https://github.com/gentoo/gentoo/pull/19527
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest            |   1 -
 games-util/gamemode/gamemode-1.6.ebuild | 131 --------------------------------
 2 files changed, 132 deletions(-)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index 1a3f0d22ef7..82d72291781 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1,2 +1 @@
 DIST gamemode-1.6.1.tar.xz 71224 BLAKE2B aafa3123a2c672197d28fafbc7331004b6e4c87808e831f5e0341fd9a690acda8305da114651391fe39e6702bac805cede9d696280d03d4cc3d03d6f4d782efd SHA512 99403a68675522d3b412424591ab7f0cef54968a699f8f68aa59a42a43df73db4bc8a84ee8f97b9f78f329ecd1ed2f3a50e3cb539458f23e7c5fbe28f7978e47
-DIST gamemode-1.6.tar.xz 69916 BLAKE2B 2fbb680de4043a004a91005647208fd9ca25de250bffe97acc0cabea47dba90d1ef670478582203d616704ea1f5a771115aadef4971e1e41f078104116b08cc4 SHA512 7cb4f4dd51b35e3a0164092342be56ce70bf1a81a8ff071725b429378cf92a100e263bc33890d5f5e281ad87fb72e2f820cb716c5aedf14f387610dcb59eb690

diff --git a/games-util/gamemode/gamemode-1.6.ebuild b/games-util/gamemode/gamemode-1.6.ebuild
deleted file mode 100644
index aff87162859..00000000000
--- a/games-util/gamemode/gamemode-1.6.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-MULTILIB_COMPAT=( abi_x86_{32,64} )
-
-inherit meson multilib-minimal ninja-utils systemd
-
-DESCRIPTION="Optimise Linux system performance on demand"
-HOMEPAGE="https://github.com/FeralInteractive/gamemode"
-
-if [[ ${PV} == "9999" ]] ; then
-	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
-	GAMEMODE_GIT_PTR="master"
-	inherit git-r3
-else
-	GAMEMODE_GIT_PTR="${PV}"
-	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
-	KEYWORDS="~amd64 ~x86"
-fi
-
-LICENSE="BSD"
-SLOT="0"
-IUSE="systemd elogind"
-
-REQUIRED_USE="^^ ( systemd elogind )"
-
-RDEPEND="
-	acct-group/gamemode
-	dev-libs/inih
-	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
-	sys-auth/polkit
-	sys-libs/libcap
-"
-DEPEND="${RDEPEND}"
-
-DOCS=(
-	CHANGELOG.md
-	LICENSE.txt
-	README.md
-	example/gamemode.ini
-)
-
-pkg_pretend() {
-	elog
-	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Example of a kernel providing that is sys-kernel/pf-sources."
-	elog
-	elog "Support for soft realtime is completely optional. It may provide the"
-	elog "following benefits with systems having at least four CPU cores:"
-	elog
-	elog "  * more CPU shares allocated exclusively to the game"
-	elog "  * reduced input lag and reduced thread latency"
-	elog "  * more consistent frame times resulting in less microstutters"
-	elog
-	elog "You probably won't benefit from soft realtime mode and thus don't need"
-	elog "SCHED_ISO if:"
-	elog
-	elog "  * Your CPU has less than four cores because the game may experience"
-	elog "    priority inversion with the graphics driver (thus heuristics"
-	elog "    automatically disable SCHED_ISO usage then)"
-	elog "  * Your game uses busy-loops to interface with the graphics driver"
-	elog "    but you may still force SCHED_ISO per configuation file, YMMV,"
-	elog "    it depends on the graphics driver implementation, i.e. usage of"
-	elog "    __GL_THREADED_OPTIMIZATIONS or similar."
-	elog "  * If your game causes more than 70% CPU usage across all cores,"
-	elog "    SCHED_ISO automatically turns off and on depending on usage and"
-	elog "    is processed with higher-than-normal priority then (renice)."
-	elog "    This auto-switching may result in a lesser game experience."
-	elog
-	elog "For more info look at:"
-	elog "https://github.com/FeralInteractive/gamemode/blob/${GAMEMODE_GIT_PTR}/README.md"
-	elog
-}
-
-multilib_src_configure() {
-	local emesonargs=(
-		-Dwith-sd-bus-provider=$(usex systemd "systemd" "elogind")
-		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
-	)
-	if ! multilib_is_native_abi; then
-		emesonargs+=(
-			-Dwith-examples=false
-			-Dwith-sd-bus-provider=no-daemon
-		)
-	fi
-
-	meson_src_configure
-}
-
-multilib_src_compile() {
-	eninja
-}
-
-multilib_src_install() {
-	DESTDIR="${D}" eninja install
-	if multilib_is_native_abi; then
-		insinto /etc/security/limits.d
-		newins - 45-gamemode.conf <<-EOF
-			@gamemode - nice -10
-		EOF
-	fi
-}
-
-pkg_postinst() {
-	elog
-	elog "GameMode has optional support for adjusting nice and ioprio of games"
-	elog "running with it. You may need to adjust your PAM limits to make use"
-	elog "of this. You need to be in the gamemode group for this to work."
-	elog
-	elog "Run the following command as root to add your user:"
-	elog "# gpasswd -a USER gamemode  # with USER = your user name"
-	elog
-	elog "You can run the following command to test your settings:"
-	elog
-	elog "# gamemoded -t"
-	elog
-	elog "GameMode supports GPU optimizations. It defaults to OFF. Any"
-	elog "damage resulting from usage of this is your own responsibility."
-	elog
-	elog "systemd user sessions will automatically run the daemon on demand,"
-	elog "it does not need to be enabled explicitly. Games not supporting"
-	elog "GameMode natively can still make use of it, just add"
-	elog
-	elog "gamemoderun %command%"
-	elog
-	elog "to the start options of any steam game to enable optimizations"
-	elog "automatically as you start the game."
-	elog
-}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2022-10-01 20:08 James Le Cuirot
  0 siblings, 0 replies; 14+ messages in thread
From: James Le Cuirot @ 2022-10-01 20:08 UTC (permalink / raw
  To: gentoo-commits

commit:     dbd8df364225bcd2bb7662e80a0186ce27c2b9df
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  1 10:01:48 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Oct  1 20:08:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbd8df36

games-util/gamemode: Don't build utils for the non-native ABI

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/gamemode/gamemode-1.7.ebuild  | 2 ++
 games-util/gamemode/gamemode-9999.ebuild | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/games-util/gamemode/gamemode-1.7.ebuild b/games-util/gamemode/gamemode-1.7.ebuild
index 028fd6b39402..c54619d5b953 100644
--- a/games-util/gamemode/gamemode-1.7.ebuild
+++ b/games-util/gamemode/gamemode-1.7.ebuild
@@ -86,12 +86,14 @@ multilib_src_configure() {
 	if multilib_is_native_abi; then
 		emesonargs+=(
 			-Dwith-sd-bus-provider=$(usex systemd systemd elogind)
+			-Dwith-util=true
 		)
 	else
 		emesonargs+=(
 			-Dwith-sd-bus-provider=no-daemon
 			-Dwith-pam-group=gamemode
 			-Dwith-examples=false
+			-Dwith-util=false
 		)
 	fi
 

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 9490fc1e7b56..5807b8187fbf 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -86,12 +86,14 @@ multilib_src_configure() {
 	if multilib_is_native_abi; then
 		emesonargs+=(
 			-Dwith-sd-bus-provider=$(usex systemd systemd elogind)
+			-Dwith-util=true
 		)
 	else
 		emesonargs+=(
 			-Dwith-sd-bus-provider=no-daemon
 			-Dwith-pam-renicing=false
 			-Dwith-examples=false
+			-Dwith-util=false
 		)
 	fi
 


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2024-02-07 13:59 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2024-02-07 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     ffa2e9e4b10f0c0120d8a8ba1df35fe45d8a4bf1
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Wed Feb  7 13:55:55 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb  7 13:59:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffa2e9e4

games-util/gamemode: Update 9999

Remove outdated comments about SCHED_ISO: The MuQSS scheduler is mostly
gone from all kernels, and even CK says that the new EEVDF scheduler
implements most of his design ideas.

Also, bump inih requirement to at least v54.

Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-9999.ebuild | 70 +++++++++-----------------------
 1 file changed, 19 insertions(+), 51 deletions(-)

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 5807b8187fbf..746c7b5239eb 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -28,17 +28,13 @@ REQUIRED_USE="^^ ( systemd elogind )"
 
 RDEPEND="
 	acct-group/gamemode
-	>=dev-libs/inih-53
+	>=dev-libs/inih-54
 	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
 	sys-auth/polkit
 	sys-libs/libcap
 "
 DEPEND="${RDEPEND}"
 
-PATCHES=(
-	"${FILESDIR}"/${PN}-1.7-static-libs.patch
-)
-
 DOCS=(
 	CHANGELOG.md
 	LICENSE.txt
@@ -46,42 +42,13 @@ DOCS=(
 	example/gamemode.ini
 )
 
-pkg_pretend() {
-	elog
-	elog "GameMode needs a kernel capable of SCHED_ISO to use its soft realtime"
-	elog "feature. Example of a kernel providing that is sys-kernel/pf-sources."
-	elog
-	elog "Support for soft realtime is completely optional. It may provide the"
-	elog "following benefits with systems having at least four CPU cores:"
-	elog
-	elog "  * more CPU shares allocated exclusively to the game"
-	elog "  * reduced input lag and reduced thread latency"
-	elog "  * more consistent frame times resulting in less microstutters"
-	elog
-	elog "You probably won't benefit from soft realtime mode and thus don't need"
-	elog "SCHED_ISO if:"
-	elog
-	elog "  * Your CPU has less than four cores because the game may experience"
-	elog "    priority inversion with the graphics driver (thus heuristics"
-	elog "    automatically disable SCHED_ISO usage then)"
-	elog "  * Your game uses busy-loops to interface with the graphics driver"
-	elog "    but you may still force SCHED_ISO per configuation file, YMMV,"
-	elog "    it depends on the graphics driver implementation, i.e. usage of"
-	elog "    __GL_THREADED_OPTIMIZATIONS or similar."
-	elog "  * If your game causes more than 70% CPU usage across all cores,"
-	elog "    SCHED_ISO automatically turns off and on depending on usage and"
-	elog "    is processed with higher-than-normal priority then (renice)."
-	elog "    This auto-switching may result in a lesser game experience."
-	elog
-	elog "For more info look at:"
-	elog "https://github.com/FeralInteractive/gamemode/blob/${GAMEMODE_GIT_PTR}/README.md"
-	elog
-}
-
 multilib_src_configure() {
 	local emesonargs=(
-		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+		-Dwith-examples=false
 		-Dwith-pam-limits-dir="${EPREFIX}"/etc/security/limits.d
+		-Dwith-pam-renicing=true
+		-Dwith-privileged-group=gamemode
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
 	)
 	if multilib_is_native_abi; then
 		emesonargs+=(
@@ -91,8 +58,6 @@ multilib_src_configure() {
 	else
 		emesonargs+=(
 			-Dwith-sd-bus-provider=no-daemon
-			-Dwith-pam-renicing=false
-			-Dwith-examples=false
 			-Dwith-util=false
 		)
 	fi
@@ -102,9 +67,9 @@ multilib_src_configure() {
 
 pkg_postinst() {
 	elog
-	elog "GameMode has optional support for adjusting nice and ioprio of games"
-	elog "running with it. You may need to adjust your PAM limits to make use"
-	elog "of this. You need to be in the gamemode group for this to work."
+	elog "GameMode requires permissions to adjust your PAM limits and change system"
+	elog "performance settings (overclocking, scheduling, L2 cache usage, mitigations"
+	elog "etc). This permission is granted via the gamemode group."
 	elog
 	elog "Run the following command as root to add your user:"
 	elog "# gpasswd -a USER gamemode  # with USER = your user name"
@@ -113,16 +78,19 @@ pkg_postinst() {
 	elog
 	elog "# gamemoded -t"
 	elog
-	elog "GameMode supports GPU optimizations. It defaults to OFF. Any"
-	elog "damage resulting from usage of this is your own responsibility."
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any damage"
+	elog "resulting from usage of this is your own responsibility.  For safety"
+	elog "reasons, GPU settings are not allowed from \$HOME but only from"
+	elog "administrative directories."
 	elog
-	elog "systemd user sessions will automatically run the daemon on demand,"
-	elog "it does not need to be enabled explicitly. Games not supporting"
-	elog "GameMode natively can still make use of it, just add"
+	elog "systemd user sessions will automatically run the daemon on demand, it does"
+	elog "not need to be enabled explicitly. Games not supporting GameMode natively"
+	elog "can still make use of it, just add"
 	elog
 	elog "gamemoderun %command%"
 	elog
-	elog "to the start options of any steam game to enable optimizations"
-	elog "automatically as you start the game."
+	elog "to the start options of any Steam game to enable optimizations automatically"
+	elog "as you start the game. Similar options exist for other launchers like"
+	elog "Bottles or Lutris."
 	elog
 }


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2024-02-07 13:59 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2024-02-07 13:59 UTC (permalink / raw
  To: gentoo-commits

commit:     a306afc2dc7ab19d922dfa6c7e32094358bd5e7d
Author:     Kai Krakow <kai <AT> kaishome <DOT> de>
AuthorDate: Wed Feb  7 13:56:51 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb  7 13:59:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a306afc2

games-util/gamemode: add 1.8.1

Closes: https://bugs.gentoo.org/696460
Signed-off-by: Kai Krakow <kai <AT> kaishome.de>
Closes: https://github.com/gentoo/gentoo/pull/34162
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest              |  1 +
 games-util/gamemode/gamemode-1.8.1.ebuild | 96 +++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index b1c74c46c800..a0bb96e61c70 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1 +1,2 @@
 DIST gamemode-1.7.tar.xz 73264 BLAKE2B 81957a1989cf49532b0d80fc9b96a75d8205e7f148125309f3cae601f6fe125e8d839d4b92bea418a229a6e2658eaa55db2b3bbdb5e7efb26d278e2b22ab8269 SHA512 1fc91367af37d18e0042831b377cafec122c603ab699ecc314b0ded11410aab1bd739712e7305e497796fda25bee88d34438d5f3751595bf579dcbeb7335d15b
+DIST gamemode-1.8.1.tar.xz 78284 BLAKE2B de78c97b61cebd1f4cc29f0ab5c353e8db668eca3d6d8c65fa0cdbc167b1b172d3371e85bcb4cb193c043f0917127bc3a76ebd7de158555af6d145b1e8eb93d7 SHA512 7bfe7d34b422a87c2f53e69b44649a1aca7eba9fb08daa52e7e2f521fea0744e8f03b666c4dd684ad85ccadde20bc2edfb716d67a103629baa690051b8836554

diff --git a/games-util/gamemode/gamemode-1.8.1.ebuild b/games-util/gamemode/gamemode-1.8.1.ebuild
new file mode 100644
index 000000000000..746c7b5239eb
--- /dev/null
+++ b/games-util/gamemode/gamemode-1.8.1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit meson-multilib systemd
+
+DESCRIPTION="Optimise Linux system performance on demand"
+HOMEPAGE="https://github.com/FeralInteractive/gamemode"
+
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
+	GAMEMODE_GIT_PTR="master"
+	inherit git-r3
+else
+	GAMEMODE_GIT_PTR="${PV}"
+	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd elogind"
+
+REQUIRED_USE="^^ ( systemd elogind )"
+
+RDEPEND="
+	acct-group/gamemode
+	>=dev-libs/inih-54
+	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
+	sys-auth/polkit
+	sys-libs/libcap
+"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+	CHANGELOG.md
+	LICENSE.txt
+	README.md
+	example/gamemode.ini
+)
+
+multilib_src_configure() {
+	local emesonargs=(
+		-Dwith-examples=false
+		-Dwith-pam-limits-dir="${EPREFIX}"/etc/security/limits.d
+		-Dwith-pam-renicing=true
+		-Dwith-privileged-group=gamemode
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+	)
+	if multilib_is_native_abi; then
+		emesonargs+=(
+			-Dwith-sd-bus-provider=$(usex systemd systemd elogind)
+			-Dwith-util=true
+		)
+	else
+		emesonargs+=(
+			-Dwith-sd-bus-provider=no-daemon
+			-Dwith-util=false
+		)
+	fi
+
+	meson_src_configure
+}
+
+pkg_postinst() {
+	elog
+	elog "GameMode requires permissions to adjust your PAM limits and change system"
+	elog "performance settings (overclocking, scheduling, L2 cache usage, mitigations"
+	elog "etc). This permission is granted via the gamemode group."
+	elog
+	elog "Run the following command as root to add your user:"
+	elog "# gpasswd -a USER gamemode  # with USER = your user name"
+	elog
+	elog "You can run the following command to test your settings:"
+	elog
+	elog "# gamemoded -t"
+	elog
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any damage"
+	elog "resulting from usage of this is your own responsibility.  For safety"
+	elog "reasons, GPU settings are not allowed from \$HOME but only from"
+	elog "administrative directories."
+	elog
+	elog "systemd user sessions will automatically run the daemon on demand, it does"
+	elog "not need to be enabled explicitly. Games not supporting GameMode natively"
+	elog "can still make use of it, just add"
+	elog
+	elog "gamemoderun %command%"
+	elog
+	elog "to the start options of any Steam game to enable optimizations automatically"
+	elog "as you start the game. Similar options exist for other launchers like"
+	elog "Bottles or Lutris."
+	elog
+}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2024-08-30  7:33 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2024-08-30  7:33 UTC (permalink / raw
  To: gentoo-commits

commit:     6395a5805aee183604c13af7624cb7c1be7b61e0
Author:     Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com>
AuthorDate: Sat Aug 24 13:36:21 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 07:32:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6395a580

games-util/gamemode: update postinst message for 9999

Change postinst message, so it reflects L3 cache, which is
the actual cache level that gets taken into consideration.

Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/gamemode-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-util/gamemode/gamemode-9999.ebuild b/games-util/gamemode/gamemode-9999.ebuild
index 746c7b5239eb..fec4b5dee97b 100644
--- a/games-util/gamemode/gamemode-9999.ebuild
+++ b/games-util/gamemode/gamemode-9999.ebuild
@@ -68,7 +68,7 @@ multilib_src_configure() {
 pkg_postinst() {
 	elog
 	elog "GameMode requires permissions to adjust your PAM limits and change system"
-	elog "performance settings (overclocking, scheduling, L2 cache usage, mitigations"
+	elog "performance settings (overclocking, scheduling, L3 cache usage, mitigations"
 	elog "etc). This permission is granted via the gamemode group."
 	elog
 	elog "Run the following command as root to add your user:"


^ permalink raw reply related	[flat|nested] 14+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/gamemode/
@ 2024-08-30  7:33 Joonas Niilola
  0 siblings, 0 replies; 14+ messages in thread
From: Joonas Niilola @ 2024-08-30  7:33 UTC (permalink / raw
  To: gentoo-commits

commit:     eb301351a462fd6205444c343a94a1e98fc9f132
Author:     Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com>
AuthorDate: Sat Aug 24 13:35:57 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Aug 30 07:32:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb301351

games-util/gamemode: add 1.8.2

Simple bump to 1.8.2, change postinst message, so it reflects L3 cache,
which is the actual cache level that gets taken into consideration.

Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 games-util/gamemode/Manifest              |  1 +
 games-util/gamemode/gamemode-1.8.2.ebuild | 96 +++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index a0bb96e61c70..c316b357dca6 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1,2 +1,3 @@
 DIST gamemode-1.7.tar.xz 73264 BLAKE2B 81957a1989cf49532b0d80fc9b96a75d8205e7f148125309f3cae601f6fe125e8d839d4b92bea418a229a6e2658eaa55db2b3bbdb5e7efb26d278e2b22ab8269 SHA512 1fc91367af37d18e0042831b377cafec122c603ab699ecc314b0ded11410aab1bd739712e7305e497796fda25bee88d34438d5f3751595bf579dcbeb7335d15b
 DIST gamemode-1.8.1.tar.xz 78284 BLAKE2B de78c97b61cebd1f4cc29f0ab5c353e8db668eca3d6d8c65fa0cdbc167b1b172d3371e85bcb4cb193c043f0917127bc3a76ebd7de158555af6d145b1e8eb93d7 SHA512 7bfe7d34b422a87c2f53e69b44649a1aca7eba9fb08daa52e7e2f521fea0744e8f03b666c4dd684ad85ccadde20bc2edfb716d67a103629baa690051b8836554
+DIST gamemode-1.8.2.tar.xz 78724 BLAKE2B e7c0ed0b76231721f851048f77c7148b08cce098ea15232c3e91916a4b3cbe3925186b14e0110ab5773f5db3f4e017fe6930d62169892b048e1d15ae60b0e05a SHA512 eb33f3b7a2d6811aeb13370b0c5ba60fc7630d2f2e59beea059f7d301c57f23b492541c9a128f0e357820ffe5370731d78031df4e392682acba4b232b7778450

diff --git a/games-util/gamemode/gamemode-1.8.2.ebuild b/games-util/gamemode/gamemode-1.8.2.ebuild
new file mode 100644
index 000000000000..fec4b5dee97b
--- /dev/null
+++ b/games-util/gamemode/gamemode-1.8.2.ebuild
@@ -0,0 +1,96 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit meson-multilib systemd
+
+DESCRIPTION="Optimise Linux system performance on demand"
+HOMEPAGE="https://github.com/FeralInteractive/gamemode"
+
+if [[ ${PV} == "9999" ]] ; then
+	EGIT_REPO_URI="https://github.com/FeralInteractive/gamemode.git"
+	GAMEMODE_GIT_PTR="master"
+	inherit git-r3
+else
+	GAMEMODE_GIT_PTR="${PV}"
+	SRC_URI="https://github.com/FeralInteractive/gamemode/releases/download/${GAMEMODE_GIT_PTR}/${P}.tar.xz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="systemd elogind"
+
+REQUIRED_USE="^^ ( systemd elogind )"
+
+RDEPEND="
+	acct-group/gamemode
+	>=dev-libs/inih-54
+	sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
+	sys-auth/polkit
+	sys-libs/libcap
+"
+DEPEND="${RDEPEND}"
+
+DOCS=(
+	CHANGELOG.md
+	LICENSE.txt
+	README.md
+	example/gamemode.ini
+)
+
+multilib_src_configure() {
+	local emesonargs=(
+		-Dwith-examples=false
+		-Dwith-pam-limits-dir="${EPREFIX}"/etc/security/limits.d
+		-Dwith-pam-renicing=true
+		-Dwith-privileged-group=gamemode
+		-Dwith-systemd-user-unit-dir="$(systemd_get_userunitdir)"
+	)
+	if multilib_is_native_abi; then
+		emesonargs+=(
+			-Dwith-sd-bus-provider=$(usex systemd systemd elogind)
+			-Dwith-util=true
+		)
+	else
+		emesonargs+=(
+			-Dwith-sd-bus-provider=no-daemon
+			-Dwith-util=false
+		)
+	fi
+
+	meson_src_configure
+}
+
+pkg_postinst() {
+	elog
+	elog "GameMode requires permissions to adjust your PAM limits and change system"
+	elog "performance settings (overclocking, scheduling, L3 cache usage, mitigations"
+	elog "etc). This permission is granted via the gamemode group."
+	elog
+	elog "Run the following command as root to add your user:"
+	elog "# gpasswd -a USER gamemode  # with USER = your user name"
+	elog
+	elog "You can run the following command to test your settings:"
+	elog
+	elog "# gamemoded -t"
+	elog
+	elog "GameMode supports GPU optimizations. It defaults to OFF. Any damage"
+	elog "resulting from usage of this is your own responsibility.  For safety"
+	elog "reasons, GPU settings are not allowed from \$HOME but only from"
+	elog "administrative directories."
+	elog
+	elog "systemd user sessions will automatically run the daemon on demand, it does"
+	elog "not need to be enabled explicitly. Games not supporting GameMode natively"
+	elog "can still make use of it, just add"
+	elog
+	elog "gamemoderun %command%"
+	elog
+	elog "to the start options of any Steam game to enable optimizations automatically"
+	elog "as you start the game. Similar options exist for other launchers like"
+	elog "Bottles or Lutris."
+	elog
+}


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-08-30  7:33 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox