diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-10-01 11:02:47 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-10-01 21:08:33 +0100 |
commit | 1bf2324211a2864ae2945f7c3cfb4e0f524dde6c (patch) | |
tree | 42ffebc48f4fd14afdfc74f8f3361d5636caf8cc /games-util | |
parent | games-util/gamemode: Don't build utils for the non-native ABI (diff) | |
download | gentoo-1bf2324211a2864ae2945f7c3cfb4e0f524dde6c.tar.gz gentoo-1bf2324211a2864ae2945f7c3cfb4e0f524dde6c.tar.bz2 gentoo-1bf2324211a2864ae2945f7c3cfb4e0f524dde6c.zip |
games-util/gamemode: Drop old 1.6.1
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/gamemode/Manifest | 1 | ||||
-rw-r--r-- | games-util/gamemode/files/gamemode-1.6.1-signal_h-musl.patch | 39 | ||||
-rw-r--r-- | games-util/gamemode/gamemode-1.6.1.ebuild | 128 |
3 files changed, 0 insertions, 168 deletions
diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest index a38ad2d24ca7..b1c74c46c800 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.7.tar.xz 73264 BLAKE2B 81957a1989cf49532b0d80fc9b96a75d8205e7f148125309f3cae601f6fe125e8d839d4b92bea418a229a6e2658eaa55db2b3bbdb5e7efb26d278e2b22ab8269 SHA512 1fc91367af37d18e0042831b377cafec122c603ab699ecc314b0ded11410aab1bd739712e7305e497796fda25bee88d34438d5f3751595bf579dcbeb7335d15b diff --git a/games-util/gamemode/files/gamemode-1.6.1-signal_h-musl.patch b/games-util/gamemode/files/gamemode-1.6.1-signal_h-musl.patch deleted file mode 100644 index 8689157969bc..000000000000 --- a/games-util/gamemode/files/gamemode-1.6.1-signal_h-musl.patch +++ /dev/null @@ -1,39 +0,0 @@ -https://github.com/FeralInteractive/gamemode/pull/368 - -From 4079d246805e9ce6c1f5ee49116013eb9f5225d7 Mon Sep 17 00:00:00 2001 -From: Alfred Persson Forsberg <cat@catcream.org> -Date: Tue, 5 Jul 2022 17:18:19 +0000 -Subject: [PATCH] Fix build on musl libc - -This simple patch includes signal.h in daemon/gamemode-context.c to fix building gamemode on musl -libc. - -This has been tested Gentoo musl and Alpine (also Gentoo glibc to -ensure no multiple defined symbols/other errors for glibc). - -> ../daemon/gamemode-context.c: In function 'game_mode_context_auto_expire': -> ../daemon/gamemode-context.c:421:29: error: implicit declaration of function 'kill' [-Werror=implicit-function-declaration] -> 421 | if (kill(client->pid, 0) != 0) { -> | ^~~~ -> ../daemon/gamemode-context.c:421:29: warning: nested extern declaration of 'kill' [-Wnested-externs] - -Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> ---- - daemon/gamemode-context.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/daemon/gamemode-context.c b/daemon/gamemode-context.c -index 3b5a61b..feba2b1 100644 ---- a/daemon/gamemode-context.c -+++ b/daemon/gamemode-context.c -@@ -45,6 +45,7 @@ POSSIBILITY OF SUCH DAMAGE. - #include <assert.h> - #include <fcntl.h> - #include <pthread.h> -+#include <signal.h> - #include <stdatomic.h> - #include <stdlib.h> - #include <sys/time.h> --- -2.35.1 - diff --git a/games-util/gamemode/gamemode-1.6.1.ebuild b/games-util/gamemode/gamemode-1.6.1.ebuild deleted file mode 100644 index 1db1b4752c61..000000000000 --- a/games-util/gamemode/gamemode-1.6.1.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# 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 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 -) - -PATCHES=( "${FILESDIR}/${PN}-1.6.1-signal_h-musl.patch" ) - -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_install_all() { - 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 -} |