3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: tsukundere: Unset LD_LIBRARY_PATH.

As of Guile-SDL2 version 0.7.0, which got committed in
73bb0b6485, 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.
This commit is contained in:
Liliana Marie Prikler 2021-10-10 17:26:21 +02:00
parent 5464af0765
commit dd9fa204eb
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -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=\"~@?\"~%"