From 6f8675fbe26d316054122364f6d40fe6e31a45aa Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 16 Feb 2016 09:02:09 +0100 Subject: [PATCH] steam: only preload lib{ssl,crypto} if nvidia is not installed. This is the only workaround that I've found so far to make this work with mesa and nvidia. --- srcpkgs/steam/patches/void.patch | 16 ++++++++++++++++ srcpkgs/steam/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/steam/patches/void.patch diff --git a/srcpkgs/steam/patches/void.patch b/srcpkgs/steam/patches/void.patch new file mode 100644 index 00000000000..2034b13684f --- /dev/null +++ b/srcpkgs/steam/patches/void.patch @@ -0,0 +1,16 @@ +--- steam.orig 2016-02-16 08:28:31.191216344 +0100 ++++ steam 2016-02-16 08:30:59.849711436 +0100 +@@ -183,6 +183,13 @@ if ! check_bootstrap "$LAUNCHSTEAMDIR"; + exit 1 + fi + ++# --*-- void --*-- ++if ! xbps-uhelper version nvidia &>/dev/null; then ++ STEAM_RUNTIME=${DEFAULTSTEAMDIR}/ubuntu12_32/steam-runtime ++ export LD_PRELOAD="$STEAM_RUNTIME/i386/lib/i386-linux-gnu/libcrypto.so.1.0.0:$STEAM_RUNTIME/i386/lib/i386-linux-gnu/libssl.so.1.0.0" ++fi ++# --*-- void --*-- ++ + # go to the install directory and run the client + cp "$LAUNCHSTEAMBOOTSTRAPFILE" "$LAUNCHSTEAMDIR/bootstrap.tar.xz" + cd "$LAUNCHSTEAMDIR" diff --git a/srcpkgs/steam/template b/srcpkgs/steam/template index bdce16fadd5..7c85a0c2d65 100644 --- a/srcpkgs/steam/template +++ b/srcpkgs/steam/template @@ -4,7 +4,7 @@ only_for_archs="i686 x86_64" pkgname=steam version=1.0.0.51 -revision=4 +revision=5 wrksrc=steam depends="zenity xterm xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf" repository="nonfree"