[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/16: gnu: gnushogi: Fix build.
From: |
guix-commits |
Subject: |
11/16: gnu: gnushogi: Fix build. |
Date: |
Wed, 14 Jun 2023 17:50:04 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit c1ef5df61d1ef81780dcf063eab65f2463b9c762
Author: gemmaro <gemmaro.dev@gmail.com>
AuthorDate: Sun Jun 11 20:13:33 2023 +0900
gnu: gnushogi: Fix build.
* gnu/packages/games.scm (gnushogi)
[source]: Fix warnings by prefixing "__FUNCTION__" with "__extension__".
[arguments]: Turn off some GCC warnings in C flags.
Set the linker flag to build the program.
Skip the "--enable-fast-install" flag in the configure phase.
Enable the "sizetest" test in the check phase.
[synopsis]: Remove "The" so that the sentence doesn't start with it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/games.scm | 51 ++++++++++++++++++++++++++++++++++++++------------
1 file changed, 39 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8c00c2e66e..37c51873ab 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -78,6 +78,7 @@
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023 Florian Pelz <pelzflorian@pelzflorian.de>
;;; Copyright © 2023 Ivana Drazovic <iv.dra@hotmail.com>
+;;; Copyright © 2023 gemmaro <gemmaro.dev@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2043,20 +2044,46 @@ scriptable with Guile.")
(package
(name "gnushogi")
(version "1.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
- version ".tar.gz"))
- (sha256
- (base32
- "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
- (arguments `(#:tests? #f)) ;; No check target.
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gnushogi/gnushogi-" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))
+ (modules '((guix build utils)))
+ ;; Fix "warning: ISO C90 does not support ‘__func__’ predefined
+ ;; identifier [-Wpedantic]"
+ (snippet '(begin
+ (substitute* "gnushogi/dspwrappers.c"
+ (("__FUNCTION__")
+ "__extension__ __FUNCTION__"))))))
+ (arguments
+ `(#:configure-flags (list (string-append
+ "CFLAGS="
+ (string-join '("-Wno-format"
+ "-Wno-unused-but-set-variable"
+ "-Wno-bool-compare")
+ " ")))
+ #:make-flags '("LDFLAGS=-z muldefs")
+ #:phases (modify-phases %standard-phases
+ ;; Skip --enable-fast-install flag
+ (replace 'configure
+ (lambda* (#:key outputs configure-flags #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "CONFIG_SHELL"
+ (which "sh"))
+ (setenv "SHELL"
+ (which "sh"))
+ (apply invoke "./configure"
+ (string-append "--prefix=" out)
configure-flags)))))
+ #:test-target "sizetest"))
(build-system gnu-build-system)
(home-page "https://www.gnu.org/software/gnushogi/")
- (synopsis "The game of Shogi (Japanese chess)")
- (description "GNU Shogi is a program that plays the game Shogi (Japanese
-Chess). It is similar to standard chess but this variant is far more
complicated.")
+ (synopsis "Game of Shogi (Japanese chess)")
+ (description
+ "GNU Shogi is a program that plays the game Shogi (Japanese Chess).
+It is similar to standard chess but this variant is far more complicated.")
(license license:gpl3+)))
(define-public ltris
- branch master updated (09449ef6f6 -> 26602f4063), guix-commits, 2023/06/14
- 03/16: gnu: cuirass: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 02/16: gnu: shepherd@0.10: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 05/16: gnu: gnunet-scheme: Use guile-fibers 1.3.1., guix-commits, 2023/06/14
- 07/16: gnu: libtree: fix building on non-x86 systems., guix-commits, 2023/06/14
- 08/16: gnu: Add nwipe., guix-commits, 2023/06/14
- 14/16: gnu: browserpass-native: Use new package style., guix-commits, 2023/06/14
- 06/16: packages: 'package-transitive-supported-systems' detects cycles., guix-commits, 2023/06/14
- 04/16: gnu: guile-fibers: Remove 'guile-fibers-next'., guix-commits, 2023/06/14
- 09/16: gnu: Add bdf2sfd., guix-commits, 2023/06/14
- 11/16: gnu: gnushogi: Fix build.,
guix-commits <=
- 10/16: gnu: Add pngcheck., guix-commits, 2023/06/14
- 15/16: gnu: guile-netlink: Update to 1.2., guix-commits, 2023/06/14
- 13/16: gnu: browserpass-native: Update to 3.1.0., guix-commits, 2023/06/14
- 12/16: gnu: Add systemtap, guix-commits, 2023/06/14
- 01/16: gnu: guile-fibers: Add 1.3.1., guix-commits, 2023/06/14
- 16/16: services: static-netwoking: Wait for devices to show up., guix-commits, 2023/06/14