From 1404b00a49813754c88418928a947164510f76cc Mon Sep 17 00:00:00 2001 From: ison Date: Thu, 4 Mar 2021 12:59:09 -0700 Subject: [PATCH] nongnu: steam: Fix for new installs. * nongnu/packages/steam-client.scm (steam-client)[arguments]: Modify steam.sh and run.sh in steam runtime to prefer LD_LIBRARY_PATH. --- nongnu/packages/steam-client.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nongnu/packages/steam-client.scm b/nongnu/packages/steam-client.scm index 08facbc..300c45e 100644 --- a/nongnu/packages/steam-client.scm +++ b/nongnu/packages/steam-client.scm @@ -115,7 +115,20 @@ (list "PREFIX=" (string-append "DESTDIR=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases - (delete 'configure) + (replace 'configure + (lambda _ + (mkdir-p "bootstrap-temp") + (invoke "tar" "xfa" "bootstraplinux_ubuntu12_32.tar.xz" + "-C" "bootstrap-temp") + (substitute* "bootstrap-temp/steam.sh" + (("export LD_LIBRARY_PATH=\"") + "export LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH-}:")) + (substitute* "bootstrap-temp/ubuntu12_32/steam-runtime/run.sh" + (("^export LD_LIBRARY_PATH=.*") + "export LD_LIBRARY_PATH=\"${LD_LIBRARY_PATH-}:$steam_runtime_library_paths\"")) + (invoke "tar" "cfJ" "bootstraplinux_ubuntu12_32.tar.xz" "-C" "bootstrap-temp" + "linux32" "ubuntu12_32" "steam.sh" "steamdeps.txt") + (delete-file-recursively "bootstrap-temp"))) (add-after 'unpack 'patch-startscript (lambda _ (substitute* "steam"