unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Andy Tai <atai@atai.org>
To: Leo Famulari <leo@famulari.name>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>,
	52233-done@debbugs.gnu.org
Subject: [bug#52233] [PATCH] gnu: godot: Update to 3.4
Date: Thu, 9 Dec 2021 15:14:20 -0800	[thread overview]
Message-ID: <CAJsg1E-216thCMqyPXOFedvA0EGFHYri1=vZ8PXa61Qj9a=Zzg@mail.gmail.com> (raw)
In-Reply-To: <CAJsg1E8QxNifrJYESo2nxQsCHjUnrA5RucKN5_p=tExMphWuXQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

with the attached patch to superstarfighter, which updates it to the
next version (master tip), the game can run, with audio.

What should I do now?   with these two patches but the issue is marked
"done", do I have to file two new issues for these two patches?   Help
to make this submission easier highly appreciated.

On Sun, Dec 5, 2021 at 11:27 PM Andy Tai <atai@atai.org> wrote:
>
> updated patch:
>
> godot built from this can run the master tip of the superstarfighter
> git (checked out by itself) successfully
>
> However  the superstarfighter in guix still aborts.
>
> So that still needs more investigation as to what is going on there.
>
> I am using Fedora as the host OS, with guix on it.
>
>
> On Thu, Dec 2, 2021 at 11:25 AM Leo Famulari <leo@famulari.name> wrote:
> >
> > On Thu, Dec 02, 2021 at 12:07:34AM -0800, Andy Tai wrote:
> > > I just built  superstarfighter with godot 3.4 and I was able to start
> > > the game on my PC.  So I guess it may run successfully or fail due to
> > > difference in hardware configurations.  Just a data point.
> >
> > I'm curious, was that on Guix System? Or Guix on another distro? I
> > tested with Guix on Debian.

[-- Attachment #2: 0001-gnu-superstarfighter-Update-to-0.6.5.patch --]
[-- Type: text/x-patch, Size: 7496 bytes --]

From 1b9a3128693d7fe2604643f20a844897cb10e7a0 Mon Sep 17 00:00:00 2001
From: Andy Tai <atai@atai.org>
Date: Thu, 9 Dec 2021 15:08:33 -0800
Subject: [PATCH] gnu: superstarfighter: Update to 0.6.5.
To: guix-patches@gnu.org

* gnu/packages/games.scm (superstarfighter): Update to 0.6.5.
---
 gnu/packages/games.scm | 143 +++++++++++++++++++++--------------------
 1 file changed, 72 insertions(+), 71 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 819a832baf..ec8a2e024c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2582,81 +2582,82 @@ (define-public solarus-quest-editor
 modify quests for the Solarus engine.")))
 
 (define-public superstarfighter
-  (package
-    (name "superstarfighter")
-    (version "0.6.4")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/notapixelstudio/superstarfighter")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
-    (build-system gnu-build-system)
-    (arguments
-     `(#:tests? #f                      ;there are no tests
-       #:phases
-       (modify-phases %standard-phases
-         (replace 'configure
-           (lambda _
-             (chdir "godot")
-             (setenv "HOME" (getcwd))
-             (with-output-to-file "export_presets.cfg"
-               (lambda ()
-                 (display
-                  "[preset.0]
+  (let ((commit "32521f467616bb390e3929d07e1936ff43fe64da"))
+      (package
+        (name "superstarfighter")
+        (version "0.6.5")
+        (source
+         (origin
+           (method git-fetch)
+           (uri (git-reference
+                 (url "https://github.com/notapixelstudio/superstarfighter")
+                 (commit commit)))
+           (file-name (string-append name "-" version "-" commit "-checkout"))
+           (sha256
+            (base32 "1ckghzrfgvk9z1n5f4ivnamm6s8h9sbv0a3aq9pp4a3yrhkgld0k"))))
+        (build-system gnu-build-system)
+        (arguments
+         `(#:tests? #f                      ;there are no tests
+           #:phases
+           (modify-phases %standard-phases
+             (replace 'configure
+               (lambda _
+                 (chdir "godot")
+                 (setenv "HOME" (getcwd))
+                 (with-output-to-file "export_presets.cfg"
+                   (lambda ()
+                     (display
+                      "[preset.0]
 name=\"Guix\"
 platform=\"Linux/X11\"
 runnable=true
 [preset.0.options]")))
-             #t))
-         (replace 'build
-           (lambda _
-             (let ((godot (assoc-ref %build-inputs "godot-headless")))
-               (invoke (string-append godot "/bin/godot_server")
-                       "--export-pack" "Guix"
-                       "superstarfighter.pck" "project.godot"))
-             #t))
-         (replace 'install
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (bin (string-append out "/bin"))
-                    (share (string-append out "/share"))
-                    (data (string-append share "/superstarfighter"))
-                    (icons (string-append share "/icons/hicolor/256x256/apps")))
-               (install-file "superstarfighter.pck" data)
-               (mkdir-p bin)
-               (call-with-output-file (string-append bin "/superstarfighter")
-                 (lambda (port)
-                   (format port
-                           "#!/bin/sh~@
-                            exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
-                           (assoc-ref inputs "godot")
-                           data)
-                   (chmod port #o755)))
-               (mkdir-p icons)
-               (copy-file "icon.png" (string-append icons "/" ,name ".png"))
-               (make-desktop-entry-file
-                (string-append share "/applications/" ,name ".desktop")
-                #:name "SuperStarfighter"
-                #:comment "Fast-paced arcade combat game"
-                #:exec ,name
-                #:icon ,name
-                #:categories '("Game" "ArcadeGame")))
-             #t)))))
-    (native-inputs
-     `(("godot-headless" ,godot "headless")))
-    (inputs
-     `(("godot" ,godot)))
-    (home-page "https://notapixel.itch.io/superstarfighter")
-    (synopsis "Fast-paced local multiplayer arcade game")
-    (description "In SuperStarfighter, up to four local players compete in a
-2D arena with fast-moving ships and missiles.  Different game types are
-available, as well as a single-player mode with AI-controlled ships.")
-    (license (list license:expat         ; game
-                   license:silofl1.1)))) ; fonts
+                 #t))
+             (replace 'build
+               (lambda _
+                 (let ((godot (assoc-ref %build-inputs "godot-headless")))
+                   (invoke (string-append godot "/bin/godot_server")
+                           "--export-pack" "Guix"
+                           "superstarfighter.pck" "project.godot"))
+                 #t))
+             (replace 'install
+               (lambda* (#:key inputs outputs #:allow-other-keys)
+                 (let* ((out (assoc-ref outputs "out"))
+                        (bin (string-append out "/bin"))
+                        (share (string-append out "/share"))
+                        (data (string-append share "/superstarfighter"))
+                        (icons (string-append share "/icons/hicolor/256x256/apps")))
+                   (install-file "superstarfighter.pck" data)
+                   (mkdir-p bin)
+                   (call-with-output-file (string-append bin "/superstarfighter")
+                     (lambda (port)
+                       (format port
+                               "#!/bin/sh~@
+                                exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
+                               (assoc-ref inputs "godot")
+                               data)
+                       (chmod port #o755)))
+                   (mkdir-p icons)
+                   (copy-file "icon.png" (string-append icons "/" ,name ".png"))
+                   (make-desktop-entry-file
+                    (string-append share "/applications/" ,name ".desktop")
+                    #:name "SuperStarfighter"
+                    #:comment "Fast-paced arcade combat game"
+                    #:exec ,name
+                    #:icon ,name
+                    #:categories '("Game" "ArcadeGame")))
+                 #t)))))
+        (native-inputs
+         `(("godot-headless" ,godot "headless")))
+        (inputs
+         `(("godot" ,godot)))
+        (home-page "https://notapixel.itch.io/superstarfighter")
+        (synopsis "Fast-paced local multiplayer arcade game")
+        (description "In SuperStarfighter, up to four local players compete in a
+    2D arena with fast-moving ships and missiles.  Different game types are
+    available, as well as a single-player mode with AI-controlled ships.")
+        (license (list license:expat         ; game
+                       license:silofl1.1))))) ; fonts
 
 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
 (define %ufoai-revision "0")

base-commit: 4665e6a73b233e3755ffbba7ecfdbbb53dae87bd
-- 
2.34.0


  reply	other threads:[~2021-12-09 23:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01 23:55 [bug#52233] [PATCH] gnu: godot: Update to 3.4 Andy Tai
2021-12-02  5:07 ` bug#52233: " Leo Famulari
2021-12-02  5:12   ` Leo Famulari
2021-12-02  5:15     ` [bug#52233] " Andy Tai
2021-12-02  6:27       ` Leo Famulari
2021-12-02  8:05         ` Nicolas Goaziou
2021-12-02  8:07       ` bug#52233: " Andy Tai
2021-12-02 19:25         ` Leo Famulari
2021-12-06  7:27           ` [bug#52233] " Andy Tai
2021-12-09 23:14             ` Andy Tai [this message]
2021-12-10  6:57               ` Leo Famulari
2021-12-10 16:21               ` bug#52233: " Leo Famulari
2021-12-10 17:49                 ` [bug#52233] " Andy Tai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJsg1E-216thCMqyPXOFedvA0EGFHYri1=vZ8PXa61Qj9a=Zzg@mail.gmail.com' \
    --to=atai@atai.org \
    --cc=52233-done@debbugs.gnu.org \
    --cc=leo@famulari.name \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).