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 QH/SBEU3sF5AHAAA0tVLHw (envelope-from ) for ; Mon, 04 May 2020 15:39:49 +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 UGPUCU83sF7nXwAAB5/wlQ (envelope-from ) for ; Mon, 04 May 2020 15:39:59 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 9B82A94547A for ; Mon, 4 May 2020 15:30:53 +0000 (UTC) Received: from localhost ([::1]:59652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jVd3V-0005N8-RO for larch@yhetil.org; Mon, 04 May 2020 11:30:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jVd1r-0003Is-5m for guix-devel@gnu.org; Mon, 04 May 2020 11:29:11 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:34644) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jVd1p-0003dc-96; Mon, 04 May 2020 11:29:10 -0400 Received: by mail-wm1-x32b.google.com with SMTP id v4so281056wme.1; Mon, 04 May 2020 08:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=M3h4uJjqPXBZzq5j4wAyA4h1RqU+IUQF01FCN+FEtHU=; b=tcfeTwF3NQpXJnyvmn4doa05k34aWq+COoMI9QeteF4as7SI8UPoTecN55mM/1Nii+ iMCJEuMKK2AURusVajlTaFJ0vrN78yuvYCvuAQw7F9/SFnrPEv/EjucotRR2IKl06V+/ bBeesduvRu9y045pY5vA2Qgk7NBQb3ocPKEw9w0eFm60huNoIFFTKrb8qESKFcZnKI2w EUkXF55qCSukIybIKQgWc1FNPTzOCjZKhUmKOBxmuywvEWbc+8BoC82uoJmxqo/H6ngv AOCcCPhGnB7H82bmIeTMUkwhEnHDTZhT4iE1QetSzZVe1wunal8E7jffqSBk206euCZQ B6Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=M3h4uJjqPXBZzq5j4wAyA4h1RqU+IUQF01FCN+FEtHU=; b=WvXqGz+8LK5S3hBRAcWKQlXKr3Glu0k0c8rErq8I2zhO86AHOaxYtTBVWKUeRvL0PZ 1ztrP1dU+AttBMooCR9MZxW0rLfmc+KEMSs5p4hsZtV8t4TjIKo1l6s1BbTzgRwXbvNb O+PYmPtxWT/FNfuJrERXKvtNaeEE1MobBBXXiBAtev1mCuQ2cOkoCNVWOf6Mz2qaIgCL sWDK7cBSF3/QIn5zPC3cEE6dYfyMfKOXjmBiPuRmF5ij+17BZGxMg4KO1ADbmOj1JK5D 4XDObO/dqj9krvAipzs06pBJhCeP8j73gb0CuI/JFG+dYU4TWyJvYwX1DuohtgCJ+OI9 RJyQ== X-Gm-Message-State: AGi0PuaQLNYw9OL2okbqnc0ymYriptb7hrwr+OqW294eKclAY7d8inhs iha/hAraTV7SCvylVsFHG3IioFDu X-Google-Smtp-Source: APiQypIUG5jtPlCiXHtERXdFIBOERzSas2vQJgzLxHkBky9uaZUrChaSS4tAzyzRTMKzsVQxANyrTA== X-Received: by 2002:a1c:9c0a:: with SMTP id f10mr15319077wme.139.1588606146882; Mon, 04 May 2020 08:29:06 -0700 (PDT) Received: from meru ([2a01:cb18:832e:5f00:25fc:d747:8855:423b]) by smtp.gmail.com with ESMTPSA id c190sm14563252wme.4.2020.05.04.08.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 08:29:06 -0700 (PDT) From: Mathieu Othacehe To: Jan Nieuwenhuizen Subject: Re: guix system vm-image --target=i586-pc-gnu Hurd'le References: <87r1vzkg3q.fsf@gnu.org> Date: Mon, 04 May 2020 17:29:05 +0200 In-Reply-To: <87r1vzkg3q.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Mon, 04 May 2020 15:02:49 +0200") Message-ID: <87o8r3wwfy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=m.othacehe@gmail.com; helo=mail-wm1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -1.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=tcfeTwF3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-1.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.494884156584]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail,gmail.com:server fail]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.13), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mothacehe@gmail.com,guix-devel-bounces@gnu.org]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: bssjggpDmIvq Hello! > (define* (hurd-grub-configuration-file config entries > #:key > (system (%current-target-system)) > (old-entries '())) > (let ((hurd (if (equal? system (%current-system)) > hurd > (with-parameters ((%current-target-system system)) > hurd))) I'm not sure this is useful. When --target is set, you can use #$ to refer to the cross-built package and #+ to refer to the native package (built for host architecture). > (mach (with-parameters ((%current-system "i686-linux")) > gnumach)) > (libc (if (equal? system (%current-system)) > glibc > (cross-libc system)))) > (computed-file "grub.cfg" > #~(call-with-output-file #$output > (lambda (port) > (format port " > set timeout=2 > search.file ~a/boot/gnumach > > menuentry \"GNU\" { > multiboot ~a/boot/gnumach root=device:hd0s1 > module ~a/hurd/ext2fs.static ext2fs \\ > --multiboot-command-line='${kernel-command-line}' \\ > --host-priv-port='${host-port}' \\ > --device-master-port='${device-port}' \\ > --exec-server-task='${exec-task}' -T typed '${root}' \\ > '$(task-create)' '$(task-resume)' > module ~a/lib/ld.so.1 exec ~a/hurd/exec '$(exec-task=task-create)' > }\n" > #+mach #+mach #+hurd > #+libc #+hurd)))))) So here, I think you want to use #$hurd, which would refer to the cross-compiled hurd package when cross-compiling and to the native hurd when building from a hurd system (real, or emulated with --system). In the future it would also be nice to have this stuff in (gnu bootloader grub), but we'll discuss that later on :) Thanks, Mathieu