From unknown Thu Jun 19 13:53:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41365 <41365@debbugs.gnu.org> To: bug#41365 <41365@debbugs.gnu.org> Subject: Status: [PATCH 0/5] Add superstarfighter Reply-To: bug#41365 <41365@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:53:38 +0000 retitle 41365 [PATCH 0/5] Add superstarfighter reassign 41365 guix-patches submitter 41365 Timotej Lazar severity 41365 normal tag 41365 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:52:11 2020 Received: (at submit) by debbugs.gnu.org; 17 May 2020 15:52:12 +0000 Received: from localhost ([127.0.0.1]:44363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLaF-0005UC-Lu for submit@debbugs.gnu.org; Sun, 17 May 2020 11:52:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:54896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLaE-0005U5-Fq for submit@debbugs.gnu.org; Sun, 17 May 2020 11:52:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaLaC-0008SF-Vo for guix-patches@gnu.org; Sun, 17 May 2020 11:52:09 -0400 Received: from araneo.si ([90.157.193.204]:48346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaLa9-0006K2-Sb for guix-patches@gnu.org; Sun, 17 May 2020 11:52:08 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id 0167143b for ; Sun, 17 May 2020 15:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20180623; bh=CSKbl3zC8L7m16d6YMaXU eXu75g=; b=NSoSEcNK68cfG9aau1cA1Lrahe5AC3cQS+VM9/jY6r+MLdxaChYrV umOZZ2y3ryMjIpOahsFCZBu342RpoIHs78lLOGyeRBnezJQGxJjhaF+CtG7yeg0c RQpnKuSU7Opto8HgYDeqZv1dbVEQk63kvk4FmV85mq2MiZ2FxslZJbDlJyaUsqqH 4f45lovke6B5DRV2zDDBkK04sk0wHCwurdniepMZJXjNnL/zLY/fO6Nsy7u4NFHF C+ARyOmdbDe9hGhBlEMb3nsuHhw0IFqmDid94nvANRyTH6yI4qTEhc3V94VSuGrS XYU/HlcRxAxNb1q2kaJVPtjrAayVD4ftg== Received: by araneo.si (OpenSMTPD) with ESMTPSA id c0e0b1bb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 17 May 2020 15:52:01 +0000 (UTC) From: Timotej Lazar To: guix-patches@gnu.org Subject: [PATCH 0/5] Add superstarfighter Date: Sun, 17 May 2020 17:52:00 +0200 Message-ID: <878shqr23j.fsf@araneo.si> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=90.157.193.204; envelope-from=timotej.lazar@araneo.si; helo=araneo.si X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 11:52:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, this series adds SuperStarfighter=C2=B9, a small game built with the Godot engine. I=E2=80=99m submitting it together with patches for godot needed to build the game, and some other improvements. I built the game for x86, x86_64 and aarch64 (can=E2=80=99t run it there due to missing 3D accelerati= on). The main change to godot is building the headless binary, which is used to compile game assets without requiring X. I put this into a separate output because it doubles the install size. Compile time is also nearly doubled, since most files get compiled twice. If the longer compile time (in total ~20=C2=A0minutes on an old i7, and ~80=C2=A0minutes on an even older core duo) is problematic, this can be spl= it in two packages. The game depends on both versions to build and run though. Thoughts? I also enabled release build for Godot, removed an old workaround for aarch64 (disabling threads caused an infinite loop when building the game), and installed the icons to the correct location to be used with the .desktop file. Thanks! =C2=B9 https://notapixel.itch.io/superstarfighter Timotej Lazar (5): gnu: godot: Enable release build. gnu: godot: Remove obsolete workaround for aarch64. gnu: godot: Build and install the headless version. gnu: godot: Install provided .desktop file and icons. gnu: Add superstarfighter. gnu/packages/game-development.scm | 68 ++++++++++++++-------------- gnu/packages/games.scm | 75 +++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 34 deletions(-) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:55:57 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:55:57 +0000 Received: from localhost ([127.0.0.1]:44378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdp-0005bZ-Ch for submit@debbugs.gnu.org; Sun, 17 May 2020 11:55:57 -0400 Received: from araneo.si ([90.157.193.204]:49476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdn-0005bQ-3X for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:55:51 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id c56d1ca0 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 15:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20180623; bh=JOC+0nQisZ1f8/IM26I7U 1ZsLnA=; b=LaShDAZjp2ek6Zwwn0dwvS8WXtV4L2YzmllMUS+bg+UrbndFNoAnl 3kZLlOIkHwNm+22GRlnoeKDL9RR8gTP+fMmpVPAmojUHqZl5LnBqEvZlq8fuvdZp q1Pwaj0ftin1m4ENXXSHfWh+MS54hu9s9OZxs92OSopM3AomwZ/NAbSofk6IL4Og fbYE9pLBzWFu2T4CgqQxO4tJWHearpMZQJpjfa+D7G3jmEqwfQ7kz2Ikcw6M80Sp zGv7eH8sC7+iGpYf1ltVt9X8jLRkG4WaXtNquwjfpG3caDGwhsgUkWOT+gg8Yfys phZP4hbt+G30AB8sSQAONjlmu4cdbC/xA== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 2b412323 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 15:55:39 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: [PATCH 2/5] gnu: godot: Remove obsolete workaround for aarch64. Date: Sun, 17 May 2020 17:55:17 +0200 Message-Id: <20200517155520.26183-2-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517155520.26183-1-timotej.lazar@araneo.si> References: <20200517155520.26183-1-timotej.lazar@araneo.si> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: Timotej Lazar X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/game-development.scm (godot)[arguments]: Remove -DNO_THREADS from scons-flags as Godot now builds and runs without it on aarch64. --- gnu/packages/game-development.scm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index dfa55b136f..d84b3fb24a 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1586,10 +1586,6 @@ games.") (arguments `(#:scons ,scons-python2 #:scons-flags (list "platform=x11" "target=release_debug" - ,@(if (string-prefix? "aarch64" (or (%current-target-system) - (%current-system))) - `("CCFLAGS=-DNO_THREADS") - '()) ;; Avoid using many of the bundled libs. ;; Note: These options can be found in the SConstruct file. "builtin_bullet=no" -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:55:57 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:55:57 +0000 Received: from localhost ([127.0.0.1]:44384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdt-0005c4-8K for submit@debbugs.gnu.org; Sun, 17 May 2020 11:55:57 -0400 Received: from araneo.si ([90.157.193.204]:49474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdb-0005b1-2O for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:55:53 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id bdc67df2 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 15:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20180623; bh=/Hjovm1iHWWeS1ym/hC8zCZxLbo=; b=Jk0nyQ9Yf6Mz4GQK UZudw4rYUSx8NogGA086gWgxadGUcSLrHESYCR6XSH97769a6JTJONPsp+LK7saV IWGNLbW8L9EtvlvlOYjVxYfyGxjVjx28JDEV5Tu25+mkTyGayghYRKEiQPRFSLd0 ZE4hWNHkJPlUgnpvzXsPlczY+UCnvQYfvjroehPNu0eo2/DTXY0Yf9AUhHdfDKPc Le12fJNGWee/8brQG7Gog0ixDFDU/xjzoFfcgA70GmHfB0BVk4cdQu+3Fxoj7aIO AStEwgFoGDHgfY0GYpSHQYmnul4RbAXDetYF/6ULewFLAm/i/v24hscAln7Z18IA S/cN+w== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 20e9a34d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 15:55:37 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: [PATCH 1/5] gnu: godot: Enable release build. Date: Sun, 17 May 2020 17:55:16 +0200 Message-Id: <20200517155520.26183-1-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: Timotej Lazar X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/game-development.scm (godot)[arguments]: Set release_debug target in #:scons-flags to enable optimized build. --- gnu/packages/game-development.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 26aa4f714b..dfa55b136f 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1585,7 +1585,7 @@ games.") (build-system scons-build-system) (arguments `(#:scons ,scons-python2 - #:scons-flags (list "platform=x11" + #:scons-flags (list "platform=x11" "target=release_debug" ,@(if (string-prefix? "aarch64" (or (%current-target-system) (%current-system))) `("CCFLAGS=-DNO_THREADS") -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:55:58 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:55:58 +0000 Received: from localhost ([127.0.0.1]:44386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdt-0005cC-Ix for submit@debbugs.gnu.org; Sun, 17 May 2020 11:55:57 -0400 Received: from araneo.si ([90.157.193.204]:49476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdn-0005bQ-SX for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:55:54 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id b07a6875 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 15:55:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20180623; bh=5A60GDM6EqeksQeS59Z+B vM7GuE=; b=QWxo+L6iJaP7uyZ+dm0SaQr/I5Sq6j0+WX24xrtGF5mX73xh+igMG nYw81pRwii5sUrm/j9eJOkxnPrH6qq3Wy8UHfF8KyWs3Ic/SlYi9p2omOB2dFHHK 131IqZZ+77vsyOtaMY6aWERcmvGW5XM4CWqzfiWLojGdfx++IbdVkibERnW435iG S1PvRHK4Hr8eUvkm3J0mvYNFsA7l08ur4ypQaF/eO5AstSaPA8L/YKM4DuN60rXu b1eF0rs2OKbX5e7a4ZVpmSDdH1g0+eHKPoiBlmkmDoL1PWSZQM2VjS2UeAwAMWwp AfQL3eCzaIjfBLAF/KjmTe1GUMImJz/5w== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 32f277f4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 15:55:40 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: [PATCH 3/5] gnu: godot: Build and install the headless version. Date: Sun, 17 May 2020 17:55:18 +0200 Message-Id: <20200517155520.26183-3-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517155520.26183-1-timotej.lazar@araneo.si> References: <20200517155520.26183-1-timotej.lazar@araneo.si> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: Timotej Lazar X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/game-development.scm (godot): Build the headless (server) binary. This is needed to package games using Godot without depending on X. [outputs]: Add "headless". [arguments]<#:phases>[build-headless]: New phase. [arguments]<#:phases>[install]: Install headless version to separate output. --- gnu/packages/game-development.scm | 32 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index d84b3fb24a..2ed3055cfc 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1617,20 +1617,29 @@ games.") "env_base = Environment(tools=custom_tools)\n" "env_base = Environment(ENV=os.environ)"))) #t)) + ;; Build headless tools, used for packaging games without depending on X. + (add-after 'build 'build-headless + (lambda* (#:key scons-flags #:allow-other-keys) + (apply invoke "scons" + `(,(string-append "-j" (number->string (parallel-job-count))) + "platform=server" ,@(delete "platform=x11" scons-flags))))) (replace 'install - (lambda* (#:key outputs #:allow-other-keys) + (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) - (bin (string-append out "/bin"))) + (headless (assoc-ref outputs "headless")) + (zenity (assoc-ref inputs "zenity"))) + ;; Strip build info from filenames. (with-directory-excursion "bin" - (if (file-exists? "godot.x11.tools.64") - (rename-file "godot.x11.tools.64" "godot") - (rename-file "godot.x11.tools.32" "godot")) - (install-file "godot" bin)) - ;; Tell Godot where to find zenity for OS.alert(). - (wrap-program (string-append bin "/godot") - `("PATH" ":" prefix - (,(string-append (assoc-ref %build-inputs "zenity") "/bin")))) - #t))) + (for-each (lambda (file) + (let ((dest (car (string-split (basename file) #\.)))) + (rename-file file dest))) + (find-files "." "godot.*\\.x11\\.opt\\.tools.*")) + (install-file "godot" (string-append out "/bin")) + (install-file "godot_server" (string-append headless "/bin"))) + ;; Tell the editor where to find zenity for OS.alert(). + (wrap-program (string-append out "/bin/godot") + `("PATH" ":" prefix (,(string-append zenity "/bin"))))) + #t)) (add-after 'install 'install-godot-desktop (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1652,6 +1661,7 @@ games.") Type=Application~%" out))) #t)))))) + (outputs '("out" "headless")) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("alsa-lib" ,alsa-lib) ("bullet" ,bullet) -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:55:58 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:55:58 +0000 Received: from localhost ([127.0.0.1]:44388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdt-0005cL-VJ for submit@debbugs.gnu.org; Sun, 17 May 2020 11:55:58 -0400 Received: from araneo.si ([90.157.193.204]:49476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdq-0005bQ-Hi for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:55:55 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id b6c435b6 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 15:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20180623; bh=yoNjZkluW1FkzKbIs+Ksa Ef2LYI=; b=enHC+7+5PMU+paQlTpBuuCDeRT3xQru98pTSusSOnoNisPcOBuAUE LnvXZEMTKOmtawGsDKvFkkWPcIM6gs4QUP0xNmU3EpqfT4NZOv6QhqLFQsXdDeQv a5vAA/hBqetCdW/4fwK7uRXd5JYzay0HAvXu7GaIAyJqwd3EnK33b2Y7uLDasjC0 hiw4Uuq9WSDDEGr6iSbWlIPpqewyYucWdD8j+D0DtNvzRJJ2GTfc6Wc3VcBXI6RA F7Kw2atYnA4QryDR3SLw+R8V9bbIzw9B2h1J16q4jjCulHW+aUhSSPFusQA2yeaO Q+b+tRzAofxQpVg3/Uo+hAJBWkP+th2cQ== Received: by araneo.si (OpenSMTPD) with ESMTPSA id db324563 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 15:55:43 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: [PATCH 5/5] gnu: Add superstarfighter. Date: Sun, 17 May 2020 17:55:20 +0200 Message-Id: <20200517155520.26183-5-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517155520.26183-1-timotej.lazar@araneo.si> References: <20200517155520.26183-1-timotej.lazar@araneo.si> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: Timotej Lazar X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/games.scm (superstarfighter): New variable. --- gnu/packages/games.scm | 75 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 177436e6ec..b893ba8cc4 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1733,6 +1733,81 @@ can be explored and changed freely.") license:gpl3+ license:silofl1.1)))) +(define-public superstarfighter + (package + (name "superstarfighter") + (version "0.6.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/notapixelstudio/superstarfighter.git") + (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] +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 _ + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin")) + (share (string-append out "/share/superstarfighter")) + (icons (string-append out "/share/icons/hicolor/256x256/apps"))) + (install-file "superstarfighter.pck" share) + (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 %build-inputs "godot") + share) + (chmod port #o755))) + (mkdir-p icons) + (copy-file "icon.png" (string-append icons "/" ,name ".png")) + (make-desktop-entry-file + (string-append out "/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-public xshogi (package (name "xshogi") -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:56:05 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:56:05 +0000 Received: from localhost ([127.0.0.1]:44394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLe0-0005dX-K0 for submit@debbugs.gnu.org; Sun, 17 May 2020 11:56:04 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:32892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdn-0005bH-Rt for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:55:58 -0400 Received: by mail-wr1-f67.google.com with SMTP id l11so9005205wru.0 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 08:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=S27NWEqi6S23NbHYlipNTdOa1IO+dj8qnaj2PESUzJ4=; b=Ro2ZdCVeEl/Ngd9NMyRSywVl05Iy5TAHsSwjCqjyISODl9nGYOgWgxfefo2iQW5TiK ISnTFEixk4kGOoXhw3WjagBfw8lzOpnHfEzfGBdLZlfBX0XCpoclwBb8Cnnh0K1OrLvu MdAyfafQnaqW/wMVdCOnDOuaRd5aZ62KfyZISm4aL/OqFW4FUfBakzu1pbIIpbfYKvzw 1umwNiytcgHi8xlJM2oTOmIWOZS+esrWZHrZBmKp223ni1F9CrR5Ps8/uWs6YuTBIAAl irCRRRO20owAf6mCEaanTWeMMx3fHeOy8lqAY6RL0pRS15fG7dZZP558SlUjmKC5637E 65zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=S27NWEqi6S23NbHYlipNTdOa1IO+dj8qnaj2PESUzJ4=; b=IA0Ndf9SNK0QNK9ZSDeaLiJ9/82lZE3Tmrpni8etndH9SIyS0449QHlnZI0Qtc/yua I5t/dmqqcmVCbo3KTfXTtiaMs9ozFz/ZKLbe/MfBn0lBcs16vCHpDK9tXgOpz5zpdwLC XDnUaCmY2LQKwa/dP1amvAQyQ5djUfd631tRouAEDIWSTWg65mVKVtGa4FLedLxNE2/L w53bh1gTrz5vUop+F+uQmQtN7edpXp3fL2ms3RigXDKFXZzc9N1g95qCJrG9M4ysf3x6 maE66z329h7Kl5sSrcoZWs4rBbsp8Ku9CD7WJuKeQOzYmG0G0owuR+O9pKXtoDp+QpFD YMAQ== X-Gm-Message-State: AOAM530HrvihHr2xTW2J+5zjbEzDEYFXMQvvc0WmfZehvali7/qhdnrb BobLtqGEu32AwLPLmsdy7h2xHYR3uGY= X-Google-Smtp-Source: ABdhPJx3mnw/602qjuxR+aud47pL2blDqgeV5Cupk75jMjjk56ld9gNUuFdAiV9dPwZzJkO+fqTLaA== X-Received: by 2002:adf:c381:: with SMTP id p1mr15324815wrf.148.1589730945537; Sun, 17 May 2020 08:55:45 -0700 (PDT) Received: from guixSD (host77-80-dynamic.52-82-r.retail.telecomitalia.it. [82.52.80.77]) by smtp.gmail.com with ESMTPSA id s11sm12264556wrp.79.2020.05.17.08.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 08:55:44 -0700 (PDT) From: =?utf-8?Q?Nicol=C3=B2?= Balzarotti To: Timotej Lazar , 41365@debbugs.gnu.org Subject: Re: [bug#41365] [PATCH 0/5] Add superstarfighter In-Reply-To: <878shqr23j.fsf@araneo.si> References: <878shqr23j.fsf@araneo.si> Date: Sun, 17 May 2020 17:55:43 +0200 Message-ID: <87pnb2wo74.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41365 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! This is nice to have. If other godot games can be built this way, does it make sense to create a godot-build-system? Thanks, Nicol=C3=B2 Timotej Lazar writes: > Hi, > > this series adds SuperStarfighter=C2=B9, a small game built with the Godot > engine. I=E2=80=99m submitting it together with patches for godot needed = to > build the game, and some other improvements. I built the game for x86, > x86_64 and aarch64 (can=E2=80=99t run it there due to missing 3D accelera= tion). > > The main change to godot is building the headless binary, which is used > to compile game assets without requiring X. I put this into a separate > output because it doubles the install size. Compile time is also nearly > doubled, since most files get compiled twice. > > If the longer compile time (in total ~20=C2=A0minutes on an old i7, and > ~80=C2=A0minutes on an even older core duo) is problematic, this can be s= plit > in two packages. The game depends on both versions to build and run > though. Thoughts? > > I also enabled release build for Godot, removed an old workaround for > aarch64 (disabling threads caused an infinite loop when building the > game), and installed the icons to the correct location to be used with > the .desktop file. > > Thanks! > > =C2=B9 https://notapixel.itch.io/superstarfighter > > Timotej Lazar (5): > gnu: godot: Enable release build. > gnu: godot: Remove obsolete workaround for aarch64. > gnu: godot: Build and install the headless version. > gnu: godot: Install provided .desktop file and icons. > gnu: Add superstarfighter. > > gnu/packages/game-development.scm | 68 ++++++++++++++-------------- > gnu/packages/games.scm | 75 +++++++++++++++++++++++++++++++ > 2 files changed, 109 insertions(+), 34 deletions(-) > > --=20 > 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 11:56:09 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 15:56:09 +0000 Received: from localhost ([127.0.0.1]:44396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLe5-0005dp-0h for submit@debbugs.gnu.org; Sun, 17 May 2020 11:56:09 -0400 Received: from araneo.si ([90.157.193.204]:49474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLdp-0005b1-Sg for 41365@debbugs.gnu.org; Sun, 17 May 2020 11:56:08 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id d5a8d848 for <41365@debbugs.gnu.org>; Sun, 17 May 2020 15:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=20180623; bh=6k1LxcDxYLDd/wMNiRRkd Gb6T1E=; b=vhBvMq751rWgDOKl5U3m2R6rhQDs3tvs9Gt0U6uC6yqicYvntwlq6 dXX7DGEMnMkmqhGrUuNg738aNY+AgH5QeVGY6jasq2qE4tVnJ66YbSAg3fzEUAy7 NJand7EYXec8I2Q2w88IRds5X0SB6ej4a/4S6hqskaMT1pdf2rEqEJVgU65WFwEh G8Ka7zNxt82ltqmc2edJBW5B0GffwQNvJU3xvm9F3ivcGJatAwTewH2iZAX/FuJr zuJeL/j01wSZYkUrmK7pntavwZW6IeZT0+xsAr2tw3Wl7J5l/RIic3HLBWYnza+C pfogs5kgyYMij8nNSrf+TEL3CzRMmRXWg== Received: by araneo.si (OpenSMTPD) with ESMTPSA id b244663d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 15:55:41 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: [PATCH 4/5] gnu: godot: Install provided .desktop file and icons. Date: Sun, 17 May 2020 17:55:19 +0200 Message-Id: <20200517155520.26183-4-timotej.lazar@araneo.si> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517155520.26183-1-timotej.lazar@araneo.si> References: <20200517155520.26183-1-timotej.lazar@araneo.si> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: Timotej Lazar X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/game-development.scm (godot)[arguments]: Install the provided godot.desktop instead of creating a new one. Copy icons to the correct location in share/icons/hicolor as per XDG. --- gnu/packages/game-development.scm | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 2ed3055cfc..1cbe0e4f0d 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -1643,24 +1643,18 @@ games.") (add-after 'install 'install-godot-desktop (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) - (desktop (string-append out "/share/applications")) - (icon-dir (string-append out "/share/pixmaps"))) - (rename-file "icon.png" "godot.png") - (install-file "godot.png" icon-dir) - (mkdir-p desktop) - (with-output-to-file - (string-append desktop "/godot.desktop") - (lambda _ - (format #t - "[Desktop Entry]~@ - Name=godot~@ - Comment=The godot game engine~@ - Exec=~a/bin/godot~@ - TryExec=~@*~a/bin/godot~@ - Icon=godot~@ - Type=Application~%" - out))) - #t)))))) + (applications (string-append out "/share/applications")) + (icons (string-append out "/share/icons/hicolor"))) + (mkdir-p applications) + (copy-file "misc/dist/linux/org.godotengine.Godot.desktop" + (string-append applications "/godot.desktop")) + (for-each (lambda (icon dest) + (mkdir-p (dirname dest)) + (copy-file icon dest)) + '("icon.png" "icon.svg") + `(,(string-append icons "/256x256/apps/godot.png") + ,(string-append icons "/scalable/apps/godot.svg")))) + #t))))) (outputs '("out" "headless")) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("alsa-lib" ,alsa-lib) -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 12:03:46 2020 Received: (at 41365) by debbugs.gnu.org; 17 May 2020 16:03:46 +0000 Received: from localhost ([127.0.0.1]:44411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLlS-0005sT-G7 for submit@debbugs.gnu.org; Sun, 17 May 2020 12:03:46 -0400 Received: from araneo.si ([90.157.193.204]:49484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLlJ-0005sB-UN for 41365@debbugs.gnu.org; Sun, 17 May 2020 12:03:44 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id c2c5517a; Sun, 17 May 2020 16:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type:content-transfer-encoding; s=20180623; bh=pIHSgmUH ZhxVGBwXsO8cveHxGRU=; b=E40qScSn+rJ1ouY0uSdhTPZHaPoLcD3Y9UIuB4pY Xu+7w5Pi2tPeLY+X7i7EeVThieURu/c6PrXne2vypRosVW36Tftk+p+HWJ2zqhaq H1gxkNSoxH6US70IGGYi9yPWGPQI+XPJGkhb2Uku58ViyPFOAwNxxhYNA/1wowYy 1Lew/7znTVucfyfaXWgZmmZ8oEqkh4dsFvr3ZR5cz71lgkfar/w0Ujv2PXzBMw1a NtEiXKv0MW7ctwsldXcTaO8Xe6CacFvevlXksT/3rqdITZ+Hj+k3dD8tUfvmK6Ow APKgl6cBe4hDO4UPiga59SRVvACnEvkY+oDa6dlNrIURHA== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 7aa214f7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 17 May 2020 16:03:35 +0000 (UTC) From: Timotej Lazar To: 41365@debbugs.gnu.org Subject: Re: [bug#41365] [PATCH 0/5] Add superstarfighter In-Reply-To: <87pnb2wo74.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> References: <878shqr23j.fsf@araneo.si> <87pnb2wo74.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Date: Sun, 17 May 2020 18:03:34 +0200 Message-ID: <875zcur1k9.fsf@araneo.si> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41365 Cc: =?utf-8?Q?Nicol=C3=B2?= Balzarotti X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicol=C3=B2 Balzarotti [2020-05-17 17:55:43+0200]: > If other godot games can be built this way, does it make sense to create > a godot-build-system? I think so. At least the configure and build phases should be mostly the same. I figured I=E2=80=99d submit this to see if anything can be improved,= then try to package a couple more games and see what can be factored out. From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 14:54:02 2020 Received: (at 41365-done) by debbugs.gnu.org; 18 May 2020 18:54:02 +0000 Received: from localhost ([127.0.0.1]:48273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaktm-00066h-BF for submit@debbugs.gnu.org; Mon, 18 May 2020 14:54:02 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:46785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaktj-00066B-L1 for 41365-done@debbugs.gnu.org; Mon, 18 May 2020 14:54:00 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id D5B02C0002; Mon, 18 May 2020 18:53:52 +0000 (UTC) From: Nicolas Goaziou To: Timotej Lazar Subject: Re: [bug#41365] [PATCH 0/5] Add superstarfighter References: <878shqr23j.fsf@araneo.si> Date: Mon, 18 May 2020 20:53:51 +0200 Message-ID: <871rnhula8.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41365-done Cc: 41365-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Timotej Lazar writes: > this series adds SuperStarfighter=C2=B9, a small game built with the Godot > engine. I=E2=80=99m submitting it together with patches for godot needed = to > build the game, and some other improvements. I built the game for x86, > x86_64 and aarch64 (can=E2=80=99t run it there due to missing 3D > acceleration). Great. Thank you. > The main change to godot is building the headless binary, which is used > to compile game assets without requiring X. I put this into a separate > output because it doubles the install size. Compile time is also nearly > doubled, since most files get compiled twice. > > If the longer compile time (in total ~20=C2=A0minutes on an old i7, and > ~80=C2=A0minutes on an even older core duo) is problematic, this can be s= plit > in two packages. The game depends on both versions to build and run > though. Thoughts? I think 80 minutes is not that bad. We can reconsider later. > I also enabled release build for Godot, removed an old workaround for > aarch64 (disabling threads caused an infinite loop when building the > game), and installed the icons to the correct location to be used with > the .desktop file. Perfect. I applied your patches with minor tweaks. Regards, --=20 Nicolas Goaziou From unknown Thu Jun 19 13:53:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Jun 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator