From patchwork Mon May 1 14:47:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 49724 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8D5D127BBEA; Mon, 1 May 2023 15:49:26 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8297427BBE2 for ; Mon, 1 May 2023 15:49:25 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptUps-0004Oi-NL; Mon, 01 May 2023 10:49:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptUpr-0004OU-03 for guix-patches@gnu.org; Mon, 01 May 2023 10:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptUpq-00060D-NN for guix-patches@gnu.org; Mon, 01 May 2023 10:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptUpq-00043y-J1 for guix-patches@gnu.org; Mon, 01 May 2023 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63206] [PATCH] gnu: gnushogi: Fix build. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 May 2023 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63206 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63206@debbugs.gnu.org Cc: gemmaro X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168295250415525 (code B ref -1); Mon, 01 May 2023 14:49:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2023 14:48:24 +0000 Received: from localhost ([127.0.0.1]:40826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptUpD-00042J-Ih for submit@debbugs.gnu.org; Mon, 01 May 2023 10:48:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:57324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptUp9-00041n-OG for submit@debbugs.gnu.org; Mon, 01 May 2023 10:48:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptUp8-0004LX-AE for guix-patches@gnu.org; Mon, 01 May 2023 10:48:18 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ptUp5-0005rd-M4 for guix-patches@gnu.org; Mon, 01 May 2023 10:48:17 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-63b5ce4f069so3052065b3a.1 for ; Mon, 01 May 2023 07:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682952493; x=1685544493; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y7HVkORaEkrEaacOgMmagib64mqKEUfR8vjoyN73ZhE=; b=iRi5l+yVLh5yRiajfLWFZVhGjnmn9rNhxJrVXjiNYppK3GUQL2S5Tq0rydRlXbrOrX xZUaj0jTvinWabUmW9KwZY8nPvgX8AGoBlEAXHPpQ56xC3+fK/5T1pzFlV7CbmklbnSN 87B6XNnMtjwqmkCWH4WIAGhDwZ5c1+qaa3KMF70WkV5E37a3/gRR2mbCEFxWbyZhX2sO M4gSJqN9HY8NsL4EFhIUPq2K9DdVSdZBE8O3gjpKDo6zTfT9+6rLBkRYmo3wWRstybss jnTklmjMNpzHV8BTRp2g8XzePhMJGPWf30hKL+5sxjleodKifbOhSJFGKKi17rYbPnwb ltAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682952493; x=1685544493; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y7HVkORaEkrEaacOgMmagib64mqKEUfR8vjoyN73ZhE=; b=dOor1JkY9jjRIRTe1TBymmjLDmRNXxgGi5aZTOCltwu/z6DGXFoLb5p/9GMV4zwJa/ hyiDXAC8VPKLCJcWpeVzdcHwp6DLza79JvXOHO4dM/fbH6DOuxbVEeqckvF69G8zf5Vh uLVwt6SkL9OMErgkqqf2tjLpfuuoR9oIMHLyTS7Jro1/8Y4UrxkNovTzZ0Ih0B2/LMXk +xcQLEuThVs1ZwBPtqC2zZ7oxcNQTn9ZjvhY5Pk1JUJUtfzIIlNwixP1L3tf8hPVhD1C 03JpSx2qlQBCVkMPs9hfROFMvCdX8qdFLWeNbvw50aR1/LGz1qe8dFg7H1O1qn4vVgRk +VfQ== X-Gm-Message-State: AC+VfDwUEu1R7ujWQB5FgdIwj7XkEiFZI1zTLi6ADhZayCGDM+zbJZN0 nLGTr4+qcAoz/IROJshjq628YnRQTBZcFQ== X-Google-Smtp-Source: ACHHUZ7uwjbHxqY+mIslqktv0KwA13ZUitbULiaAgegbktm3N7mdcER/a0qF9QWFpWjgZt7bgHeCaw== X-Received: by 2002:a05:6a20:8e07:b0:ef:563e:ac1a with SMTP id y7-20020a056a208e0700b000ef563eac1amr19066894pzj.47.1682952493082; Mon, 01 May 2023 07:48:13 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id g13-20020aa7874d000000b0063b8f17768dsm20014543pfo.129.2023.05.01.07.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 07:48:12 -0700 (PDT) From: gemmaro Date: Mon, 1 May 2023 23:47:59 +0900 Message-Id: <483665ed2ac988be7e19c67fe28b9f9e5acf2a9e.1682952374.git.gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=gemmaro.dev@gmail.com; helo=mail-pf1-x430.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, This patch fixes GNU Shogi build. Since the build is now successful, the actual gnushogi executable and documents are installed in addition to the COPYING file. Thanks, gemmaro. * gnu/packages/games.scm (gnushogi): Set linker flag to build program. --- gnu/packages/games.scm | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) base-commit: 0c6a7e1045cbd06336ef3699734a803a2e4038e5 diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 3391c141e42..a36e2fe55bf 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -76,6 +76,7 @@ ;;; Copyright © 2022 Hendursaga ;;; Copyright © 2022 Parnikkapore ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -2012,24 +2013,31 @@ (define-public gnubik (license license:gpl3+))) (define-public gnushogi - (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. - (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 + (let ((ver "1.4.2") + (revision "2")) + (package + (name "gnushogi") + (version (string-append ver "-" revision)) + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/gnushogi/gnushogi-" ver + ".tar.gz")) + (sha256 + (base32 + "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y")))) + (arguments + `(#:phases (modify-phases %standard-phases + (add-before 'configure 'set-linker-flag + (lambda _ + (setenv "LDFLAGS" "-z muldefs")))) + #:tests? #f)) ;No check target. + (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.") - (license license:gpl3+))) + (license license:gpl3+)))) (define-public ltris (package