From 9f4c93685f2ee51c740a20532b8c4829e0d9d7e0 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. This also includes 64bit fixes. --- srcpkgs/steam/patches/void.patch | 26 ++++++++++++++++++++++++++ srcpkgs/steam/template | 2 +- 2 files changed, 27 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 0000000000..0596d163cf --- /dev/null +++ b/srcpkgs/steam/patches/void.patch @@ -0,0 +1,26 @@ +--- steam.orig 2016-05-07 13:51:39.465996146 +0200 ++++ steam 2016-05-07 13:52:51.155112972 +0200 +@@ -183,6 +183,14 @@ + exit 1 + fi + ++# --*-- void --*-- ++if ! xbps-uhelper version nvidia &>/dev/null; then ++ STEAM32_BSTRAP=${DEFAULTSTEAMDIR}/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu ++ STEAM64_BSTRAP=${DEFAULTSTEAMDIR}/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu ++ export LD_PRELOAD="$STEAM32_BSTRAP/libcrypto.so.1.0.0:$STEAM32_BSTRAP/libssl.so.1.0.0:$STEAM64_BSTRAP/libcrypto.so.1.0.0:$STEAM64_BSTRAP/libssl.so.1.0.0" ++fi ++# --*-- void --*-- ++ + # go to the install directory and run the client + cp "$LAUNCHSTEAMBOOTSTRAPFILE" "$LAUNCHSTEAMDIR/bootstrap.tar.xz" + cd "$LAUNCHSTEAMDIR" +@@ -190,7 +198,7 @@ + mkdir -p --mode=777 /tmp/dumps + if [[ -f "/tmp/dumps/${USER}_stdout.txt" ]]; then + rm -f "/tmp/dumps/${USER}_stdout.txt" +- fi ++ fi + exec "$LAUNCHSTEAMDIR/$STEAMBOOTSTRAP" "$@" 2>&1 | tee "/tmp/dumps/${USER}_stdout.txt" + else + exec "$LAUNCHSTEAMDIR/$STEAMBOOTSTRAP" "$@" diff --git a/srcpkgs/steam/template b/srcpkgs/steam/template index 49e2b000c4..1aa599bc45 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.52 -revision=1 +revision=2 wrksrc=steam depends="zenity xterm xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf" repository="nonfree"