3
0
Fork 0
forked from mirrors/nixpkgs

steam: workaround segfault at startup.

I don't know why, if I call ld-linux.so.2 to launch the game, it segfaults, so
I renamed it to ld.so.
This commit is contained in:
Carles Pagès 2012-12-27 12:53:02 +01:00 committed by Evgeny Egorochkin
parent c75cccc469
commit 10f722dc04

View file

@ -52,10 +52,11 @@ stdenv.mkDerivation rec {
export LD_LIBRARY_PATH="\$STEAMBINDIR:\$LD_LIBRARY_PATH"
export SDL_VIDEO_X11_DGAMOUSE=0
cd "\$STEAMROOT"
cp ${glibc215}/lib/ld-linux.so.2 "\$STEAMBINDIR"
chmod u+w "\$STEAMBINDIR/ld-linux.so.2"
LDSO="\$STEAMBINDIR\ld.so"
cp ${glibc215}/lib/ld-linux.so.2 "\$LDSO"
chmod u+w "\$LDSO"
echo \$\$ > "\$PIDFILE" # pid of the shell will become pid of steam
exec "\$STEAMBINDIR/ld-linux.so.2" "\$STEAMBINDIR/steam"
exec "\$LDSO" "\$STEAMBINDIR/steam"
else
export PATH=${xz}/bin:\$PATH
exec $out/bin/.steam-wrapped