From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qHswGhdmkmAuAgAAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 11:32:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KNDxFRdmkmDcZQAA1q6Kng (envelope-from ) for ; Wed, 05 May 2021 09:32:07 +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 2888223974 for ; Wed, 5 May 2021 11:32:06 +0200 (CEST) Received: from localhost ([::1]:51840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leDsy-0000rm-OI for larch@yhetil.org; Wed, 05 May 2021 05:32:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leDq3-0005px-Tu for guix-patches@gnu.org; Wed, 05 May 2021 05:29:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leDq2-0000UF-8e for guix-patches@gnu.org; Wed, 05 May 2021 05:29:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leDq2-0006y4-3z for guix-patches@gnu.org; Wed, 05 May 2021 05:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47989] [PATCH] channels: Add a #:system argument to channel-instances->manifest. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 May 2021 09:29:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 47989@debbugs.gnu.org Received: via spool by 47989-submit@debbugs.gnu.org id=B47989.162020691726768 (code B ref 47989); Wed, 05 May 2021 09:29:02 +0000 Received: (at 47989) by debbugs.gnu.org; 5 May 2021 09:28:37 +0000 Received: from localhost ([127.0.0.1]:58993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDpd-0006xg-5v for submit@debbugs.gnu.org; Wed, 05 May 2021 05:28:37 -0400 Received: from mira.cbaines.net ([212.71.252.8]:52918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDpc-0006xa-Af for 47989@debbugs.gnu.org; Wed, 05 May 2021 05:28:36 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 8190427BC81; Wed, 5 May 2021 10:28:35 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 655fced2; Wed, 5 May 2021 09:28:34 +0000 (UTC) References: <20210424081402.26742-1-mail@cbaines.net> <877dkfv8n4.fsf@gnu.org> <87im3zcxfu.fsf@cbaines.net> <87eeemr4nu.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 27.1 From: Christopher Baines In-reply-to: <87eeemr4nu.fsf@gnu.org> Date: Wed, 05 May 2021 10:28:31 +0100 Message-ID: <8735v1cyww.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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=1620207126; 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: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=AF1itnrcaoNeJ081pnMVakm/GJoyutNFDbHHIpjVpns=; b=jgInpPGQUoAp1bBbi6PFdYPg3OwsxTA5S8/GqQhLf/8t49RHfcoQ68+l1v0fJMtBDtC/tL CjHsXFykZcms9BcY5pI1l9nGsJVED6QKbUDhvfsbbAni8i+6pGLYWQMYbdwfARh88DqZiD wDqE6Y75b1xie7YSSgkAlH2kQcZ06ZQjpQsqeJZXJi6m4J+CkqadqsZcRtcxkBlpu4b4U4 jCP7wwxLAXSfcKw+c5MUChVFl3SURAGHQfrxa6ZjvrwkoFHHtxWlA5A6WdNOgpz8L9wMAg T4rxFOasxvMM3aT83N5s8Cmh20gLP66bVTzxp9K36BF4DC9r6pPGAeMh5ICa9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620207126; a=rsa-sha256; cv=none; b=PUJZEnSglDcPSGr4DC/BnWHMynfl7JiPOuLvSye+0SxRgliYkNl29g4+4ExKpgzQTTpAd1 kRoCMQTlDujHWkS/JBdX1yDnXi6hv4eUKkooL0Mj1Xhh2zkmBs18XYmTWzX7ONScD8sCpj 7ncXQ04bnjz7DZG+blLfyNyRSszMlTfNX0+JcFO2+PMBwXb+w9FXs760Y4KKffPNbVnw0O Vs8Dfkl0sHGmBxhjC67Dswos9xsZgnzkMz2TOuToB6BFyLpHDzFbE+NUXxSg6QvfoA9Ux7 XAf4n/xj5vC7AeuuIjMTscknZjl3j64zp/BShKXZiwVh6p1wF57/aV3nkqxtlQ== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -4.56 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-Migadu-Queue-Id: 2888223974 X-Spam-Score: -4.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: 90t5BPJXFlOJ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Christopher Baines skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Christopher Baines skribis: >>> >>>> This allows computing a manifest for a specific system. Previously thi= s was >>>> possible, but only through changing %current-system, which caused the >>>> derivation to be computed using that system as well (so computing a de= rivation >>>> for aarch64-linux on x86_64-linux would require running aarch64-linux = code). >>> >>> 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 de= rivation >>> 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 inferio= r "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 der= ivation > 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. Yep, the Guix Data Service currently uses channel-instances->manifest to compute the channel instance derivations (which show up here for example [1]. Currently it computes the derivations for different systems by setting %current-system, but this has the side effect of also running the Guile code for computing the derivation with Guile for that system. 1: https://data.guix.gnu.org/revision/afec2784174058fdd85d9698e1fa748c45bfa= 8ee/channel-instances That effectively only works if QEMU binfmt support is available for those other systems. It would be faster just to use the native Guile, and this would also avoid substitute availability problems (I had to disable armhf-linux emulation on the data.guix.gnu.org machine when the substitute availability from ci.guix.gnu.org got worse recently as too much time was being spent just building armhf-linux things). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmCSZT9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfjBRAAt9SoMJ9Y5/ekWOLaoqDwX7Um0aNimwwr YLmNOgzw2OMEp3x53dQ6qWyA023ULGv+OfBpm88B9LxRSdIOm2jq47+AY5XHKv5v 2LOIt46LsC2+UEQ1K1MeCf3f6NydyQ8akerXwppM74oPJHGvtfEK9jXwfSpn7lm4 6rQFbyCmwNMj2XGNfaKLR9iFzLv35JVSpcBHZV6KIerNcGFFnktyuVRRHwgjrIAM EkWyzfk2k0gj/9+ftqkwg1kUANwjX2wIm+V+9dZoABejihqXg5qrWo0mNItONdqh KfcAH+tMqstN1MId/8o8nbT9ND3vDllte9s1w5ZKCXgnFTezM2noG3AdixSoVOe6 uQ1qPnCULAp7s20qMVD6A5gJNIjalsdp1wdQEU54gxNn5I4rs71/hD+mBWjvPWQi DizzY7pjrEmc6uLybzTdaH13P0Sefr0WHCSLsRurtxdizvgNMJlXFJDJz/qyNiAi eTsP2ZhaeGnId8LKMpKuK49GvqVlfGymUWMuqZrXR5A+hx1XDq+PCHYwgpR+TwSv W54jMs25WPwm92KuZ2Qg8KvKH8+a4qQwdek+di5PyznYFARt/V+dmPw507QrZIu8 iI81N6J59wH7Je8lWnzj5FvmKZEd/FtNwRue7SeG3BDIjQ3kgNnV+CC+AlF7He2R l9boIsYbhE0= =Wmiz -----END PGP SIGNATURE----- --=-=-=--