From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 11:52:14 2023 Received: (at submit) by debbugs.gnu.org; 4 May 2023 15:52:14 +0000 Received: from localhost ([127.0.0.1]:51870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pubFd-0005k1-Ie for submit@debbugs.gnu.org; Thu, 04 May 2023 11:52:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:50806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pubFZ-0005jr-Vq for submit@debbugs.gnu.org; Thu, 04 May 2023 11:52:12 -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 1pubFZ-0007rA-Kt for bug-guix@gnu.org; Thu, 04 May 2023 11:52:09 -0400 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pubFX-00079r-M5 for bug-guix@gnu.org; Thu, 04 May 2023 11:52:09 -0400 Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-61b5a6865dfso5481166d6.3 for ; Thu, 04 May 2023 08:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683215526; x=1685807526; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=vafMsCKudyp06p2WsKz2rRQw+r7auLhwD8GrTEPFwi0=; b=eLbLNe+nP13oeW2RGpfJGUuXBibWIJEv4o7OTnHCTGhYePygQaZQR5N0axZuw8YJ2n esOt6jupuq3Py6EQCBhrsLl74ZtGDuQwASJZHheBZJ90isFeDDphoBHqdXToHw5d2W9K iAXZHnvlVEsrsgQgrl8BUNP23STG329ulaghdkw60Mqd+fJENlO4pp/44XoSkDCUp9jO F8WNHcqpaCsWGRUEoJA7VXeV5CuyTyF/L9EEcXxx7Bi3EadyEmKWdrw6PhzjCjNsA6Yf ltHBUkOnA3b7xiGCclJtVRuqWQ6hsqSfFWykdOzqIwvlVXlpasktsgE0UttEHaXdUjYJ Iw/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683215526; x=1685807526; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vafMsCKudyp06p2WsKz2rRQw+r7auLhwD8GrTEPFwi0=; b=ZAISs6tJ+thKUHLSuBk5KJznWV08OiF1Sn9JXuNZe8O4jgv8yhzrHdOSNwQkEhvlSJ rrM4qC9JNOYWD/fVF4bFuujQCblFVewl28fS+cfDrgQ3o3e66hnAkNtXwEdKgpfrszZ3 5zt6ji3vLSBRKigtSROvt1sv1ypzfSWRSkNk/GfR6QZNOwpdvXqeaV0LihryZt1ul+q2 b5GnfOlK1XBVH+HCAXIzDiUsQ2fFbny/clGSX8EtA2vI+QtxPpmW4dcbHOGE4jGh18uK QdLPFNhOXkmbjFR4SaRnasaeDy36Ug5e2oYPM/xqRqYyhkP/vSyYnKw59xagRnoVOjBn mK/g== X-Gm-Message-State: AC+VfDwWhmr9kWSu+I0l25061WsQQ4Df6bfjF7Z2bPbg01iaN+k9e5pe hjVThUNLy7XSUB8SEw7DvPF7FN9ZhTI= X-Google-Smtp-Source: ACHHUZ6M5T14p3NQ4mGaQKR1x7augI2gJYxakmc0Dbu4/o1Cn0qfU/2+YMiD86fUpXgpZM9NJzybAw== X-Received: by 2002:ad4:5baa:0:b0:5f0:23be:a301 with SMTP id 10-20020ad45baa000000b005f023bea301mr13482417qvq.5.1683215526319; Thu, 04 May 2023 08:52:06 -0700 (PDT) Received: from hurd (dsl-151-193.b2b2c.ca. [66.158.151.193]) by smtp.gmail.com with ESMTPSA id f8-20020a0cf3c8000000b005f7ff6b1a67sm493627qvm.91.2023.05.04.08.52.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 08:52:05 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: Allow channels to depend on a past Guix revision / private dependencies Date: Thu, 04 May 2023 11:52:04 -0400 Message-ID: <87354c5c2j.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf2e.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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, Recently (after the last core-updates merge), I've had the following failure on 'guix pull', caused by my 'sfl-guix-channel' channel [0]: [0] https://gitlab.com/Apteryks/sfl-guix-channel --8<---------------cut here---------------start------------->8--- $ guix pull [...] \builder for `/gnu/store/zliavnqgx3jxp8yc44nn1y34b3bjvlcw-guix-package-cach= e.drv' failed to produce output path `/gnu/store/0m2c2zrphqpmfhjb60k85yhfq7= 04ay5r-guix-package-cache' la compilation de /gnu/store/zliavnqgx3jxp8yc44nn1y34b3bjvlcw-guix-package-= cache.drv a =C3=A9chou=C3=A9 conseil : This usually indicates a bug in one of the channels you are pulli= ng from, or some incompatibility among them. You can check the build log and report the issue to the channe= l developers. The channels you are pulling from are: guix sfl-packages. Vous trouverez le journal de compilation dans =C2=AB /var/log/guix/drvs/zl/= iavnqgx3jxp8yc44nn1y34b3bjvlcw-guix-package-cache.drv =C2=BB. cannot build derivation `/gnu/store/v5rszp4m1vv7zf20vrb1sghi4528d40j-profil= e.drv': 1 dependencies couldn't be built guix pull: erreur : build of `/gnu/store/v5rszp4m1vv7zf20vrb1sghi4528d40j-p= rofile.drv' failed $ tail /var/log/guix/drvs/zl/iavnqgx3jxp8yc44nn1y34b3bjvlcw-guix-package-ca= che.drv 1694:48 4 (thunk) In sfl/packages/sflvault.scm: 75:29 3 (propagated-inputs #) In ice-9/boot-9.scm: 1685:16 2 (raise-exception _ #:continuable? _) 1780:13 1 (_ #<&compound-exception components: (#<&undefined-vari?>) In unknown file: 0 (backtrace #) (exception unbound-variable (value #f) (value "Unbound variable: ~S") (value (python-pycrypto)) (value #f)) --8<---------------cut here---------------end--------------->8--- This is caused by the use of the 'python-pycrypto' package in the channel, removed in commit a55e18f17cc82a01c11d03bdfb693c62cb068d5c. 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--- And have this used by the channel *privately*, it seems it'd solve the problem, right? I tried 'guix pull' from the channel using the following ~/.config/guix/channels.scm file with the above .guix-channel file installed to the ~/src/sfl-guix-channel checkout: --8<---------------cut here---------------start------------->8--- (cons (channel (name 'sfl-packages) ;; (url "https://gitlab.com/Apteryks/sfl-guix-channel") (url "file:///home/maxim/src/sfl-guix-channel")) %default-channels) --8<---------------cut here---------------end--------------->8--- But I got: --8<---------------cut here---------------start------------->8--- $ guix pull Mise =C3=A0 jour du canal =C2=AB sfl-packages =C2=BB depuis le d=C3=A9p=C3= =B4t Git =C2=AB file:///home/maxim/src/sfl-guix-channel =C2=BB... Backtrace: 18 (primitive-load "/home/maxim/.config/guix/current/bin/g=E2=80= =A6") In guix/ui.scm: 2300:7 17 (run-guix . _) 2263:10 16 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) 1747:15 14 (with-exception-handler # =E2=80=A6) 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 659:37 12 (thunk) In guix/status.scm: 839:4 11 (call-with-status-report _ _) In guix/store.scm: 1321:3 10 (_) 1298:8 9 (call-with-build-handler # =E2=80=A6) In guix/scripts/pull.scm: 862:26 8 (_) In guix/channels.scm: 528:7 7 (loop _ _) In guix/combinators.scm: 48:26 6 (fold2 # =E2=80=A6) In guix/channels.scm: 560:37 5 (_ #< name: sfl-packages url: "file:///home/m=E2=80= =A6> =E2=80=A6) 528:7 4 (loop _ _) In guix/combinators.scm: 48:26 3 (fold2 # =E2=80=A6) In guix/channels.scm: 534:29 2 (_ #f () ()) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure struct-vtable: Wrong type argument in position 1 (expecting st= ruct): #f --8<---------------cut here---------------end--------------->8--- 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'. Thoughts? --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 15:09:48 2023 Received: (at 63276) by debbugs.gnu.org; 4 May 2023 19:09:48 +0000 Received: from localhost ([127.0.0.1]:52095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pueKp-0006DM-KJ for submit@debbugs.gnu.org; Thu, 04 May 2023 15:09:47 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:41392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pueKm-0006Cz-RP for 63276@debbugs.gnu.org; Thu, 04 May 2023 15:09:46 -0400 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-3f1754e6ac2so1483355e9.1 for <63276@debbugs.gnu.org>; Thu, 04 May 2023 12:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683227379; x=1685819379; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=T0EQOdbvv5YLwXb44YYWN/CDVwkio5Lpl1fCCIPJ0LU=; b=BP0dRrXflpt9Wz7dsJ4JFBg5nSWpebhcg1ZS768jNaiChpJ6/9mcYVZpSs+BmWZuPs 8TcvoGIM4KdgID9O2AhfLXuI67GEUYEuW6USqRboLf34H/VPifyMVBvsiYpHp8+yesU7 9ogc2hfrHt2381iYOtQZ2jNURLowlXObJ1C4xcTREq63whlqKn3GgBsNYowX306e+FM3 mnaFK545V074jQvq32DmP07S5c1LDUM0cZ3wOe9hl+tk0/Bl5bIZYdapSscafoSfnZwQ DL4SKFb2Oe8suBSw8dWp5+DTianAkXrbPNEquzurfg19LLDYEbc20EWYAY++FH94Oq5x xZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683227379; x=1685819379; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=T0EQOdbvv5YLwXb44YYWN/CDVwkio5Lpl1fCCIPJ0LU=; b=TPKTMvT5mWQg2iaXe7XokLZOt6bQGjbuswF2IXdfrA+1NViW8kitTa4AzXuVTGZfkl cvyWxKHWQXjLh6GMpSkChQi1ul+s6qKAzRuoO9WeIaz9lDiHMnA6wqknLnYdkUbFUngF 8XjVaC2c7XcINCSFE6bZcLfw9CnRTn67ut9M1jTtgDy/6R3ZtTghL10M4V0XBElJSrKe qbAeLJFCqS6ig5zk0byHujaCJkxgZwc2GVLZaOrKg3hzm3TdYoDuBbB6tG99JaLwVKYJ KlbIZ6W4X5Gg1u90Q4nemrhYednJIhAYopH7xN5H4MvWS5uEjrRoK6sgaNrgewtKXm3l vpEw== X-Gm-Message-State: AC+VfDws+lqoOvSyo0u8z9JkiagBq5eFYD0NFTs+LqGbXd4+diXs2itv TqHiQsLVfPCtRZ+d6NVOrOmB7Gyi0p0= X-Google-Smtp-Source: ACHHUZ5BaaJCRYKVL9eihpMbNEJUEYCN4qvP0Jxj91qaX+e/zZrP3Hn2JUYp1467TlyJrgCZu1YP/g== X-Received: by 2002:a05:600c:4a93:b0:3f1:78bd:c38b with SMTP id b19-20020a05600c4a9300b003f178bdc38bmr8113795wmp.4.1683227378840; Thu, 04 May 2023 12:09:38 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-46.net.univ-paris-diderot.fr. [194.254.61.46]) by smtp.gmail.com with ESMTPSA id x16-20020a05600c21d000b003f318be9442sm5821393wmj.40.2023.05.04.12.09.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 12:09:38 -0700 (PDT) From: Simon Tournier To: Maxim Cournoyer , 63276@debbugs.gnu.org Subject: Re: bug#63276: Allow channels to depend on a past Guix revision / private dependencies In-Reply-To: <87354c5c2j.fsf@gmail.com> References: <87354c5c2j.fsf@gmail.com> Date: Thu, 04 May 2023 21:09:35 +0200 Message-ID: <865y97zzf4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63276 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Maxim, Well, part of the message is in: :-) https://issues.guix.gnu.org/msgid/875y987z1m.fsf@gmail.com On Thu, 04 May 2023 at 11:52, Maxim Cournoyer w= rote: > 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? 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. > 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 Guix= but that recent Guix removed =E2=80=99bar=E2=80=99 so I want to pick it up from an i= nferior. And let say I want =E2=80=99baz=E2=80=99 from another Guix revision because= 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). Well, the number of inferiors should not be too much. And it requires some care about the propagated inputs. Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri May 05 10:37:01 2023 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 To: Simon Tournier Subject: Re: bug#63276: Allow channels to depend on a past Guix revision / private dependencies 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63276 Cc: 63276@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 12 01:04:02 2024 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 To: Simon Tournier Subject: Re: bug#63276: Allow channels to depend on a past Guix revision / private dependencies 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63276-done Cc: 63276-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Sat Aug 16 21:19:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 10 Dec 2024 12:24:15 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator