From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EO/RJDRRkWDOCwEAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 15:50:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8OaKIDRRkWBPBAAAB5/wlQ (envelope-from ) for ; Tue, 04 May 2021 13:50:44 +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 494F3137BA for ; Tue, 4 May 2021 15:50:44 +0200 (CEST) Received: from localhost ([::1]:50364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldvRj-0007b2-5b for larch@yhetil.org; Tue, 04 May 2021 09:50:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldvQ6-0007Hi-6Q for guix-patches@gnu.org; Tue, 04 May 2021 09:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldvQ5-0002lI-W4 for guix-patches@gnu.org; Tue, 04 May 2021 09:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldvQ5-0007y9-TA for guix-patches@gnu.org; Tue, 04 May 2021 09:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47989] [PATCH] channels: Add a #:system argument to channel-instances->manifest. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 13:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47989 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 47989@debbugs.gnu.org Received: via spool by 47989-submit@debbugs.gnu.org id=B47989.162013611130627 (code B ref 47989); Tue, 04 May 2021 13:49:01 +0000 Received: (at 47989) by debbugs.gnu.org; 4 May 2021 13:48:31 +0000 Received: from localhost ([127.0.0.1]:53335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldvPb-0007xv-I6 for submit@debbugs.gnu.org; Tue, 04 May 2021 09:48:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldvPZ-0007xo-8R for 47989@debbugs.gnu.org; Tue, 04 May 2021 09:48:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52005) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldvPT-0002MX-Vs; Tue, 04 May 2021 09:48:23 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59114 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ldvPT-00070g-Fg; Tue, 04 May 2021 09:48:23 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210424081402.26742-1-mail@cbaines.net> <877dkfv8n4.fsf@gnu.org> <87im3zcxfu.fsf@cbaines.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 =?UTF-8?Q?Flor=C3=A9al?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 04 May 2021 15:48:21 +0200 In-Reply-To: <87im3zcxfu.fsf@cbaines.net> (Christopher Baines's message of "Mon, 03 May 2021 22:35:49 +0100") Message-ID: <87eeemr4nu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620136244; 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=LepDw1XJ8da3SKxCgtKbNtmdxsvKy7Yb5qEK/BRjeU8=; b=pAEU+OVfpXYeN5l/0yzneCGpSy5kKi4T+AD/N3x5L4Cg+Jp7EzLVcJHe7/Y63iMn/iK4ps dBZYJ5qLExxuMZC1U/RywhXlJRo1ifysmLlu+Qr9YmSHjUAsb2uAm6BCH+LOFxHK+Q74wP UikHhAYPcnWV4Jht9xYZVvMW2tAGe/TW3V0+3GatxUR14eBdSjSNAbNRKZGZDo/5IMmkBg WlISTlWY3lT1h9Wvm/IcgCzgiuvZKzAQCIsXfHLeSoz5nVI91HKj05eLMpRK8y8AKsl/Sj 5sl+9x5wO3W5BsiDSo7CkpXjKMpTQJF3LlHviDkb5kS2eXWJJ4TkTonv9YgDcQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620136244; a=rsa-sha256; cv=none; b=ADLBf/ByXGgF8x5QXF25pGs2rDJL3ah1/orBx05wROhBU0Fl23ltPhukqr1mXzVFsGqNGC 1EpgkM9OthQitDqP83NLfIcmDr209jJt+ylgkrnk4ouCsbX+HAj+AqCYQOex2l0puYLf8n kzBtGjFXLAQItno3uvLDkG1pTmahA+1/syqgGO+yueHSZqThEA+fcV324WuOC0GCHyKF/D jCRunWf9HkMCKo8oZY+vQW+4XM+8oiPb2loKP7XlcYMcY+GbNcrAWAma26RIx72ij37SuR qbSF36BCTo/Nl5RaajkSADC7sIqgWCQDaoG9FlCd95ILjx2ThQRVfSaq9qH9Sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Migadu-Spam-Score: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 494F3137BA X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: xXIczmCq3ImV Hi Christopher, Christopher Baines skribis: > Ludovic Court=C3=A8s writes: > >> Christopher Baines skribis: >> >>> This allows computing a manifest for a specific system. Previously this= was >>> possible, but only through changing %current-system, which caused the >>> derivation to be computed using that system as well (so computing a der= ivation >>> for aarch64-linux on x86_64-linux would require running aarch64-linux c= ode). >> >> I remember discussing it, but I wonder if I was confused. >> >> I think you can always do the equivalent of (say): >> >> guix time-machine -- build -s armhf-linux hello -d >> >> =E2=80=A6 where Guix itself is built natively but it then computes a der= ivation >> for a different architecture. >> >> The equivalent code would be roughly: >> >> (let ((inferior (inferior-for-channels =E2=80=A6))) >> (inferior-package-derivation store >> (car (lookup-inferior-packages inferior= "hello")) >> "armhf-linux")) >> >> Does that make sense? > > Not really, :-) > this is just about manifests for channel instances, so nothing to do > with package derivations as far as I'm aware. I re-read your message and must have misunderstood. It=E2=80=99s the deriv= ation of channel instances that you want for a given system, right? (What=E2=80= =99s the use case though?) In that case something along the lines of the patch makes perfect sense. Thanks, Ludo=E2=80=99.