Closed smcv closed 2 years ago
Same deal about LD_LIBRARY_PATH and setgid binaries, but the colors are wrong on this game once you get past that.
(if you remove the setgid bit, it'll fail to write the highscore and terminate the process at the end of the first round, but that's not an sdl12-compat issue.)
Also broken by 9da8808c03e80a228ee66a714091249f331ebcd7.
Confirmed fixed as of https://github.com/libsdl-org/sdl12-compat/commit/67f8b3a85b782eefb4db90f34d5b0742ef2cb5fc (1.2.58 + 29 commits)
Prerequisites:
pipewire-pulse
emulating PulseAudioapt install gravitywars
(Debian package version1.102-35
)libsdl1.2-compat
either 1.2.58-1 (packaged in Debian experimental) or commit eba13ef (locally built)libsdl2-2.0-0
version2.24.1+dfsg-1
To reproduce:
gravitywars
LD_LIBRARY_PATH=.../sdl12-compat/_build ld.so /usr/games/gravitywars
SDL_VIDEODRIVER=wayland LD_LIBRARY_PATH=.../sdl12-compat/_build ld.so /usr/games/gravitywars
Expected result: all work, except for their access to high scores not working because this use of
ld.so
disables setgidActual result: a segfault with Wayland— this was caused by setgid games, similar to https://github.com/libsdl-org/sdl12-compat/issues/247#issuecomment-1276887769Actual result: with sdl12-compat, either native Wayland or X11, the colour palette is wrong. Classic SDL 1.2:
sdl12-compat: