From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id hbd8C6gUVWRHggAASxT56A (envelope-from ) for ; Fri, 05 May 2023 16:37:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6EncCqgUVWQ1vQAA9RJhRA (envelope-from ) for ; Fri, 05 May 2023 16:37:28 +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 E4AAC23263 for ; Fri, 5 May 2023 16:37:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puwYS-0002xN-Ox; Fri, 05 May 2023 10:37:04 -0400 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 1puwYR-0002wu-0L for bug-guix@gnu.org; Fri, 05 May 2023 10:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puwYQ-00073R-Oi for bug-guix@gnu.org; Fri, 05 May 2023 10:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puwYQ-0002Wf-4n for bug-guix@gnu.org; Fri, 05 May 2023 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63276: Allow channels to depend on a past Guix revision / private dependencies Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 May 2023 14:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63276 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: 63276@debbugs.gnu.org Received: via spool by 63276-submit@debbugs.gnu.org id=B63276.16832974219702 (code B ref 63276); Fri, 05 May 2023 14:37:02 +0000 Received: (at 63276) by debbugs.gnu.org; 5 May 2023 14:37:01 +0000 Received: from localhost ([127.0.0.1]:57220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puwYO-0002WQ-I3 for submit@debbugs.gnu.org; Fri, 05 May 2023 10:37:01 -0400 Received: from mail-qt1-f175.google.com ([209.85.160.175]:55466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puwYK-0002WB-VD for 63276@debbugs.gnu.org; Fri, 05 May 2023 10:36:59 -0400 Received: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-3ef31b7b868so14599251cf.2 for <63276@debbugs.gnu.org>; Fri, 05 May 2023 07:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683297411; x=1685889411; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=BqW9/0SOhf/yHD1roAhMgB1IrvpRBtn8H8x6ySdpJwE=; b=iNA4GFGD2divyIt6dnTYZ3OojtQJoku01ZYjOFt+Mjob8ArE4f4BeLUBfhkTwNbObr xR+UUnQ1G88fKPN/b255UrDlU/7As39NnF0bttm3pCk+hMz9QeCpgKGkLT9zn+qcI3gj 0quU1ALayS34zo300JhsMrzvb+zc2jnz+A48Ew9lQwq0AyZCtDMq4/MRENhV2oIw3qTZ uq0HKrX9eqFNhBe0CtSobp/3IT4GLWilVc6a3NbfSaOIBPumLAP00THAbbk1gEmrIzFh diGnb8Y304E2b5LK7g5TQVu6icIJjMUrxH55mP3shj+uFz1v5A/iAsiyhs4H42R4i+PB giGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683297411; x=1685889411; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BqW9/0SOhf/yHD1roAhMgB1IrvpRBtn8H8x6ySdpJwE=; b=D9SdYOhUAVp+n7B3EOpxTL7OTo3G9Kpeu4xva4bCfOHYMPsFRzMePVCdFFnxWsX+cn BDSoNSOKznsdbhWAm3TtB8TzRuisv81aoKcw0xjxPamk4gFAI829Kuj/YyOOM6biLnkg eYCvuiefCdcVktJ1W6YEjltKaGesS3g2q2dGKaGXEE3UqqYemr0pVEZiffDzlQ1xo4nz JgvOvMs+/vrifiwiNNmsv63Dr2pwyiP6cGLXVwZQbp7KXnUap6rNa47gHGldQb6jvg39 U5gjXitzaKfM932k3awgCbZCoKp+5mitSRo+B6Fx3inwDF95KR1h64xyHd3pJ+bKcsTx mGqA== X-Gm-Message-State: AC+VfDyniIH3PpK7+mFGp/EsYEwSSCbXDRKNiDaWy6WnYnQ+0EDUp3ZG Fng8DGeKEdphjs1b8AA9wp+5KjXx4Ko= X-Google-Smtp-Source: ACHHUZ5NaYcGAXyVAdHkb+lKIfeK60v9IrzikuTZ0gQbqpMQbfK90AJFznaHouqB3PipSvkB1Ym2eg== X-Received: by 2002:ac8:5ac5:0:b0:3e4:dfbf:1f45 with SMTP id d5-20020ac85ac5000000b003e4dfbf1f45mr3067644qtd.37.1683297410991; Fri, 05 May 2023 07:36:50 -0700 (PDT) Received: from hurd (dsl-205-236-230-162.b2b2c.ca. [205.236.230.162]) by smtp.gmail.com with ESMTPSA id cc9-20020a05622a410900b003ef42f84532sm660090qtb.49.2023.05.05.07.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 07:36:50 -0700 (PDT) From: Maxim Cournoyer References: <87354c5c2j.fsf@gmail.com> <865y97zzf4.fsf@gmail.com> Date: Fri, 05 May 2023 10:36:49 -0400 In-Reply-To: <865y97zzf4.fsf@gmail.com> (Simon Tournier's message of "Thu, 04 May 2023 21:09:35 +0200") Message-ID: <87mt2i4zge.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683297448; a=rsa-sha256; cv=none; b=V1ok5oL8a+Ah66qsilDsiSjAZfcyc2p18bsYYvBJNtQ4j2N0x073OgOu2U1FBFtp9h7zm7 0ieqXFi8d2A8/f0lDjvfI2+VXZv3LgwaMy3suHdUaY9ppPpcUH1wnq5zH7MddcHH/QFf2g OkpdzOZG3+S45iDB6WTTfydYQoeloWhDf6n2zt9s0TYF/X9yyZscyflJ4WsWmnHkYLTCfN B22siwsgdrPDoEA4rTfmgXcVxWMHtgioXpdqYEcl1DWxe5Jp0DS0cyBQ2Vp2nyfRk20P6t zhjvAe1fypyb7WLy51+Y7ipazmHDtJ+PllmR64zRZIuJUE2LfQte522n4ugN8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=iNA4GFGD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683297448; 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:dkim-signature; bh=BqW9/0SOhf/yHD1roAhMgB1IrvpRBtn8H8x6ySdpJwE=; b=MK+hj69mzmHDIIPPNPRXLS8UIazWIk/OJRwEEvChRAwI0vII2bnA/aUpHW3VOO9VF7vD3x Pq1AvEwe2x3UHNtmMmu2iFaYSHCP6ElTB+uxWnb1TWN8Qo1Xk/Q8cQqE37/rdnQVozsU2e 7h1GGCVTZBTHkcyvU2aMmAuLpym0sfoHOdqfJI6+c2NvW7alPTFVL1Alls2PBPHDXyDnsa pYHZyoNQXFrCSNFAW55wvUTf6iYxguB81qXG46Q5dLo8miNrAuSMJLt8Ha1GErVwWTMzIb xKXbRh8+eSdSce8jfvgq2BgSxvuiav0rJSMEZpjurzyW0XPv5BLIJnSgGkO6Pg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=iNA4GFGD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 7.30 X-Spam-Score: 7.30 X-Migadu-Queue-Id: E4AAC23263 X-TUID: C9SjkvVEwVgh 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 or: > > 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 Gu= ix but that > recent Guix removed =E2=80=99bar=E2=80=99 so I want to pick it up from an= inferior. > And let say I want =E2=80=99baz=E2=80=99 from another Guix revision becau= se 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? --=20 Thanks, Maxim