Accepting request 1134551 from games:tools

- Update to version 1.8.1
  * Fix syntax error in polkit rules.

- Update to version 1.8
  * Requires users to be a member of the "gamemode" group to
    utilise priviledged functionality like modifying the CPU
    governor.
  * Adds CPU core pinning and parking capability.
  * Allows disabling the Linux kernel split lock mitigation.
  * Fixes building when pidfd_open is available.
  * Unifies privileged group configuration between pam, systemd,
    and polkit.
  * Various other bugfixes and improved default configuration
- Drop workaround for problematic pidfd_open dection on Tumbleweed
  now that compilation with pidfd_open is fixed upstream.
- Drop no longer required only-build-shared-library.patch.
- Drop unused rpmlint filter.

OBS-URL: https://build.opensuse.org/request/show/1134551
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gamemode?expand=0&rev=12
This commit is contained in:
2023-12-21 22:39:12 +00:00
committed by Git OBS Bridge
9 changed files with 77 additions and 57 deletions

View File

@@ -11,3 +11,9 @@ Although activated via D-Bus. The daemon is run using Systemd and can easily
be restarted via systemctl.
systemctl --user restart gamemoded
Permissions
===========
Some feature, like renicing the process run in GameMode, require elevated priviledges.
To grant these, add your user to the "gamemode" group.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1860f76f1d4c0d6e3965e52de21c824f24791049946da728da50f0c63748389
size 73264

View File

@@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE3jph1YCSt+zQQwmVCPnBx4jMdRUFAmLZbaUACgkQCPnBx4jM
dRXBOg/6Az3aFEQCrhoYLLw2vWaz9aq5nYwtj8nrjqCD/q8CoTrNSHO5+dvo0xtn
jiM9UfZZIety0HO0oCGXP2i5fD7iSsSsd+ojto8dTG2kqRYFjMOh7ts6fQ+v++YX
duCbT2UZ3K5jsV5Arn4wNUYGSByvAWMl0dAUCi7gAlCjZZnFV/K8R+hvHMqH4DvI
aPDvgvqdi5V9P435EqQrr2gO5lH1ut/hr/1tuUCn4vp68MEAScrBRjZTUdu/grs5
NiSx/o1tTXWkP9BFsdo6j1knnT0pYhsDiV3DeMInFc9dXXcosZ9Uevr3Qm/VD1S0
gQxQnMUqgaDmzUWN4OKfco1eSm6RbVZUoL3IQM5qYF994+2b23jSSL4zYuroOepO
2/NqJ8pcofo1D41P+cEyoQjfzQjzvPwWW42/5lGX1lZZ9WNQh+q3J2wGRrkGVQcu
zkDVqT2MItSMB/bIvIHbmjEg01YEV96YcJMqitq0M3StP7rColyrEH+JzITqp37G
xRQZy572U1khXpNMVZ21DIvGugi+GGJN7KS99e8qpn8bk05epQRKG7XundAdOl5G
xKYPumMHZJ6qDtp18JDHG4Ti4LTcAu5nFRWcr2QKUapJ6seAjnY/4MIx+aTN4Kmx
9z+9OVv6VqjsgQZB5bnWkxBHsxavU/P5ylS7mISIQNbp1Lfh0l8=
=TGEN
-----END PGP SIGNATURE-----

3
gamemode-1.8.1.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cdb117d05d65dbd03c0bd2104df874a1f878db8f23cc4d55bfa44e832482269e
size 78284

16
gamemode-1.8.1.tar.xz.asc Normal file
View File

@@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE3jph1YCSt+zQQwmVCPnBx4jMdRUFAmV4hNoACgkQCPnBx4jM
dRVMvQ/+La1ik2eAdBMJPHXMPI3vXNiZ5WQVezTvERk0c/YYrSJcrX5q3ayUNoRv
OAbcrcK5U6fr8dJYmVR66kXi14j9PvhmvHDelPBMmUzS5hyCUKkmG7qs3iyyHzOO
Wo2RgO/2+wPsBqGrlC9s6JHqxdOU6KMu6WiqDvF2+eDnx1e14xOsZjMJ75DD6w7+
+HJI4x3tme7h8zu3w/cO8TcovM9C/VU1jk/uNqhyC/DG3ZULzZc47JjdKQffoyaZ
IZyZwDUwJqiu5RVIquqDOuTZhgV3rPZsdtPhr+RT8sSqYAd9t6CkSUPGw1Elr0/7
jL9dH60AurDw0xu96uaDM1AOtpWwUT9E8kH8vUivmgutNVEo/EuD4R2pDhnrKY7e
YXTJ4OztaPMVSswq9WhYi6hGj+Lf/slh99zQvWz8M/sftzhnUAgLBjUoD5ZwvEp8
TuQLo2QGBoMIbHZqf7Mjapt8apBuqvjqk+WqsI0y+wz3cDG4HQOCq+8gowAeNEpO
JwDvrvZjaUXI9SL6s+n4jufbgWh9E9frmc7IcBawBUekI+Zx7VOwwRQXtLkjJSvU
jtAhCsHUqcYNSiij+gpULnkcvyeRRKbgigULs9e2ixul8kA9iY0Y2E+vePZn3Nnb
6/YZKdM390qG1jTtTyM7j/bBO4ZSoG72JirABeN8tLtnjT1pX1U=
=Begx
-----END PGP SIGNATURE-----

View File

