protonscr

Setting "/usr/lib32 " LD_LIBRARY_PATH in steam.sh wrapper breaks Steam on Gentoo

steamopen reviewed
ValveSoftware/steam-for-linux#3624 · opened 2014-12-09 by nE0sIghT · updated 2015-12-02 · 6 comments · github
NnE0sIghT 2014-12-09 github

With a last change to eselect-opengl in Gentoo there is new way of handling vendor-specific GPU drivers introduced. This is well explain in Gentoo bug 531842
However user steam wrapper - steam.sh - contains this lines:

# Need to add /usr/lib32 to the library path to pick up libvdpau_nvidia.so on Ubuntu 12.04
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32"

That adds /usr/lib32 system path to LD_LIBRARY_PATH and make /usr/lib32 to take priority instead of those vendor specific in /etc/ld.so.conf.

This led to loading wrong libGL.so in Gentoo as described in bug 531990.

I think steam.sh must check distro before setting /usr/lib32 LD_LIBRARY_PATH and do it only if used in ubuntu linux.

TTele42 2014-12-09 github

This should be reported to @anYc at https://github.com/anyc/steam-overlay.

NnE0sIghT 2014-12-10 github

Tele42, please review information i provided early.
Although i posted "hack" for gamerlay ebuild in Gentoo bug 531990 this issue must be fixed in Steam itself as mentioned by Gentoo dev Michał Górny.

I'm not using Steam overlay at all.

NnE0sIghT 2014-12-10 github

One more - by "user steam wrapper" i mean /usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz/steam.sh that unpacked to ~/.local/share/Steam/steam.sh

Mmgorny 2014-12-13 github

Yes, this is not something we can fix at our end. LD_LIBRARY_PATH is a big hammer, and even appending to the end still takes priority over the default system paths.

AAnAkkk 2015-05-27 github

This also seems to break "optirun" since bumblebee add some library paths after /usr/lib32 apparently. I can no longer use "optirun" on my system, just "primusrun" (which add its paths on top of LD_LIBRARY_PATH).

Rreavertm 2015-12-02 github