From patchwork Tue Mar 19 16:38:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Zheng Junjie X-Patchwork-Id: 61995 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 D69F627BBEB; Tue, 19 Mar 2024 16:39:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 3A98827BBE2 for ; Tue, 19 Mar 2024 16:39:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmcUn-0005KE-MQ; Tue, 19 Mar 2024 12:39:25 -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 1rmcUm-0005Jv-98 for guix-patches@gnu.org; Tue, 19 Mar 2024 12:39:24 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmcUm-0007ij-0A for guix-patches@gnu.org; Tue, 19 Mar 2024 12:39:24 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rmcVO-0007Iy-Ik for guix-patches@gnu.org; Tue, 19 Mar 2024 12:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69900] [PATCH 2/2] gnu: foot: Fix cross-compilation. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Mar 2024 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69900 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69900@debbugs.gnu.org Received: via spool by 69900-submit@debbugs.gnu.org id=B69900.171086635627889 (code B ref 69900); Tue, 19 Mar 2024 16:40:02 +0000 Received: (at 69900) by debbugs.gnu.org; 19 Mar 2024 16:39:16 +0000 Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmcUe-0007Fj-BI for submit@debbugs.gnu.org; Tue, 19 Mar 2024 12:39:16 -0400 Received: from smtp84.cstnet.cn ([159.226.251.84]:36218 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmcUY-0007FH-I7 for 69900@debbugs.gnu.org; Tue, 19 Mar 2024 12:39:14 -0400 Received: from m.taildaf0f.ts.net (unknown [183.247.5.22]) by APP-05 (Coremail) with SMTP id zQCowAB3faF8v_ll2AVEBw--.21528S3; Wed, 20 Mar 2024 00:38:20 +0800 (CST) From: Zheng Junjie Date: Wed, 20 Mar 2024 00:38:17 +0800 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-CM-TRANSID: zQCowAB3faF8v_ll2AVEBw--.21528S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUOe7k0a2IF6F4UM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2048vs2IY020E87I2jVAFwI0_Jr4l82xGYIkIc2x26xkF7I0E14v26r18M28lY4IEw2II xxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjc xK6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0 Y4vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21le4C262 xC7I0v67AEwI8IwI1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r10 6r15McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64 vIr41lw4CEx2IqxVAFz4v204v26I0v724l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Y z7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUJVWUGwC2zV AF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4l IxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCw CI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVF xhVjvjDU0xZFpf9x07j1ApnUUUUU= X-Originating-IP: [183.247.5.22] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ 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 * gnu/packages/terminals.scm (foot): Fix cross-compilation. [arguments]<#:configure-flags>: When cross-compilation, Remove -Db_lto=true. [native-inputs]: When cross-compilation, Add wayland, pkg-config-for-build. [inputs]: Add wayland-protocols. Change-Id: Ia56d2583254bd9ab463e5b39859eae8eb5092c9b --- gnu/packages/terminals.scm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index f0ae4d4d4d..651e93b60f 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -36,7 +36,7 @@ ;;; Copyright © 2022, 2023 jgart ;;; Copyright © 2023 Aaron Covrig ;;; Copyright © 2023 Foundation Devices, Inc. -;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023 Jaeme Sifat ;;; Copyright © 2024 Suhail ;;; Copyright © 2024 Clément Lassieur @@ -865,16 +865,23 @@ (define-public foot ;; also to address a GCC 10 issue when doing PGO builds. #:build-type "release" ;; Enable LTO as recommended by INSTALL.md. - #:configure-flags #~'("-Db_lto=true"))) - (native-inputs (list ncurses ;for 'tic' - pkg-config scdoc wayland-protocols)) + ;; when cross-compilation, enable lto will fail. + #:configure-flags (if (%current-target-system) + #~'() + #~'("-Db_lto=true")))) + (native-inputs (append + (if (%current-target-system) + (list wayland pkg-config-for-build) + '()) + (list ncurses ;for 'tic' + pkg-config scdoc wayland-protocols))) (native-search-paths ;; FIXME: This should only be located in 'ncurses'. Nonetheless it is ;; provided for usability reasons. See . (list (search-path-specification (variable "TERMINFO_DIRS") (files '("share/terminfo"))))) - (inputs (list fcft libxkbcommon wayland)) + (inputs (list fcft libxkbcommon wayland wayland-protocols)) (synopsis "Wayland-native terminal emulator") (description "@command{foot} is a terminal emulator for systems using the Wayland