From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 03 15:52:22 2018 Received: (at 32022) by debbugs.gnu.org; 3 Sep 2018 19:52:22 +0000 Received: from localhost ([127.0.0.1]:44597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwutZ-0005Xm-Uc for submit@debbugs.gnu.org; Mon, 03 Sep 2018 15:52:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwutY-0005XM-Gl for 32022@debbugs.gnu.org; Mon, 03 Sep 2018 15:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwutS-0003o5-IX for 32022@debbugs.gnu.org; Mon, 03 Sep 2018 15:52:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwutH-0003jN-Pw; Mon, 03 Sep 2018 15:52:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48602 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fwutF-0000YD-SV; Mon, 03 Sep 2018 15:52:03 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Alex Sassmannshausen Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch References: <87vb5vsffd.fsf@gnu.org> <87pny2iks2.fsf@gnu.org> <877ekagtg9.fsf@netris.org> <87zhx5msfl.fsf@pompo.co> <87lg8pccys.fsf_-_@netris.org> <87zhx59gh3.fsf@elephly.net> <875zzs9wzl.fsf@netris.org> <874lfcxd2v.fsf_-_@gnu.org> <87wos8lzcj.fsf@pompo.co> <878t4nqzqv.fsf@gnu.org> <87r2iau0wz.fsf@pompo.co> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 Fructidor an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 03 Sep 2018 21:52:00 +0200 In-Reply-To: <87r2iau0wz.fsf@pompo.co> (Alex Sassmannshausen's message of "Mon, 03 Sep 2018 16:10:36 +0200") Message-ID: <87zhwywe8v.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32022 Cc: 26608@debbugs.gnu.org, Konrad Hinsen , 22629@debbugs.gnu.org, 32022@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: -6.0 (------) Hi Alex, Alex Sassmannshausen skribis: > Ludovic Court=C3=A8s writes: [...] >> I just had a bright idea (yes!): this can be addressed by writing >> something like this in ~/.config/guix/channels.scm: >> >> (map latest-commit-with-substitutes-available >> %default-channels) >> >> The hypothetical =E2=80=98latest-commit-with-substitutes-available=E2=80= =99 would use >> (git) and (guix ci) to find the latest commit for which substitutes of >> interest are available, and would return: >> >> (channel >> ;; =E2=80=A6 >> (commit "cabbag3")) ;the ideal commit > > This sounds incredibly interesting =E2=80=94 and it is testament once aga= in to > the power of Guix that this kind of solution could be feasible! Just to be clear: I don=E2=80=99t think this would be a substitute for a =E2=80=9Cstable=E2=80=9D branch; rather, I view as a way to have user-defin= ed policies such as =E2=80=9Cpull up to the latest commit for which there=E2=80=99s a s= ubstitute for IceCat.=E2=80=9D > Thinking this through in my head somewhat, I had the following thoughts: > - This procedure is invoked client side, where the channel is defined > - That means the git searching is done client side, on every invocation > of guix (I guess this might be cacheable?) On every invocation of =E2=80=98guix pull=E2=80=99 only. > I have no idea what the performance cost would be. I guess you would > use "guix weather" to turn the set of requested packages into a manifest > which can then be checked with it. As I imagine it, the cost would be a few HTTP queries to the Cuirass API. I should try to come up with an example to better explain what I had in mind! > The question of security updates is tricky at the moment already =E2=80= =94 I > would hazard a guess that many people bail out of upgrading when they > can't get substitutes for their entire profile / system right now, which > means they are not getting security upgrades for package (a) when a > substitute for (b) fails. That=E2=80=99s probably true, and I agree it=E2=80=99s problematic. What I typically do is =E2=80=9Cguix pull && guix package -n -u=E2=80=9D. = Then I look at things that would be built; if, say, LibreOffice is among them, I wait for a little while and try again later, until I can get enough substitutes. That usually works okay, but it fails if it turns out that one of the dependencies fails to build: substitutes never become available in that case. Ludo=E2=80=99.