Bug#820663: No need for removing libstdc++ files from $HOME/.steam

Michel Dänzer michel at daenzer.net
Mon Apr 11 07:51:03 UTC 2016


Package: steam
Version: 1.0.0.51-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The /usr/games/steam script contains this:

# remove steam-runtime's libstdc++ files, which are incompatible with
# newer mesa drivers (https://bugs.freedesktop.org/78242)
find $config -name libstdc++.so.6\* -execdir rm -f {} \;

There are non-destructive alternatives to this:


The best option might be to allow STEAM_RUNTIME=0 to work (currently,
setting this causes Steam to shut down immediately, haven't looked into
what's going on there) and use that by default.


Another option is adding the system version of affected libraries to
the LD_PRELOAD environment variable, e.g.

LD_PRELOAD="/usr/\$LIB/libstdc++.so.6:/usr/\$LIB/libxcb.so.1:$LD_PRELOAD"

Beware that $LIB is expanded by the dynamic linker, so you need to prevent
the shell from expanding it as in my example.

(As you can see in my example, other libraries than libstdc++ are affected
as well, e.g. the Steam runtime ships an old version of libxcb.so.1 which
causes games to hang when DRI3 is enabled. That's why I suspect
STEAM_RUNTIME=0 might be a better solution)


P.S. Adopting either of these would also take care of bug #819826.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (102, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0+ (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages steam depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  libc6                  2.22-5
ii  libgl1-mesa-dri        11.2.0-1
ii  libgl1-mesa-glx        11.2.0-1
ii  libstdc++6             5.3.1-13
ii  libtxc-dxtn0           1.0.1-dmo2
ii  libudev1               229-3
ii  libx11-6               2:1.6.3-1
ii  libxinerama1           2:1.1.3-1+b1
ii  xz-utils               5.1.1alpha+20120614-2.1

Versions of packages steam recommends:
ii  fonts-liberation                      1.07.4-1
ii  gnome-terminal [x-terminal-emulator]  3.20.0-1
ii  konsole [x-terminal-emulator]         4:15.08.3-1
ii  roxterm [x-terminal-emulator]         3.3.2-1
ii  xfce4-terminal [x-terminal-emulator]  0.6.3-2
ii  xterm [x-terminal-emulator]           324-1
ii  zenity                                3.18.1.1-1

Versions of packages steam suggests:
pn  steam-devices  <none>

- -- debconf information:
* steam/question: I AGREE
  steam/purge:
* steam/license:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFXC1diWoGvjmrbsgARAhcSAJ0dJgzrpL84f/AvZNLO8GjX/7G6cgCfTbtn
aaYuTigZNpFaj6YVfturw1Y=
=fw0C
-----END PGP SIGNATURE-----



More information about the Pkg-games-devel mailing list