From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MA7MDqlrBGXvfQEAauVa8A:P1 (envelope-from ) for ; Fri, 15 Sep 2023 16:35:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MA7MDqlrBGXvfQEAauVa8A (envelope-from ) for ; Fri, 15 Sep 2023 16:35:21 +0200 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 38BE0F985 for ; Fri, 15 Sep 2023 16:35:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694788520; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=KH8+Hjt9bNOE9RhfKOqkqs4aD0cUgPykV8GMpI+W0dE=; b=sCm29SYT5J+K6orS8FOVmVmLd2miXr60/TacMQzf2j/KcnHNWWa+8Iob+w2U1NF35yyvl/ 27L+4H6dJ4Nl6yCI8Qr0wBVsLgY48XnURjmAWwUiCKKzXYagb5BtV8/IZU2n4tmISM5VHa 027Ee7iBdO/6nus1n+6k8R8pJ2zJ38QumIcZLgAjPU1OCqi9Fgn5XCYPQzjes00/cOtlwB RpNrVmIBkjBE/2jIMJLJN1MZFTDWkoYeRodwHCP+z/24ims7pW+xXEnl87BF0lNEF4uBz/ g1kQJ9K1JzkLNd7Oc2sW/4iTfxyPQ8KR2jxNLt6Pbxe6S2mK+Zhb1p6RsaOXQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694788520; a=rsa-sha256; cv=none; b=B7gOCx98wnfipnHJFo1ecPEFpNSfABbmoXjNlItCi85HMY8g5/ICxcoyo/34SeCB2Y0IYQ u9LNv4AgJo/KlJbb7Gsci6bk8qkd/wCIkGSEW5p86qXOptkXmOzbCe3A8XtOw3/sH4/Oo/ qPcf2/eXkumtK2WB826+brBNqdye10eMSg1j7gwUKX2HToCNPW7r4zE7a0gQFi8WWivGln PzfClWF9piW2Z449rYU4eOGk/TxOK4ifFs9Yul3DEtiGPxpalidCKeKPOQqJqZTjJmuXtQ cTUyaNqZk59DoZBPuQxsw0mx5MbxpeiiOXoTMaVDtl87BXQrC1ehCcxN6CfA7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qh9uM-0002Al-6B; Fri, 15 Sep 2023 10:34:58 -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 1qh9uL-0002AU-1t for guix-patches@gnu.org; Fri, 15 Sep 2023 10:34:57 -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 1qh9uJ-0003XY-PX for guix-patches@gnu.org; Fri, 15 Sep 2023 10:34:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qh9uQ-00026q-4O for guix-patches@gnu.org; Fri, 15 Sep 2023 10:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64667] [PATCH v2] gnu: Add grub-coreboot References: In-Reply-To: Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Fri, 15 Sep 2023 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64667 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64667@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli , ( , Christopher Baines , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by 64667-submit@debbugs.gnu.org id=B64667.16947884808075 (code B ref 64667); Fri, 15 Sep 2023 14:35:02 +0000 Received: (at 64667) by debbugs.gnu.org; 15 Sep 2023 14:34:40 +0000 Received: from localhost ([127.0.0.1]:44444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh9u4-00026B-FM for submit@debbugs.gnu.org; Fri, 15 Sep 2023 10:34:40 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:53920 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qh9u1-000260-5n for 64667@debbugs.gnu.org; Fri, 15 Sep 2023 10:34:39 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 7bafdce5; Fri, 15 Sep 2023 14:34:29 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 4d51c32b; Fri, 15 Sep 2023 14:34:29 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 15 Sep 2023 16:34:25 +0200 Message-ID: <6ea5063330afa7ae3b9f008552be81641747863e.1694788144.git.GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: -2.99 X-Spam-Score: -2.99 X-Migadu-Queue-Id: 38BE0F985 X-Migadu-Scanner: mx0.migadu.com X-TUID: OKEwgP+pZ68y * gnu/packages/bootloaders.scm (grub-coreboot): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- ChangeLog: * All the failing tests failed because they require a Coreboot image. So now: * Only theses tests are disabled, enabling other tests to run. * There is a better comment explaning why these tests needed to be disabled. --- gnu/packages/bootloaders.scm | 67 +++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index 1c47636341..15c3de2619 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2020, 2021 Pierre Langlois ;;; Copyright © 2021 Vincent Legoll ;;; Copyright © 2021 Brice Waegeneire -;;; Copyright © 2022 Denis 'GNUtoo' Carikli +;;; Copyright © 2022, 2023 Denis 'GNUtoo' Carikli ;;; Copyright © 2021 Stefan ;;; Copyright © 2022, 2023 Maxim Cournoyer ;;; @@ -297,6 +297,71 @@ (define-public grub-minimal #t)))))))) +(define-public grub-coreboot + (package + (inherit grub) + (name "grub-coreboot") + (synopsis "GRand Unified Boot loader (Coreboot payload version)") + (arguments + `(,@(substitute-keyword-arguments (package-arguments grub) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-before 'check 'disable-broken-tests + (lambda _ + (setenv "DISABLE_HARD_ERRORS" "1") + (setenv + "XFAIL_TESTS" + (string-join + ;; TODO: All the tests below use grub shell + ;; (tests/util/grub-shell.in), and here grub-shell uses + ;; QEMU and a Coreboot image to run the tests. Since we + ;; don't have a Coreboot package in Guix yet these tests + ;; are disabled. See the Guix bug #64667 for more details + ;; (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64667). + (list + "pata_test" + "ahci_test" + "uhci_test" + "ehci_test" + "example_grub_script_test" + "ohci_test" + "grub_script_eval" + "grub_script_echo1" + "grub_script_test" + "grub_script_leading_whitespace" + "grub_script_echo_keywords" + "grub_script_vars1" + "grub_script_for1" + "grub_script_while1" + "grub_script_if" + "grub_script_comments" + "grub_script_functions" + "grub_script_continue" + "grub_script_break" + "grub_script_shift" + "grub_script_blockarg" + "grub_script_return" + "grub_script_setparams" + "grub_cmd_date" + "grub_cmd_sleep" + "grub_cmd_regexp" + "grub_script_not" + "grub_cmd_echo" + "grub_script_expansion" + "grub_script_gettext" + "grub_script_escape_comma" + "help_test" + "grub_script_strcmp" + "test_sha512sum" + "grub_cmd_tr" + "test_unset" + "file_filter_test") + " ")))))) + ((#:configure-flags flags + ''()) + `(cons* "--with-platform=coreboot" + ,flags))))))) + (define-public grub-efi (package (inherit grub) base-commit: 0c1aa354048f82023e6d2043bfecc4fd58bc9b58 -- 2.41.0