From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +AAAFirwMmfS2gAAe85BDQ:P1 (envelope-from ) for ; Tue, 12 Nov 2024 06:05:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +AAAFirwMmfS2gAAe85BDQ (envelope-from ) for ; Tue, 12 Nov 2024 07:05:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=NwjF5qu5; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ntYLNtx+; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731391530; 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-to: 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:dkim-signature; bh=c63jaH9/pv6VKikJfsWATwAD3bEcq0KRGxl7Ec8cFNo=; b=NF7lT54td+7ZR9adgwpkvzyIo2h15ax7Hbp8BW1RzowwYkiOFrGHsQ5Bl5/gf4JPD/n0Zu Vzt06AtwcrVWqrgLUZRGP2zE57ALYZcFw9JeCiaUyjiYSJXjCNKuCuHgciEAv/hVovnRJG 66H+ujSDYhPA+ZKDJhm+AZfZd2luMe/VcU0q7bcsacOErU5e1mPe6jtM2dv20RRIJYq6+2 TIdaCdCPbPrXW23rJNqelaz7gw2XAtg2G8S62arqCgmMti6S6qETaO0EvMSfoaMwwANEqp Hfs4zBUlKukBU2YoWJSY1/fvf5f95r+SsQ7VGZFba6RTxbHNxe+F7No11s+jzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=NwjF5qu5; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ntYLNtx+; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731391530; a=rsa-sha256; cv=none; b=SPsBResVGVggMUWDWnAKK/eC150/G1g7Jp7WOMYee33ab7/gRmK/8jEhqQlS35yjI7ASJ0 hP++eNQtUFuIjKqEYZRrEVgAnpgSWBPAtp4D1p4H4cGGmex0OcxXh28mIBeygm5rVupViw k12sFOIr1iEbWLeB2zcVLZM4ITTV2/MJu8XEvQZu5Q0lXKpW84GtPjaLE5f+CWYXGH6Ast YLIKrsbyvcgQ261yoQRkWvKRYcFEEHzJ+O8v0+fwvM7KEtPL2Y9UANmMg3pRMLvyA7hy6G rj90EU82TamCrhsi1pzY/no3mjWwpimzL2y/eM8F9p7lAyZwVPwd7GnXfBnq5A== 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 00DE78D2C6 for ; Tue, 12 Nov 2024 07:05:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAk1S-0002Jf-17; Tue, 12 Nov 2024 01:05:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tAk1Q-0002Gx-1H for bug-guix@gnu.org; Tue, 12 Nov 2024 01:05:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tAk1P-0007zC-Lz for bug-guix@gnu.org; Tue, 12 Nov 2024 01:05:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=c63jaH9/pv6VKikJfsWATwAD3bEcq0KRGxl7Ec8cFNo=; b=NwjF5qu5LHdsPZQvXct/X6zoqlPAcN//dUONRdOLANtlAqtBNKJzM/BYnyvxzWHa2INt1waI3ZlyEVBbKlb/o39K89EskRw3cAOsAoxSNyxjcsZoZ7udg6pBknL3rUZWm9elxj9rU1aQFdyaiBL2aP4duHlWwPNyQ3V91K5JYalSv1XcrBTBMLAoCnjXFylL4ps3cdtSZqTr7N8zTND+P0cyA6E9EBc4JLwW+Q/EK1KhZyOVYFvUV+Ms29uJSKextJM7ACkAD0bxVfJLF0wJjsuTnCb8Yp0nX+JRPfzoyjhr49FF/J7RQiqRvdHSroHkcFeT2P5ztLyNNbjQV15RdQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAk1O-0003t3-Sp for bug-guix@gnu.org; Tue, 12 Nov 2024 01:05:02 -0500 Subject: bug#63276: Allow channels to depend on a past Guix revision / private dependencies Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Tue, 12 Nov 2024 06:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 63276-done@debbugs.gnu.org Mail-Followup-To: 63276@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 63276-done@debbugs.gnu.org id=D63276.173139144214837 (code D ref 63276); Tue, 12 Nov 2024 06:05:02 +0000 Received: (at 63276-done) by debbugs.gnu.org; 12 Nov 2024 06:04:02 +0000 Received: from localhost ([127.0.0.1]:60176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAk0P-0003rA-Al for submit@debbugs.gnu.org; Tue, 12 Nov 2024 01:04:01 -0500 Received: from mail-pf1-f180.google.com ([209.85.210.180]:60883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAk0N-0003qv-6Z for 63276-done@debbugs.gnu.org; Tue, 12 Nov 2024 01:03:59 -0500 Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-71e49ad46b1so4507067b3a.1 for <63276-done@debbugs.gnu.org>; Mon, 11 Nov 2024 22:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731391372; x=1731996172; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c63jaH9/pv6VKikJfsWATwAD3bEcq0KRGxl7Ec8cFNo=; b=ntYLNtx+90CFZ+cu4/sP+a/qApp/yZNXf1AisaAUJCbUEbaESlM8PHtiJ377mTh2Si KWMKImcRihA8e5DQiMrOsmEYMZy8hEDmWeIL+mlRud0SEt/WEFT0Apl+05Tjyb1b2xV1 gAcqY6TMMhJEBTbk5sUNJCr2XNdpp4v2NLwPxbbFKDRhA82vtp+hT110P4U6BR2lMTnU Ua3IUvdigZeMknDokyzvODUylfNKC+v3PjSiBpRQ1vOU8/J1rXt9grNLiDG7fRMCOxYu FRU0wlJuY7e92/AmEbIGKN/kf0mDOwJ4aj21HNzq9JFRslxCBPzFuh37/qR6DZztXmMe Gjvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731391372; x=1731996172; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=c63jaH9/pv6VKikJfsWATwAD3bEcq0KRGxl7Ec8cFNo=; b=MGH20kgc9NMx+PxPnJqFJYJQILH884F8DoSc6pFXSQZXbquz472y9GHZnZnWFWIdrI g/yazE6TPPVKCeHIYxd2YtzKMG3SN1aQdyyMsEUSkCb/CI+MPjehxfoVeV0sxmxhkvBU LRRtVFQyUcgjQFqA46XN8PuyNP1nwz5WB7aOGdNgiN3l6KemDBAhIqmUhfiAIZFlAxYG lj+K37CgaV3fnGkfl+uwsD3e6IEVCXBAX+4Jis4sXPflrqHX5DLtvwhW3GGEL0d0QPKK Nu9KG5zR6m4h71q9RVrpSFoSzGas1n2QBMnP/xRyngmuMb9Ev6EGHAxQnvIqS1Yx7Cg/ tIGg== X-Gm-Message-State: AOJu0YzCSsGiz6xhcyQSIieCSFl33VuM1f1f8d5zpIs/i/3jZUkvPBDy iCTcwgKRufnT0DHGSaH9a8AcqJ/F7awGZ320JzTgKNot4SyOEJDVTyMvdlcM X-Google-Smtp-Source: AGHT+IEiVYo61cVikc5MFQ4yTXg1RNMEnHEVxle3+1Se3A8/X4LzegYATrxt/ONWLP9PQwv+QxTVIA== X-Received: by 2002:a05:6a00:1909:b0:71e:7745:85b8 with SMTP id d2e1a72fcca58-7241325f174mr18824148b3a.1.1731391372088; Mon, 11 Nov 2024 22:02:52 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724078a9ad4sm10264490b3a.78.2024.11.11.22.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 22:02:51 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <87mt2i4zge.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 05 May 2023 10:36:49 -0400") References: <87354c5c2j.fsf@gmail.com> <865y97zzf4.fsf@gmail.com> <87mt2i4zge.fsf@gmail.com> Date: Tue, 12 Nov 2024 15:02:45 +0900 Message-ID: <8734jx7zwa.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 5.59 X-Spam-Score: 5.59 X-Migadu-Queue-Id: 00DE78D2C6 X-TUID: txADIB/N/Pxl Hi, Maxim Cournoyer writes: > Hi Simon, > > Simon Tournier writes: > >> Hi Maxim, >> >> Well, part of the message is in: :-) >> >> https://issues.guix.gnu.org/msgid/875y987z1m.fsf@gmail.com > > Oh, a Mumi reference to a message ID! I didn't know it supported that, > cool! > >> On Thu, 04 May 2023 at 11:52, Maxim Cournoyer wrote: >> >>> It seems a valid use case to have a channel that depends on an old Guix >>> version. Should this be supported? >>> >>> If I could for example use the following channel dependency file at the >>> level of the channel in a .guix-channel, to depend on an older Guix >>> revision: >>> >>> --8<---------------cut here---------------start------------->8--- >>> (channel >>> (version 0) >>> (dependencies >>> (channel >>> (inherit %default-guix-channel) >>> (commit "9ed65e6af77893b658a7159b091b5002892c2f95")))) >>> --8<---------------cut here---------------end--------------->8--- >> >> You want complete channel depends on a previous Guix, right? > > That's the idea I had yes, seeing that my channel won't work with any > newer Guix revision, I thought I should be able to declare that upfront > as a dependency, and have the channels mechanism take care of treating > all things relating to this channel via a Guix inferior. The benefit > above having to explain to users how to do this in a manifest as done in > [0] would be twofold: > > 1. The channel can simply be added and works out of the box, without > having users go through the hoops of configuring an inferior. > > 2. 'guix pull', if taught to translate a dependency on a past Guix into > an inferior, could use that at the time it runs ad avoid errors caused > by removed or moved packages in current Guix. > > [0] https://gitlab.com/Apteryks/sfl-guix-channel/-/blob/master/README.org > >> Somehow, it would become equivalent to this channels.scm >> >> (list (channel >> (name 'guix) >> (url "https://git.savannah.gnu.org/git/guix.git") >> (branch "master") >> (commit >> "9ed65e6af77893b658a7159b091b5002892c2f95")) >> (channel >> (name 'sfl) >> (url "file:///tmp/sfl-guix-channel") >> (branch "master")))) >> >> and then run =E2=80=9Cguix pull && guix build sflvault-client=E2=80=9D o= r: >> >> guix time-machine -C channels.scm -- shell sflvault-client >> >> >> Well, I do not know if it is desirable. Most of the time, I only want >> one specific package from one specific Guix revision. > > Not exactly equivalent to that channel file. In my idea (not thinking > about the technicalities/difficulties yet), the dependency on the Guix > channel would be made private to the package (my translating it to a > Guix inferior as mentioned above), instead of spilling into the global > package namespace (which I agree would be undesirable!). > > In other words, declaring a dependency on a prior Guix channel would > cause all derivations for packages in that channel to happen in a > corresponding Guix inferior. Does that make sense? > >> >>> As a workaround, I can define a 'python-pycryto*' in the channel itself, >>> although that's kind of silly because it can only be used with a Guix >>> inferior pegged to commit 9ed65e6af77893b658a7159b091b5002892c2f95, >>> which does contain 'python-pycryto'. >> >> Well, I do not know if we are using the time-travel the same way. :-) >> >> Considering this: >> >> (define-public foo >> (package >> (name "foo") >> (inputs >> (list bar) >> (list baz)))) >> >> Most of the time, I want to build =E2=80=99foo=E2=80=99 using a recent G= uix but that >> recent Guix removed =E2=80=99bar=E2=80=99 so I want to pick it up from a= n inferior. >> And let say I want =E2=80=99baz=E2=80=99 from another Guix revision beca= use some >> specific version of =E2=80=99baz=E2=80=99 is required for building =E2= =80=99foo=E2=80=99. >> >> Basically, I am tempted to define the symbol =E2=80=99bar=E2=80=99 and = =E2=80=99baz=E2=80=99 in my >> channel and bind them to some inferior packages (here from 2 Guix >> revisions). > > Interesting. So using inferiors inside your channel does work in > general, contrary to experiments made with the sfl-guix-channel in the > other thread? The discussion has long died, and so has my original use case, but based on what you had written I guess it could have been possible to add code to my channel file so that all packages would have been computed through an inferior. I'll close this for now. --=20 Thanks, Maxim