guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: stepmania: Fix loading of gtk module.


From: guix-commits
Subject: 01/01: gnu: stepmania: Fix loading of gtk module.
Date: Fri, 29 Mar 2019 02:16:19 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 45aba232abe50b6642abfaa06030985c7febbe07
Author: Ricardo Wurmus <address@hidden>
Date:   Fri Mar 29 07:14:17 2019 +0100

    gnu: stepmania: Fix loading of gtk module.
    
    Fixes <https://bugs.gnu.org/34854>.
    
    Suggested by Nicolas Goaziou.
    
    * gnu/packages/games.scm (stepmania)[arguments]: Add phase
    "ensure-gtk-module-can-be-found".
---
 gnu/packages/games.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a5ea5cd..c7e08f8 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6182,6 +6182,13 @@ civilized than your own.")
                             "/lib/glib-2.0/include"))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'ensure-gtk-module-can-be-found
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
+               (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ 
\"GtkModule.so\"")
+                (string-append "\"" (assoc-ref outputs "out")
+                               "/share/stepmania/GtkModule.so\"")))
+             #t))
          (add-after 'unpack 'fix-install-subdir
            ;; Installation would be done in "%out/stepmania-X.Y", but we
            ;; prefer the more common layout "%out/share/stepmania".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]