NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.75k stars 13.86k forks source link

`gamemoded -t` fails because of missing libc version GLIBC_2.34 #168365

Closed l0b0 closed 2 years ago

l0b0 commented 2 years ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Set programs.gamemode.enable = true;
  2. Run sudo nixos-rebuild switch --upgrade-all
  3. Run gamemoded -t

Expected behavior

Tests should pass.

Additional context

$ gamemoded -t
: Loading config
Loading config file [/nix/store/51dhdfp5r10m8s5pfkyacrf17ril89m5-gamemode-1.6.1/share/gamemode/gamemode.ini]
Loading config file [/etc/gamemode.ini]
: Running tests

:: Basic client tests
:: Passed

:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed

:: Gamemoderun and reaper thread tests
sleep: /nix/store/ikl21vjfq900ccbqg1xasp83kadw6q8y-glibc-2.32-46/lib/libc.so.6: version `GLIBC_2.34' not found (required by /nix/store/vg2sir3f6rc9d8sj7k6xkwap1l82yzag-gamemode-1.6.1-lib/lib/libgamemodeauto.so.0)
ERROR: gamemode_query_status failed to return other client connected (expected 1)!
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Supervisor tests
:: Passed

: Client tests failed, skipping feature tests
: Tests Failed!

This is on current unstable. As a complete newbie I'm not sure what possible impact this has - will it break every game, every game which has gamemoderun support, every game I manually run with gamemoderun, or something else?

Notify maintainers

@kira-bruneau

Metadata

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.32, NixOS, 22.05 (Quokka), 22.05pre368234.fd364d26885`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-22.05pre368234.fd364d26885"`
 - channels(victor): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
l0b0 commented 2 years ago

This seems to have fixed itself in the meantime:

$ gamemoded -t
: Loading config
Loading config file [/nix/store/ndbzskd6qb85kg5xdivqdp0akpxbaj6x-gamemode-1.6.1/share/gamemode/gamemode.ini]
Loading config file [/etc/gamemode.ini]
: Running tests

:: Basic client tests
:: Passed

:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed

:: Gamemoderun and reaper thread tests
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Passed

:: Supervisor tests
:: Passed

:: Feature tests
::: Verifying CPU governor setting
::: Passed
::: Verifying Scripts
:::: Running start script [/nix/store/04qq972h2nxbabv5ij0siskw4ysd3zw1-libnotify-0.7.9/bin/notify-send 'GameMode started']
:::: Passed
:::: Running end script [/nix/store/04qq972h2nxbabv5ij0siskw4ysd3zw1-libnotify-0.7.9/bin/notify-send 'GameMode ended']
:::: Passed
::: Passed
::: Verifying GPU Optimisations
::: Passed
::: Verifying renice
::: Passed (no renice configured)
::: Verifying ioprio
::: Passed
:: Passed

: All Tests Passed!