From 85850199e60ac699f8ec8cab8d7a3d61d39e9c7b Mon Sep 17 00:00:00 2001 From: Alexander Tratsevskiy Date: Thu, 2 Apr 2015 11:24:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20ebuild=20steam-launcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../files/steam-fix-ld-library-path.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 games-util/steam-launcher/files/steam-fix-ld-library-path.patch diff --git a/games-util/steam-launcher/files/steam-fix-ld-library-path.patch b/games-util/steam-launcher/files/steam-fix-ld-library-path.patch new file mode 100644 index 000000000..c98ef7713 --- /dev/null +++ b/games-util/steam-launcher/files/steam-fix-ld-library-path.patch @@ -0,0 +1,21 @@ +--- steam 2015-01-01 19:14:52.312377741 +0100 ++++ steam_new 2015-01-01 19:13:59.023702762 +0100 +@@ -17,6 +17,18 @@ + # Set up domain for script localization + export TEXTDOMAIN=steam + ++# Steam appends /usr/lib32 to LD_LIBRARY_PATH. We need to make sure that ++# OpenGL implementation dir goes before that, so we need to append it ++# to user's LD_LIBRARY_PATH ourselves. But that's needed only with ++# the new eselect-opengl that uses 000opengl file. ++if [ -f /etc/env.d/000opengl ]; then ++ . /etc/env.d/000opengl ++ # Append only when LDPATH is non-empty -- i.e. using nvidia or ati. ++ if [ -n "${LDPATH}" ]; then ++ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}${LD_LIBRARY_PATH+:}${LDPATH} ++ fi ++fi ++ + function show_message() + { + style=$1