From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KKalDsa/+WX9TwEA62LTzQ:P1 (envelope-from ) for ; Tue, 19 Mar 2024 17:39:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KKalDsa/+WX9TwEA62LTzQ (envelope-from ) for ; Tue, 19 Mar 2024 17:39:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710866374; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=P2c/llRuWKCiOg5A/KA3qGClpDC/F/yA0wxvfy9qZv4=; b=uRdtSDEFvz2AUaJNCCaTxmmq8BWdGDE01fGhpIScExreFtk5qnJ9j0bavpSAMLzIa5AHED 7fhwjRUjbp7zPaPe8KiGVZ7wPmMX3bugQpy4Dh1CZ9MONOoEfOmXHDpeQSRQNlZk9SS5uP rIDMqMhI0pB8h84udpqmK8KyqFNkzecFUahMK98Dzloec4woy2lOyV+DvSO4pPcAOc7VUt fAFAd1Ixbf/gMGNWUFWFGlvSSLAsEUZWCL8JUV+/+VZY9QanrqPNxHMtdDASHA3MXOQSpT ju8+UIP80vtNkopsJPojeGSGhmcvHweiOWZFDnFf9UFs1O+d1fPrj4tnBjDQAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710866374; a=rsa-sha256; cv=none; b=hDpNYD6vfJtEqWNbNjuKQbzGJfI0TR7UDZYKu9oQic0TLVBz9aBGP1V8zd3I/Vpe9ZvidC 54tb2mvlezI++iKxFu41p70c/vHDjmWC/3SLUOnFQprw83bR6uJhgsaADeO4Wyp9/De7m6 84/F71LIc+1qYYloUQOGf8urjK5fL8f5U6NIL3H4800G9OsaUTmbFs5vXkJIyL/wD4b0ia 1Nr++0ZZNnIqALIP0QX3wMCE/6bea1lDNdHJ9UMPf+5r7PMOTU5Kj8fM9fDjJTQ+xa153B sVF7QrLkofC6R0KvWXRBlZhSdZXCz6/0W0b5zRUwHA1hbdv+9SuXLeGqnN341g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C43D3B488 for ; Tue, 19 Mar 2024 17:39:32 +0100 (CET) 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 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: 4C43D3B488 X-Migadu-Scanner: mx13.migadu.com X-TUID: +KZGS1bdoqBh * 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 -- 2.41.0