@@ -10,6 +10,3 @@ addFilter('gamemode.* unexpanded-macro %description -l C %command')
# Libgamemodeauto loads the dependency via dlopen, so it cannot be picked up automatically.
addFilter('libgamemodeauto.* explicit-lib-dependency libgamemode')
# Libgamemodeauto actually has a % in its description.
addFilter('libgamemodeauto.* unexpanded-macro %description -l C %command')

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Thu Dec 21 20:13:21 UTC 2023 - Matthias Bach <marix@marix.org>
- Fix package setting a wrong mode for /etc/security/limits.d.
- Drop unused rpmlint filter.
-------------------------------------------------------------------
Wed Dec 13 11:54:01 UTC 2023 - Matthias Bach <marix@marix.org>
- Fix GameMode's PolicyKit rules not applying.
-------------------------------------------------------------------
Wed Dec 13 08:03:00 UTC 2023 - Matthias Bach <marix@marix.org>
- Update to version 1.8.1
* Fix syntax error in polkit rules.
-------------------------------------------------------------------
Fri Dec 8 18:07:49 UTC 2023 - Matthias Bach <marix@marix.org> - 1.8
- Update to version 1.8
* Requires users to be a member of the "gamemode" group to
utilise priviledged functionality like modifying the CPU
governor.
* Adds CPU core pinning and parking capability.
* Allows disabling the Linux kernel split lock mitigation.
* Fixes building when pidfd_open is available.
* Unifies privileged group configuration between pam, systemd,
and polkit.
* Various other bugfixes and improved default configuration
- Drop workaround for problematic pidfd_open dection on Tumbleweed
now that compilation with pidfd_open is fixed upstream.
- Drop no longer required only-build-shared-library.patch.
-------------------------------------------------------------------
Wed May 10 20:35:53 UTC 2023 - Matthias Bach <marix@marix.org> - 1.7

View File

@@ -18,7 +18,7 @@
Name: gamemode
Version: 1.7
Version: 1.8.1
Release: 0
Summary: Daemon/library combo for changing Linux system performance on demand
License: BSD-3-Clause
@@ -30,13 +30,13 @@ Source2: gamemode-rpmlintrc
Source3: README.openSUSE
Source4: baselibs.conf
Source5: feral.keyring
Patch0: only-build-shared-library.patch
BuildRequires: cmake
BuildRequires: libinih-devel
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: polkit-devel
BuildRequires: sysuser-tools
BuildRequires: pkgconfig(dbus-1)
# Yes, it needs both
BuildRequires: pkgconfig(libsystemd)
@@ -66,12 +66,16 @@ For Steam games this can be done by editing the launch options:
gamemoderun %%command%%
Note that some functionalities, like modifying the CPU governor, require
the user to be in the priviledged "gamemode" group.
%package -n gamemoded
Summary: The GameMode daemon required by GameMode enabled games
Group: Amusements/Games/Other
Recommends: libgamemode
Suggests: gamemode
Suggests: libgamemodeauto
%sysusers_requires
%description -n gamemoded
GameMode is a daemon/lib combo for Linux that allows games to request
@@ -132,9 +136,6 @@ built-in GameMode support.
cp %{SOURCE3} .
# Work around broken pidfd_open detection on Tumbleweed
sed -i 's/pidfd_open = .*/pidfd_open = false/' meson.build
%build
%meson -Dwith-examples=false
%meson_build
@@ -144,15 +145,18 @@ sed -i 's/pidfd_open = .*/pidfd_open = false/' meson.build
%install
%meson_install
# We don't want to create the gamemode group as without further
# configuration to actually use it, it does not provide any value
rm %{buildroot}/%{_sysusersdir}/gamemode.conf
# Fix gamemode PolKit rules being overriden by default rules
mv %{buildroot}/%{_datadir}/polkit-1/rules.d/gamemode.rules %{buildroot}/%{_datadir}/polkit-1/rules.d/40-gamemode.rules
%post -n libgamemode0 -p /sbin/ldconfig
%postun -n libgamemode0 -p /sbin/ldconfig
%post -n libgamemodeauto0 -p /sbin/ldconfig
%postun -n libgamemodeauto0 -p /sbin/ldconfig
%post -n gamemoded
%sysusers_create %{name}.conf
%files
%{_bindir}/gamemodelist
%{_bindir}/gamemoderun
@@ -163,12 +167,18 @@ rm %{buildroot}/%{_sysusersdir}/gamemode.conf
%files -n gamemoded
%{_bindir}/gamemoded
%{_libexecdir}/cpugovctl
%{_libexecdir}/cpucorectl
%{_libexecdir}/gpuclockctl
%{_libexecdir}/procsysctl
%{_userunitdir}/gamemoded.service
%{_datadir}/polkit-1/actions/com.feralinteractive.GameMode.policy
%{_datadir}/polkit-1/rules.d/40-gamemode.rules
%{_datadir}/dbus-1/services/com.feralinteractive.GameMode.service
%{_datadir}/metainfo/io.github.feralinteractive.gamemode.metainfo.xml
%{_mandir}/*/gamemoded*
%{_sysusersdir}/%{name}.conf
%dir %{_sysconfdir}/security/limits.d
%config(noreplace) %{_sysconfdir}/security/limits.d/10-gamemode.conf
%doc example/gamemode.ini README.openSUSE
%license LICENSE.txt

View File

@@ -1,27 +0,0 @@
From: Matthias Bach <marix@marix.org>
Date: Wed, 23 Sep 2020 20:36:08 +0200
Subject: Build only the dynamic library
Upstream: never
openSUSE policy asks to only build the dynamic library unless there is a
compelling reason to also package a static one.
---
lib/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/meson.build b/lib/meson.build
index e810509..e8754e6 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 = shared_library(
'gamemodeauto',
sources: [
'client_loader.c',
--
2.26.2