From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sIHKOvdMamL7JQEAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 10:14:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2KagOvdMamJBXwAAauVa8A (envelope-from ) for ; Thu, 28 Apr 2022 10:14:47 +0200 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 9086EC6E1 for ; Thu, 28 Apr 2022 10:14:47 +0200 (CEST) Received: from localhost ([::1]:45108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njzIU-0001OE-Pu for larch@yhetil.org; Thu, 28 Apr 2022 04:14:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njzHm-0001Nv-Mf for help-guix@gnu.org; Thu, 28 Apr 2022 04:14:02 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:38608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njzHk-0000tx-Us for help-guix@gnu.org; Thu, 28 Apr 2022 04:14:02 -0400 Received: by mail-wr1-x435.google.com with SMTP id k2so5647581wrd.5 for ; Thu, 28 Apr 2022 01:14:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=nDMwSg9a7oQZLLnsG9Cy6sKhw8WZHLAsoriRxSg3LQo=; b=c9Ry4uPthXYg4EkErt5ZSu1ZhWwyfKcfgNnT0h2zNEAPWbQvlzcU/IWyaeubQo4Nx4 osI75ny9hl96cVkLtZsCINcns2N1jJg4Z2eCLDe/b88Vg92NUfBWKvQHrTbOQHBjLk27 AhV1u2D5ggQy3t3vkE/e5AFQULdIJEsEBou9OSLjacy0ZV1g91Tla/CQuRlHXsfVBiPw PbxFS4HkEgMMWMX6vIZua6tyhTG+DWzZbnqPR0PSo2nFCcm8d7Jn4mDB5JQS3zqvdCTj Hi+2yaLyL3GTAA19fcqAVdE66ogxd6vdRE1BUxFf/nGtVvhhbYd66kzRrVsPeMHyKQMo kJ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=nDMwSg9a7oQZLLnsG9Cy6sKhw8WZHLAsoriRxSg3LQo=; b=tZ4SoMK8zo1Wl+alswW+gfA4f705Mh7s6YAMbAjzzzLDrI445rjcpqZUwnhWhF4fTC evfsluGQ3Tsj5EIYsk4vpfxejk3VVZwbjYCxV25EnZCfi6FnlDma0j1+X9MztN8M7nNQ q5j6p9BHKihsbp8pkIlzWVI89LhTIKUVIh7CBSRSHQjiLABZfTUO7cGBm5TWny+FMhWj IVhuhmGWyTwXWs18VHR+THqzg8P2jy8YKiRYlETERmz+kJgDZMtjjOcJGiGXZTEQLs+r 6A9DKZ/WGNOVUxHoftGpIwCIVXlBoF/j6pcbm+dgfe42l9K2eIsNmmJE7G/Xz5gwXRro k2Hw== X-Gm-Message-State: AOAM533/iReNkTZ9xtxnd5MsRnCNcYLddkkY0wvOwvkyCbqgdPyGw5Ah YpAbNF3dO7rJ/Ju36Ii/LbA= X-Google-Smtp-Source: ABdhPJz2ouvemtdPO+xDP7gr181TnWj64SjcfLYhxVyPlCmpTc3zRcrfmItZQlxMv4T84uPF9hugCw== X-Received: by 2002:a05:6000:2c8:b0:20a:dff3:a74c with SMTP id o8-20020a05600002c800b0020adff3a74cmr13005999wry.192.1651133638665; Thu, 28 Apr 2022 01:13:58 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id b3-20020a05600018a300b0020a8b2341f9sm21664826wri.18.2022.04.28.01.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 01:13:57 -0700 (PDT) From: zimoun To: Olivier Dion , Maxim Cournoyer , Olivier Dion via , Ricardo Wurmus Subject: Re: Questions regarding substitutes with debug output In-Reply-To: <87ee1pur82.fsf@laura> References: <877d7joe2w.fsf@laura> <87levx4ui1.fsf@gmail.com> <87ee1pur82.fsf@laura> Date: Thu, 28 Apr 2022 10:13:44 +0200 Message-ID: <86mtg5eibr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651133687; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=nDMwSg9a7oQZLLnsG9Cy6sKhw8WZHLAsoriRxSg3LQo=; b=qWNeox94y4ldHTJGtcIXzTEkg3fejES4xmfRnS19TZXRug7TGOWQD6wQX/yhsiLTdyW1fr BxHg0gvBdCuzlmP2vavDb+V6vSBtOimtR+Pew4Dwxv+4ukbtj10j8p6Co52oE3BZqC2dzf pN00Fb2irtlv+x6Xhhlcm8RbOnnnb3sCqzjAle01RaWOk8UYCudIEu06ihiepxPcChvwW9 avKjpVDxQB0JnlgkDy93vrpGmFbc7qRh3qSoeC+0kGMdtbd8MUO4fC9Ei5N5COjCIPqHND l7e4e5oV3XLK5Ius6DzYufzjidQyEjV/Omyxh1JdQlwvdU2kja2rinpmsTdmEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651133687; a=rsa-sha256; cv=none; b=pzJr9VG6ZxzWW5+Mma9NOJOOpRI7gvwZ4sWvoMZRCR+Vg+qLIGO/eg+otWHhxSkg+bm4r9 j1haHDKmcSPyRwMNSWgMcD4r7Ri8KoZQWc/bkRJ7rd0kqrhqfzYMwih2uQp2hlgDtwapC9 ZUq1SdCLot/56dvPxPMahvZD9tPxLSc1mcpHHjsYwMlXOVPDBIhCBAIVFtQMWaWe2u6wUG ZOiIeRMbYqkgcOVIDk6z91iqorYWwuPnWej3qkQCtjMAMNpdjZUXZVmCfalDf0CUpAkJZz RmwzgZl6yzwlVuN54E0HcthK5sfi9Y52yDPc3n9OAELyVPsRM5olhg5FQ4Yw0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c9Ry4uPt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=c9Ry4uPt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9086EC6E1 X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9h9eOptplzeW Hi, On Fri, 22 Apr 2022 at 10:29, Olivier Dion via wrote: > On Fri, 22 Apr 2022, Maxim Cournoyer wrote: >> Channels can only extend, not override the default Guix channel (the >> world would be a bit of a mess if it did). So the easiest path is to >> use a different name; alternatively for graph rewriting you could use >> the various APIs to effect package transformations. > > Would be nice to have some way to specify channel in a package > specification. I don't think that it would break things if we > considerer channels as namespaces, i.e. different graph. A > specification like: > > {channel}package@version:output > > would be useful. For now I will just rename them to "my/package". What do you mean by =C2=ABdifferent graph=C2=BB? From my understanding, the additions of channels makes just the graph bigger: extending the initial (upstream) graph with more nodes (channel). :-) IIUC, the question is how to refer to these nodes, and from my understanding, we use basically two ways: 1. by symbol; and thanks to Guile modules, this way provides namespaces, somehow. 2. by metadata (name, version, output); and here I am not convinced it is doable to have a namespace but maybe mimic it. Therefore, since your question is rooted from GWL: I need to specify the package programmatically as a string in Guile. More specifically in the process packages field of Guix Workflow Language. maybe GWL could also accept a symbol instead of a name string. Well, I have not used GWL since many months and I do not remember but I think it is doable. Ricardo? Last, back to the feature you would like =E2=80=93 be able to write: (specifications->manifest (list "foo")) and select "foo" from your channel instead from upstream, right? Or a way to specify the channel using the symbol from the name field in , right? Aside the syntax of the string =E2=80=93 why not the one your are proposing= =E2=80=93 and so adapt =E2=80=99package-name->name+version=E2=80=99 (or similar), the= function =E2=80=99find-best-packages-by-name=E2=80=99 requires some improvements. What I am missing is the mapping from channel name to package. Well, Guix does not track this information at pull time. And I miss how to implement such mapping. Therefore, assuming this mapping, the package cache (%package-cache-file) could be updated to also track such map. Such feature would also simplify when searching; especially for variants (same as upstream but other arguments). WDYT? Cheers, simon