GNU bug report logs - #75669
[PATCH] gnu: moonfish: update to 1.

Previous Next

Package: guix-patches;

Reported by: zamfofex <zamfofex <at> twdb.moe>

Date: Sun, 19 Jan 2025 11:35:02 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

To reply to this bug, email your comments to 75669 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#75669; Package guix-patches. (Sun, 19 Jan 2025 11:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zamfofex <zamfofex <at> twdb.moe>:
New bug report received and forwarded. Copy sent to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Sun, 19 Jan 2025 11:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zamfofex <zamfofex <at> twdb.moe>
To: guix-patches <at> gnu.org
Cc: zamfofex <zamfofex <at> twdb.moe>
Subject: [PATCH] gnu: moonfish: update to 1.
Date: Sun, 19 Jan 2025 08:33:57 -0300
* gnu/packages/games.scm (moonfish): Update to 1.

Change-Id: I0981fc8a24501d5b1bfe04be2f50f92544d620dd
---
 gnu/packages/games.scm | 67 +++++++++++++++++++++++-------------------
 1 file changed, 36 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3d71a7cf8b..a570e7187e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -70,7 +70,7 @@
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
 ;;; Copyright © 2022, 2023 Yovan Naumovski <yovan <at> gorski.stream>
 ;;; Copyright © 2022 Roman Riabenko <roman <at> riabenko.com>
-;;; Copyright © 2022, 2023 zamfofex <zamfofex <at> twdb.moe>
+;;; Copyright © 2022, 2023, 2025 zamfofex <zamfofex <at> twdb.moe>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared <at> gmail.com>
 ;;; Copyright © 2022-2024 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2022 Hendursaga <hendursaga <at> aol.com>
@@ -11304,36 +11304,41 @@ (define-public stockfish
       (license license:gpl3+))))
 
 (define-public moonfish
-  (let ((commit "fb2cb4f53876b1b0c6060464e0dd5a05ab00e502")
-        (revision "2"))
-    (package
-      (name "moonfish")
-      (version (git-version "0" revision commit))
-      (source (origin
-                (method git-fetch)
-                (uri (git-reference
-                      (url "https://git.sr.ht/~zamfofex/moonfish")
-                      (commit commit)))
-                (sha256
-                 (base32
-                  "1rbhdahp0s2qm1zi7lpr0bb6zq02y76fc9d9nc2k5n03zh2as97i"))
-                (file-name (git-file-name name version))))
-      (build-system gnu-build-system)
-      (arguments
-       (list
-        #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
-                             (string-append "PREFIX=" %output))
-        #:tests? #f ;no check target
-        #:phases #~(modify-phases %standard-phases
-                     (delete 'configure)))) ;no configure script
-      (inputs (list bearssl cjson))
-      (home-page "https://git.sr.ht/~zamfofex/moonfish")
-      (synopsis "Simple chess engine written in C")
-      (description
-       "moonfish is a toy UCI chess engine written in C for fun.  It has TUI/CLI
-tools for using any UCI engine and also to connect UCI engines to Lichess, as
-well as for converting engines between UCI and UGI.")
-      (license license:agpl3+))))
+  (package
+    (name "moonfish")
+    (version "1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.sr.ht/~zamfofex/moonfish")
+             (commit (string-append "v" version))))
+       (sha256
+        (base32 "0p5rdrqiip6n5wdxjvlsg7qnwdwrpl9g3j1mx7q0i9a8zmkj2ryv"))
+       (file-name (git-file-name name version))
+       (modules '((guix build utils)))
+       (snippet #~(begin
+                    ;; Avoid relying on '/dev/stderr', which doesn't work at the
+                    ;; top-level of a Guix build, because it refers to a pipe
+                    ;; that the build user doesn't have permission to access.
+                    (substitute* "scripts/check.sh"
+                      (("\\btee /dev/stderr\\b")
+                       "tee"))))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:make-flags #~(list (string-append "CC="
+                                          #$(cc-for-target))
+                           (string-append "PREFIX=" %output))
+      #:phases #~(modify-phases %standard-phases
+                   (delete 'configure)))) ;no configure script
+    (inputs (list libressl cjson))
+    (home-page "https://moonfish.neocities.org")
+    (synopsis "Simple chess engine written in C")
+    (description
+     "moonfish is a toy UCI chess engine written in C.  It has TUI/CLI tools
+for using any UCI engine and also to connect UCI engines to Lichess and IRC.")
+    (license license:agpl3+)))
 
 (define-public morris
   (package

base-commit: 0b06a5bc97938cae3da19e566c2f6f71cc299d78
-- 
2.47.1





Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Thu, 30 Jan 2025 09:17:02 GMT) Full text and rfc822 format available.

Notification sent to zamfofex <zamfofex <at> twdb.moe>:
bug acknowledged by developer. (Thu, 30 Jan 2025 09:17:02 GMT) Full text and rfc822 format available.

Message #10 received at 75669-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> envs.net>
To: zamfofex <zamfofex <at> twdb.moe>
Cc: 75669-done <at> debbugs.gnu.org,
 Liliana Marie Prikler <liliana.prikler <at> gmail.com>,
 Adam Faiz <adam.faiz <at> disroot.org>
Subject: Re: [bug#75669] [PATCH] gnu: moonfish: update to 1.
Date: Thu, 30 Jan 2025 17:19:51 +0800
zamfofex <zamfofex <at> twdb.moe> writes:

> * gnu/packages/games.scm (moonfish): Update to 1.

Pushed to master, thank you!




This bug report was last modified 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.