From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sOc3Jv12217zGgAA0tVLHw (envelope-from ) for ; Sat, 06 Jun 2020 10:59:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MCr8If12216OdAAAB5/wlQ (envelope-from ) for ; Sat, 06 Jun 2020 10:59:09 +0000 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 0FB969404C5 for ; Sat, 6 Jun 2020 10:59:09 +0000 (UTC) Received: from localhost ([::1]:45398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhWXc-0003tJ-2e for larch@yhetil.org; Sat, 06 Jun 2020 06:59:08 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: zErTtdQzKBtc Mathieu Othacehe writes: Hello Mathieu, Ludo! >> ./pre-inst-env guix system vm-image --target=3Di586-pc-gnu --no-graf= ts \ >> 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--- 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" =20 # 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=3D"--target=3Di586-pc-gnu" + else + target=3D + fi + guix system -n disk-image $target "$example" done =20 # Verify that the disk image types can be built. --8<---------------cut here---------------end--------------->8--- to "fix" that. It feals a bit heavy, ugly and specific. Ideas? Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com