This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 9777282c8d gnu: supertux: Fix build.
9777282c8d is described below

commit 9777282c8d35f82b429bf1931ff69e51f17778cd
Author: Andreas Enge <[email protected]>
AuthorDate: Thu Jul 31 10:41:55 2025 +0200

    gnu: supertux: Fix build.
    
    This is a follow-up to commit f6e59b049b99bb8cd0f31e8771dd62cbe41bca84
    
    * gnu/packages/games.scm (supertux)[arguments]<#:phases>
    {patch-squirrel-path}: Rename to...
    {adapt-squirrel}: ...this and add a substitution to adapt to the changed API
    between squirrel-3.1 and squirrel-3.2.
    
    Fixes: guix/guix#1718
    Change-Id: I238c88ed47a565011c34e05f26592e025a396514
---
 gnu/packages/games.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index d0b1ee8a77..715008aa8e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6929,7 +6929,7 @@ with the \"Stamp\" tool within Tux Paint.")
                           "-DUSE_SYSTEM_PHYSFS=ON")
       #:phases
       (modify-phases %standard-phases
-        (add-after 'unpack 'patch-squirrel-path
+        (add-after 'unpack 'adapt-squirrel
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((squirrel (assoc-ref inputs "squirrel")))
               (substitute* "CMakeLists.txt"
@@ -6938,7 +6938,10 @@ with the \"Stamp\" tool within Tux Paint.")
                 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
                 (("\\$\\{SQUIRREL_PREFIX\\}/include")
                  (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
-            #t)))))
+            ;; Adapt to changed API between squirrel-3.1 and 3.2.
+            (substitute* "src/scripting/wrapper.cpp"
+              (("sq_getinstanceup\\(vm, 1, &data, nullptr" all)
+               (string-append all ", 0"))))))))
    (build-system cmake-build-system)
    (inputs (list boost
                  curl

Reply via email to