[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: tsukundere: Unset LD_LIBRARY_PATH.
From: |
guix-commits |
Subject: |
03/03: gnu: tsukundere: Unset LD_LIBRARY_PATH. |
Date: |
Sun, 10 Oct 2021 11:33:45 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit dd9fa204eb80e98101578ef39d4d5fc3d336ccb8
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sun Oct 10 17:26:21 2021 +0200
gnu: tsukundere: Unset LD_LIBRARY_PATH.
As of Guile-SDL2 version 0.7.0, which got committed in
73bb0b64855e07e17e73acbea4616ffa44630250, LD_LIBRARY_PATH is used to
determine
the location of SDL libraries if set. However, the presence of said
environment variable does not always point to relative SDL libraries, thus
causing an import of sdl2 modules to fail.
* gnu/packages/game-development.scm (tsukundere)[#:phases]: Unset
LD_LIBRARY_PATH in tsukundere.scm.
---
gnu/packages/game-development.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/game-development.scm
b/gnu/packages/game-development.scm
index 01db236..a22167e 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -602,6 +602,9 @@ clone.")
(substitute* "tsukundere.scm"
(("exec guile (.*)" _ args)
(string-append
+ ;; XXX: Prevent Guile-SDL2 from blowing up by not knowing
+ ;; where the SDL2 libaries are.
+ "unset LD_LIBRARY_PATH\n"
(format #f "export GUILE_LOAD_PATH=\"~@?\"~%"
"~{~a~^:~}" (map scm pkgs))
(format #f "export GUILE_LOAD_COMPILED_PATH=\"~@?\"~%"