From patchwork Sat Jun 6 10:58:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 22569 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 F1EF227BBE3; Sat, 6 Jun 2020 11:59:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id A6EE527BBE1 for ; Sat, 6 Jun 2020 11:59:07 +0100 (BST) Received: from localhost ([::1]:45398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhWXb-0003tJ-85 for patchwork@mira.cbaines.net; Sat, 06 Jun 2020 06:59:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhWXW-0003tA-14 for guix-patches@gnu.org; Sat, 06 Jun 2020 06:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhWXV-0002D4-Or for guix-patches@gnu.org; Sat, 06 Jun 2020 06:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhWXV-0006Hc-Oj for guix-patches@gnu.org; Sat, 06 Jun 2020 06:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41541] [PATCH 6/8] system: examples: Add bare-hurd.tmpl. Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Jun 2020 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 41541@debbugs.gnu.org, Ludovic =?utf-8?q?Court=C3=A8s?= Received: via spool by 41541-submit@debbugs.gnu.org id=B41541.159144112024121 (code B ref 41541); Sat, 06 Jun 2020 10:59:01 +0000 Received: (at 41541) by debbugs.gnu.org; 6 Jun 2020 10:58:40 +0000 Received: from localhost ([127.0.0.1]:50867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhWWy-0006Gj-3G for submit@debbugs.gnu.org; Sat, 06 Jun 2020 06:58:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhWWv-0006GW-AO for 41541@debbugs.gnu.org; Sat, 06 Jun 2020 06:58:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58997) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhWWo-00022C-Qx; Sat, 06 Jun 2020 06:58:19 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=34770 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhWWm-0002uk-GO; Sat, 06 Jun 2020 06:58:17 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl References: <20200604135914.4499-1-janneke@gnu.org> <20200604135914.4499-7-janneke@gnu.org> <875zc4mxtu.fsf@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sat, 06 Jun 2020 12:58:13 +0200 In-Reply-To: <875zc4mxtu.fsf@gnu.org> (Mathieu Othacehe's message of "Sat, 06 Jun 2020 09:56:45 +0200") Message-ID: <877dwk4g1m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 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" X-getmail-retrieved-from-mailbox: Patches Mathieu Othacehe writes: Hello Mathieu, Ludo! >> ./pre-inst-env guix system vm-image --target=i586-pc-gnu --no-grafts \ >> gnu/system/examples/bare-hurd.tmpl > > Not related to your serie, but I would really like the "image" catalog I > proposed to help here. Most people struggle to get the difference > between --system and --target. Plus, those cross-compilation targets are > not really documented. > > I think if one could write: > > guix system image gnu/system/images/bare-hurd.scm > > or so, it would help. But this needs some more discussions. Yes, I agree. Do you propose to hold back merging wip-hurd-vm until after merging the "image" catalog feature and then rewrite this message? Exactly when we merge wip-hurd-vm does not matter all that much to me, it's much more important/interesting to agree when we're happy with it. >> - #:use-module ((guix utils) #:select (source-properties->location)) >> + #:use-module ((guix utils) #:select (source-properties->location >> + %current-target-system)) > > You're not using it right? Ah, no (not since the grub work moved). >> + ;; (kernel-loadable-modules '()) > > Remove it. Ok, I was already unsure about keeping... >> + ;; (label (operating-system-default-label this-operating-system)) > > Same for this one and the other commented lines below. ...these all. They were pretty helpful for me to get it to work, initially. This will see more changes as Hurd support improves! Hmm, oops: the guix-system.sh test fails. Added this --8<---------------cut here---------------start------------->8--- --8<---------------cut here---------------end--------------->8--- to "fix" that. It feals a bit heavy, ugly and specific. Ideas? Greetings, Janneke diff --git a/tests/guix-system.sh b/tests/guix-system.sh index 3a831cba1d..0e22686a34 100644 --- a/tests/guix-system.sh +++ b/tests/guix-system.sh @@ -307,7 +307,12 @@ guix system search anonym network | grep "^name: tor" # Verify that the examples can be built. for example in gnu/system/examples/*.tmpl; do - guix system -n disk-image "$example" + if echo "$example" | grep hurd; then + target="--target=i586-pc-gnu" + else + target= + fi + guix system -n disk-image $target "$example" done # Verify that the disk image types can be built.