summaryrefslogtreecommitdiff
path: root/games-util
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-30 12:00:55 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-30 12:00:55 +0100
commit2e8abb8c82f14dd064991a1afd337b2f022b37f6 (patch)
treed600b9d779be602cd4b6e93bf715ec8fba07624c /games-util
parentadcf4f8116a4a850dae301fb4dbcd7b71cb35975 (diff)
gentoo auto-resync : 30:08:2024 - 12:00:55
Diffstat (limited to 'games-util')
-rw-r--r--games-util/Manifest.gzbin7897 -> 7893 bytes
-rw-r--r--games-util/gamemode/Manifest8
-rw-r--r--games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch20
-rw-r--r--games-util/gamemode/files/gamemode-1.7-static-libs.patch29
-rw-r--r--games-util/gamemode/gamemode-1.7.ebuild128
-rw-r--r--games-util/gamemode/gamemode-1.8.2.ebuild96
-rw-r--r--games-util/gamemode/gamemode-9999.ebuild2
7 files changed, 100 insertions, 183 deletions
diff --git a/games-util/Manifest.gz b/games-util/Manifest.gz
index cce579991945..c179e0abd382 100644
--- a/games-util/Manifest.gz
+++ b/games-util/Manifest.gz
Binary files differ
diff --git a/games-util/gamemode/Manifest b/games-util/gamemode/Manifest
index 432726457514..39b8bfe975ab 100644
--- a/games-util/gamemode/Manifest
+++ b/games-util/gamemode/Manifest
@@ -1,8 +1,6 @@
-AUX gamemode-1.7-glibc-2.36.patch 608 BLAKE2B 0de6e6ca4d7cc37c7f685b1abeca33c8092dd476f03368a9622b4bffe6b7bd8456ec6ae2a8467093ec839be17b4d22e7c8ef2ae4127197cfa48f9d6140b8c8be SHA512 8e6a14ac909c9d7d4dc51406a4635ff694c01622b1ad1f5b87fa90e98f3a83a30ea75eef08a5b49c9e632ad60149ec1d2504bdce64c18a4e18cef2fd614e6ec1
-AUX gamemode-1.7-static-libs.patch 870 BLAKE2B 25e49df2e018403e8913c263f133140f918ee125b95c8cb3aec748b879bea8c9fb2aa894e0aeff9db44dc026d53044597dfc34f3ce98d7bf3fca690f9fb79937 SHA512 797910ce125eb3626c991af636eba696e30f140b7caf8073b03289e894e31e6db18b41e492b5c3d54a07ff5358c43e81a6502ff1b0a1bb5bf594d9e42ac2a2ad
-DIST gamemode-1.7.tar.xz 73264 BLAKE2B 81957a1989cf49532b0d80fc9b96a75d8205e7f148125309f3cae601f6fe125e8d839d4b92bea418a229a6e2658eaa55db2b3bbdb5e7efb26d278e2b22ab8269 SHA512 1fc91367af37d18e0042831b377cafec122c603ab699ecc314b0ded11410aab1bd739712e7305e497796fda25bee88d34438d5f3751595bf579dcbeb7335d15b
DIST gamemode-1.8.1.tar.xz 78284 BLAKE2B de78c97b61cebd1f4cc29f0ab5c353e8db668eca3d6d8c65fa0cdbc167b1b172d3371e85bcb4cb193c043f0917127bc3a76ebd7de158555af6d145b1e8eb93d7 SHA512 7bfe7d34b422a87c2f53e69b44649a1aca7eba9fb08daa52e7e2f521fea0744e8f03b666c4dd684ad85ccadde20bc2edfb716d67a103629baa690051b8836554
-EBUILD gamemode-1.7.ebuild 3985 BLAKE2B be4f1aa0faa50243f15b1b95777845de1d109680f6e319385c48b6c356595a8ed70521b48657a720c31de83958b45ace6cc54547f628c7e26b1baf2d5d27051c SHA512 b4d770ac99ad774c605fc2cca559b16ce2e86f8705dc051399a7032e7b23c2b2d7d7e1582352ca60b4dc8f277b05696cdc175a449da3274528adbfb1d0a13319
+DIST gamemode-1.8.2.tar.xz 78724 BLAKE2B e7c0ed0b76231721f851048f77c7148b08cce098ea15232c3e91916a4b3cbe3925186b14e0110ab5773f5db3f4e017fe6930d62169892b048e1d15ae60b0e05a SHA512 eb33f3b7a2d6811aeb13370b0c5ba60fc7630d2f2e59beea059f7d301c57f23b492541c9a128f0e357820ffe5370731d78031df4e392682acba4b232b7778450
EBUILD gamemode-1.8.1.ebuild 2630 BLAKE2B d08ef2fcfa71a70345b360f81fe40d0f605b0bf293b23cae37a70ca53d16f44d4f811a62db60956c46c038a7b2bee4da802bfadd4d6780eb5a8d8a9800987b5c SHA512 d08b19a48dc7c917264f9e78ba6e20bffe79d4402ebdac66d6e76e136734f1a6869ed1da4b4e62957cb69a95cba28d1207ff4209916092eba3b1dfb629408c10
-EBUILD gamemode-9999.ebuild 2630 BLAKE2B d08ef2fcfa71a70345b360f81fe40d0f605b0bf293b23cae37a70ca53d16f44d4f811a62db60956c46c038a7b2bee4da802bfadd4d6780eb5a8d8a9800987b5c SHA512 d08b19a48dc7c917264f9e78ba6e20bffe79d4402ebdac66d6e76e136734f1a6869ed1da4b4e62957cb69a95cba28d1207ff4209916092eba3b1dfb629408c10
+EBUILD gamemode-1.8.2.ebuild 2630 BLAKE2B a1d70fb1999a14013d23a0ca1f9471f80596ca778264b1337f16e1bf355e2c3b38c9dfac00457ef08bf612980511c976b7ec299c41852eaa46b7532f12e8d01b SHA512 8e4761fd2b61a87dee0bd5f471de8ed275738b8104e3f06c434306b5657d3076a49693b4d214d6da7c553fc81db497e11f12e8b4fdbc39ccbec9b762fe45c1b9
+EBUILD gamemode-9999.ebuild 2630 BLAKE2B a1d70fb1999a14013d23a0ca1f9471f80596ca778264b1337f16e1bf355e2c3b38c9dfac00457ef08bf612980511c976b7ec299c41852eaa46b7532f12e8d01b SHA512 8e4761fd2b61a87dee0bd5f471de8ed275738b8104e3f06c434306b5657d3076a49693b4d214d6da7c553fc81db497e11f12e8b4fdbc39ccbec9b762fe45c1b9
MISC metadata.xml 561 BLAKE2B c4e2e040e853956f7c587f9933a6791d1742027d9291512c1073fb143b315056cd1c173c517213d62a2169149ae9079fed014c54d2bfff81d946f2c7987511c9 SHA512 a1020dc2ae103ef138f6de356fbc47772bf7ab256d4dfe3cad2880b49b7cffdb9894fc2d40f9996bb64a5c88b00779584b8e6976338f9c9f4d835ea15d0460f8
diff --git a/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch b/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch
deleted file mode 100644
index bb305afd5a35..000000000000
--- a/games-util/gamemode/files/gamemode-1.7-glibc-2.36.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-https://github.com/FeralInteractive/gamemode/commit/4934191b1928ef695c3e8af21e75781f8591745f
-https://bugs.gentoo.org/863995
-
-From: =?UTF-8?q?Nyikos=20Zolt=C3=A1n?= <nyikoszoltan0@gmail.com>
-Date: Wed, 10 Aug 2022 19:56:59 +0200
-Subject: [PATCH] Fix building when pidfd_open is available
-
-On glibc2.36 pidfd_open was made available, but it needs an include
---- a/common/common-pidfds.c
-+++ b/common/common-pidfds.c
-@@ -58,6 +58,8 @@ static int pidfd_open(pid_t pid, unsigned int flags)
- {
- return (int)syscall(__NR_pidfd_open, pid, flags);
- }
-+#else
-+#include <sys/pidfd.h>
- #endif
-
- /* pidfd functions */
-
diff --git a/games-util/gamemode/files/gamemode-1.7-static-libs.patch b/games-util/gamemode/files/gamemode-1.7-static-libs.patch
deleted file mode 100644
index 89fd0ba3d70a..000000000000
--- a/games-util/gamemode/files/gamemode-1.7-static-libs.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From d339709cc42fe0b78b881d760003845010f5a7c1 Mon Sep 17 00:00:00 2001
-From: James Le Cuirot <chewi@gentoo.org>
-Date: Sat, 6 Aug 2022 14:42:27 +0100
-Subject: [PATCH] Don't force installation of static libgamemodeauto
-
-Defining the library with `library` rather than `both_libraries` allows the user
-to choose which type they want to install using `-Ddefault_library`.
-
-Closes: https://github.com/FeralInteractive/gamemode/issues/287
----
- lib/meson.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/meson.build b/lib/meson.build
-index e810509..7cdcf8a 100644
---- a/lib/meson.build
-+++ b/lib/meson.build
-@@ -25,7 +25,7 @@ gamemode_headers_includes = [
- ]
-
- # Small library to automatically use gamemode
--libgamemodeauto = both_libraries(
-+libgamemodeauto = library(
- 'gamemodeauto',
- sources: [
- 'client_loader.c',
---
-2.35.1
-
diff --git a/games-util/gamemode/gamemode-1.7.ebuild b/games-util/gamemode/gamemode-1.7.ebuild
deleted file mode 100644
index c54619d5b953..000000000000
--- a/games-util/gamemode/gamemode-1.7.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 2022 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-53
- sys-apps/dbus[${MULTILIB_USEDEP},systemd(+)=,elogind(-)=]
- sys-auth/polkit
- sys-libs/libcap
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-1.7-static-libs.patch
- "${FILESDIR}"/${P}-glibc-2.36.patch
-)
-
-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-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-pam-group=gamemode
- -Dwith-examples=false
- -Dwith-util=false
- )
- fi
-
- meson_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
- 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
-}
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
+}
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:"