GNU bug report logs - #26608
Provide --only-substitutes flag to "guix package --upgrade"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Christopher Allan Webber <cwebber@HIDDEN>; dated Sat, 22 Apr 2017 16:04:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 4 Sep 2018 12:22:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 04 08:22:47 2018
Received: from localhost ([127.0.0.1]:45111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fxAM3-0003D2-BJ
	for submit <at> debbugs.gnu.org; Tue, 04 Sep 2018 08:22:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47820)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fxAM1-0003Cl-KA
 for 26608 <at> debbugs.gnu.org; Tue, 04 Sep 2018 08:22:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fxALt-0002YG-7Q
 for 26608 <at> debbugs.gnu.org; Tue, 04 Sep 2018 08:22:40 -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]:40287)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fxALt-0002Xk-0o; Tue, 04 Sep 2018 08:22:37 -0400
Received: from [193.50.110.186] (port=48646 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fxALs-0000u6-Oc; Tue, 04 Sep 2018 08:22:36 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Alex Sassmannshausen <alex@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <87r2iau0wz.fsf@HIDDEN>
 <87zhwywe8v.fsf@HIDDEN> <87pnxtu1uw.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 18 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: Tue, 04 Sep 2018 14:22:35 +0200
In-Reply-To: <87pnxtu1uw.fsf@HIDDEN> (Alex Sassmannshausen's message of
 "Tue, 04 Sep 2018 10:02:31 +0200")
Message-ID: <8736upcv04.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi Alex,

Alex Sassmannshausen <alex@HIDDEN> skribis:

> So the example you provided is a user-defined policy to install the
> latest version of Guix that is downloadable using substitutes (if guix
> publish has published those already).
>
> As you say, in a similar vein, the end user could for themselves define
> a policy that searches for a commit containing a specific successful
> build, or a set of specific successful builds.

Exactly.

>> 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!
>
> Your example helps visualize this, thanks.
>
> Your example depends on there being a jobset that comprises the set of
> packages you are interested in testing.

Yes, and it=E2=80=99s hacky in that the substitute server and jobset names =
are
hard-coded, but you get the idea.

> I imagine it is possible to do the same for an individual package / job.

Yes.

> The situation would be different if the end user wanted to perform a
> similar operation for an arbitrary set of packages on their end.

It would be quite similar: you would query the set of builds of an
evaluation of the =E2=80=9Cguix-modular=E2=80=9D jobset and check whether t=
he packages
of interest were built.

>> 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.
>
> Interesting.  Do you think this kind of thing might be useful to have in
> the Guix manual? Like, in a section about a "typical" desktop end-user
> might manage their system day to day?

It would make sense to have such a section I guess.  However, before
teaching users how to work around deficiencies of our infrastructure our
processes ;-), I=E2=80=99d like us to improve them much as possible.  I=E2=
=80=99m sure
we have room for improvement for instance in Cuirass.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 4 Sep 2018 08:02:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 04 04:02:41 2018
Received: from localhost ([127.0.0.1]:44990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fx6IL-0007Zt-Cn
	for submit <at> debbugs.gnu.org; Tue, 04 Sep 2018 04:02:41 -0400
Received: from [82.153.16.8] (port=36569 helo=ronja.pompo.co)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@HIDDEN>)
 id 1fx6II-0007ZX-TH; Tue, 04 Sep 2018 04:02:39 -0400
Received: from rosser (vodsl-8997.vo.lu [85.93.202.37])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by ronja.pompo.co (Postfix) with ESMTPSA id 9658A402FA;
 Tue,  4 Sep 2018 08:02:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pompo.co; s=mail;
 t=1536048152; bh=GQP2IdXMJuN0f50IPjTghGMdDO6YbwC5eOFHkgfT8Bk=;
 h=References:From:To:Cc:Subject:Reply-To:In-reply-to:Date:From;
 b=WNBWWt3tv15EGYX8rnS4a6Yvkbk31Yj2Mmbxy+iBal9MgYUv980Jpj9E9HZaOuoL5
 lRrMYpPrYxIfCf462cRpBPcR7FjrTiajjW0QrHkwGjIqeKRZoFqR93p8aOhR+Nfb+U
 Po3vHezlCJflOKTaxo4bfKJKV96rpAis2nSGTDPM=
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <87r2iau0wz.fsf@HIDDEN> <87zhwywe8v.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Alex Sassmannshausen <alex@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
In-reply-to: <87zhwywe8v.fsf@HIDDEN>
Date: Tue, 04 Sep 2018 10:02:31 +0200
Message-ID: <87pnxtu1uw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Ludovic Courtès writes: > Hi Alex, > > Alex Sassmannshausen
    <alex@HIDDEN> skribis: > >> Ludovic Courtès 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 ‘latest-commit-with-substitutes-available’
    would use >>> (git) and (guix ci) to find the latest commit for which substitutes
    of >>> interest are available, and would return: >>> >>> (channel >>> ;;
   … >>> (commit "cabbag3")) ;the ideal commit >> >> This sounds incredibly
    interesting — and it is testament once again to >> the power of Guix that
    this kind of solution could be feasible! > > Just to be clear: I don’t
   think this would be a substitute for a > “stable” branch; rather, I view
    as a way to have user-defined policies > such as “pull up to the latest
    commit for which there’s a substitute for > IceCat.” [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS
  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
X-Debbugs-Envelope-To: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: alex@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)


Ludovic Court=C3=A8s writes:

> Hi Alex,
>
> Alex Sassmannshausen <alex@HIDDEN> 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 ag=
ain 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-def=
ined policies
> such as =E2=80=9Cpull up to the latest commit for which there=E2=80=99s a=
 substitute for
> IceCat.=E2=80=9D

Ah, I understand now.

So the example you provided is a user-defined policy to install the
latest version of Guix that is downloadable using substitutes (if guix
publish has published those already).

As you say, in a similar vein, the end user could for themselves define
a policy that searches for a commit containing a specific successful
build, or a set of specific successful builds.

>> 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.

That makes sense, and is way better than I feared :-)

>> 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!

Your example helps visualize this, thanks.

Your example depends on there being a jobset that comprises the set of
packages you are interested in testing.

I imagine it is possible to do the same for an individual package / job.

The situation would be different if the end user wanted to perform a
similar operation for an arbitrary set of packages on their end.

It would probably involve something like this (probably naive):

(define (latest-commit-successfully-built-pkg pkg)
  "Return the latest commit for the pkg for which substitutes are
(potentially) available."
  ;;                  Like your version, but magically performs query
  ;;                  for pkg, not the guix-modular-master evaluation
  (let* ((evaluations (latest-evaluations pkg))
         (candidates  (filter-map (lambda (json)
                                    (match (hash-ref json "checkouts")
                                      ((checkout)
                                       (cons (hash-ref json "id")
                                             (hash-ref checkout "commit")))
                                      (_ #f)))
                                  evaluations)))
    (map (match-lambda
            ((evaluation . commit)
             (and (evaluation-complete? evaluation)
                  commit)))
          candidates)))

(any (match-lambda
        ((evaluation . commit) commit)
     (apply lset-intersection equal?
     ;;   Like latest-commit-successfully-built, but takes an
     ;;   individual package name for which we return the
     ;;   commit
     (map latest-commit-successfully-built-pkg
          %set-of-packages))))

Obviously the larger the set, the more requests are required, and the
lower the chance of a commit being available / a downgrade occuring

>> 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.

Interesting.  Do you think this kind of thing might be useful to have in
the Guix manual? Like, in a section about a "typical" desktop end-user
might manage their system day to day?

Alex




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 3 Sep 2018 20:27:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 03 16:27:41 2018
Received: from localhost ([127.0.0.1]:44619 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwvRj-0006P4-8N
	for submit <at> debbugs.gnu.org; Mon, 03 Sep 2018 16:27:41 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43827)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fwvRg-0006Oo-VS
 for 26608 <at> debbugs.gnu.org; Mon, 03 Sep 2018 16:27:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fwvRZ-0000SM-R7
 for 26608 <at> debbugs.gnu.org; Mon, 03 Sep 2018 16:27:31 -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]:52884)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fwvRX-0000R7-Qu; Mon, 03 Sep 2018 16:27:28 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48810 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fwvRX-0003Co-49; Mon, 03 Sep 2018 16:27:27 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Alex Sassmannshausen <alex@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <87r2iau0wz.fsf@HIDDEN>
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 22:27:25 +0200
In-Reply-To: <87r2iau0wz.fsf@HIDDEN> (Alex Sassmannshausen's message of
 "Mon, 03 Sep 2018 16:10:36 +0200")
Message-ID: <87h8j6wclu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
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: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Alex Sassmannshausen <alex@HIDDEN> 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

The code below is an illustration of that.  If you install it as
~/.config/guix/channels.scm, =E2=80=98guix pull=E2=80=99 will pull the late=
st commit
that was fully built on berlin.guixsd.org (see
<https://berlin.guixsd.org/jobset/guix-modular-master>), meaning that
substitutes for Guix itself should be available, unless =E2=80=98guix publi=
sh=E2=80=99
hasn=E2=80=99t =E2=80=9Cbaked=E2=80=9D them yet.

It takes two GETs and ~1s to do that here.

Ludo=E2=80=99.


--=-=-=
Content-Type: text/plain
Content-Disposition: inline; filename=channels-test.scm
Content-Description: the channels config

(use-modules (guix http-client)
             (json)
             (srfi srfi-1)
             (ice-9 match))

(define (latest-evaluations jobset)
  "Return the latest evaluations of JOBSET."
  (filter (lambda (json)
            (string=? (hash-ref json "specification") jobset))
          (json->scm
           (http-fetch
            "https://berlin.guixsd.org/api/evaluations?nr=30"))))

(define (evaluation-complete? number)
  "Return true if evaluation NUMBER completed and all its builds were
successful."
  (let ((builds (json->scm
                 (http-fetch
                  (string-append
                   "https://berlin.guixsd.org/api/latestbuilds?nr=30&evaluation="
                   (number->string number))))))
    (every (lambda (build)
             ;; Zero means build success.
             (= (hash-ref build "buildstatus") 0))
           builds)))

(define (latest-commit-successfully-built)
  "Return the latest commit for which substitutes are (potentially)
available."
  (let* ((evaluations (latest-evaluations "guix-modular-master"))
         (candidates  (filter-map (lambda (json)
                                    (match (hash-ref json "checkouts")
                                      ((checkout)
                                       (cons (hash-ref json "id")
                                             (hash-ref checkout "commit")))
                                      (_ #f)))
                                  evaluations)))
    (any (match-lambda
            ((evaluation . commit)
             (and (evaluation-complete? evaluation)
                  commit)))
          candidates)))

;; Pull the latest commit fully built on berlin.guixsd.org.
;; WARNING: This could downgrade your system!
(list (channel
       (name 'guix)
       (url "https://git.savannah.gnu.org/git/guix.git")
       (commit (pk 'commit (latest-commit-successfully-built)))))

--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 3 Sep 2018 19:52:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 03 15:52:16 2018
Received: from localhost ([127.0.0.1]:44593 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwutU-0005XQ-Jx
	for submit <at> debbugs.gnu.org; Mon, 03 Sep 2018 15:52:16 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59999)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fwutR-0005XA-Th
 for 26608 <at> debbugs.gnu.org; Mon, 03 Sep 2018 15:52:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fwutL-0003kX-3O
 for 26608 <at> debbugs.gnu.org; Mon, 03 Sep 2018 15:52:08 -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 <ludo@HIDDEN>)
 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 <ludo@HIDDEN>)
 id 1fwutF-0000YD-SV; Mon, 03 Sep 2018 15:52:03 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Alex Sassmannshausen <alex@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <87r2iau0wz.fsf@HIDDEN>
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@HIDDEN> (Alex Sassmannshausen's message of
 "Mon, 03 Sep 2018 16:10:36 +0200")
Message-ID: <87zhwywe8v.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi Alex,

Alex Sassmannshausen <alex@HIDDEN> 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.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 3 Sep 2018 14:11:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 03 10:11:07 2018
Received: from localhost ([127.0.0.1]:44443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fwpZK-0003e8-Nr
	for submit <at> debbugs.gnu.org; Mon, 03 Sep 2018 10:11:06 -0400
Received: from [82.153.16.8] (port=47017 helo=ronja.pompo.co)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alex@HIDDEN>)
 id 1fwpZH-0003dC-9s; Mon, 03 Sep 2018 10:11:04 -0400
Received: from rosser (vodsl-8997.vo.lu [85.93.202.37])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by ronja.pompo.co (Postfix) with ESMTPSA id 3C8A7402FA;
 Mon,  3 Sep 2018 14:10:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pompo.co; s=mail;
 t=1535983857; bh=3zF55RApxQW/X+upZzku+GEwteudvedpfMUF3yyndPY=;
 h=References:From:To:Cc:Subject:Reply-To:In-reply-to:Date:From;
 b=dGcGBQplM2cxJPiAJ65dE/mruEa2WYSs6OJFynsAs7kJeVQQNS6E97m2z/Lv683eC
 wcklV4yzz6f7FBGTEXaOYhia3HCwyO89s8HvlKRU+2kverTnV0NTrQNs4SjFvYt6BP
 9aV680wXUDZ/bWLN93x9gpmNQZTW8r+/IDw7eoss=
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Alex Sassmannshausen <alex@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
In-reply-to: <878t4nqzqv.fsf@HIDDEN>
Date: Mon, 03 Sep 2018 16:10:36 +0200
Message-ID: <87r2iau0wz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hi Ludo, Ludovic Courtès writes: > Hi Alex, > > (Cc’ing
    <https://bugs.gnu.org/32022> and <https://bugs.gnu.org/26608>, > which are
    related.) > > Alex Sassmannshausen <alex@HIDDEN> skribis: > >> I don't
   know if this is what Konrad desires, but from my perspective, a >> desirable
    part of the definition of stable would be a that the build >> farms have
   produced a set of binaries/substitutes for a given Guix >> revision that is
    "good enough". > > 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
    ‘latest-commit-with-substitutes-available’ would use > (git) and (guix
    ci) to find the latest commit for which substitutes of > interest are available,
    and would return: > > (channel > ;; … > (commit "cabbag3")) ;the ideal
   commit [...] 
 
 Content analysis details:   (1.3 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS
  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
X-Debbugs-Envelope-To: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: alex@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

Hi Ludo,

Ludovic Court=C3=A8s writes:

> Hi Alex,
>
> (Cc=E2=80=99ing <https://bugs.gnu.org/32022> and <https://bugs.gnu.org/26=
608>,
> which are related.)
>
> Alex Sassmannshausen <alex@HIDDEN> skribis:
>
>> I don't know if this is what Konrad desires, but from my perspective, a
>> desirable part of the definition of stable would be a that the build
>> farms have produced a set of binaries/substitutes for a given Guix
>> revision that is "good enough".
>
> 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 again=
 to
the power of Guix that this kind of solution could be feasible!

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?)
- So the downside vis-a-vis a maintained "stable branch" would be a
price in performance as experienced by the end user
- The upside of course would be automatic curation of a stable branch
that saves a ton of volunteer effort and work

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.

So the cost would be one of the following scenarios:
Option a)
- fetch set of packages in a given commit
- query guix weather for 100% substitutes
- iterate until a match
- then perform the appropriate guix pull

Option b)
- perform a guix pull to the latest commit
- query guix weather for 100% substitutes
- until success, step back one step at a time through guix pull

(because of the cost of guix pull this seems unfeasible)

Option c)
Implement some form of substitute cache set querying on build farms, as
part of guix weather, so the 100% match is done on the build farm
instead of the client.

Dunno.  There may be some things that already exist in Guix land that
I'm missing.

It's a super exciting approach for sure.

> This has to be done with great care to prevent a downgrade attack and to
> make sure the user doesn=E2=80=99t miss out on security updates, but mayb=
e we
> could provide a procedure that makes reasonable choices.

Right =E2=80=94 so at the very least it would have to prevent us going "bac=
k in
time" from the guix pull commit we are currently at.

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.

Thanks for your thoughts =E2=80=94 super intriguing!

Alex




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 13:02:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 09:02:08 2018
Received: from localhost ([127.0.0.1]:39888 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvj3v-0002g8-Qj
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 09:02:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55593)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fvj3q-0002fU-Nw
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 09:02:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fvj3i-0002Df-2D
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 09:01:57 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57754)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fvj3h-0002Da-Us; Fri, 31 Aug 2018 09:01:53 -0400
Received: from [193.50.110.186] (port=49170 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fvj3h-0000CE-LZ; Fri, 31 Aug 2018 09:01:53 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <m1h8jaq3h0.fsf@HIDDEN>
 <874lfarh6w.fsf@HIDDEN> <m1k1o6akr4.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 14 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: Fri, 31 Aug 2018 15:01:52 +0200
In-Reply-To: <m1k1o6akr4.fsf@HIDDEN> (Konrad Hinsen's message of "Fri,
 31 Aug 2018 12:33:19 +0200")
Message-ID: <87k1o6pu4f.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org,
 Alex Sassmannshausen <alex@HIDDEN>, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hello,

Konrad Hinsen <konrad.hinsen@HIDDEN> skribis:

>> What do you mean by =E2=80=9Climit it to channels=E2=80=9D?  =E2=80=98%d=
efault-channels=E2=80=99 is an
>> alias for the official Guix channel (IOW, Guix itself.)
>
> Fine, but I rarely care about all of Guix, or all of any other channel.
> I care about the small subset of packages that I actually use.
>
> Better yet, with a per-manifest/profile approach, I could put my most
> critical packages in a special profile and get updates for them more
> quickly, while still working only with substitutes.

Sure!  The hypothetical procedure I gave can perform arbitrary checks;
it could be passed a manifest.

> BTW, just out of curiosity: for how many commits in Guix history all
> packages could be built successfully? Is that the rule of the exception?

We never have 100% of successful builds.  Of course we do our best to
keep the failure rate low, but sometimes there are unpopular packages
that remain broken for some time, or there are packages for which we
forgot to exclude some systems via =E2=80=98supported-systems=E2=80=99, and=
 of course
there=E2=80=99s unintended breakage.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 11:46:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 07:46:03 2018
Received: from localhost ([127.0.0.1]:39827 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvhsI-0000jl-Iy
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 07:46:02 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21144)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1fvhsG-0000j9-HN
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 07:46:01 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1535715934; cv=none; d=zoho.com; s=zohoarc; 
 b=l7ptBdpyGwDylJRjwdOpgm2hsvqM6R7grHowczQIao1P6G9l7Nr84U7KpKxq5H3jSQCsJg+pRu1YhYZuqr13BocsIYD7Zh5xm5pJ+vl3uZ6xVFtJvmcBP02MstMVckpO4DhyBiU4zyURrnAJiETgp+IRr0G9TfbOSe17MNNXjDA=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1535715934;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=TlbpFnguLKmersljIOPXAZBHMvuRdTGpKjorrIu1Ktw=; 
 b=oJ7IwGxzCUzrKSFBfgdvVs2GZ7y92UC21Jw5P1vokrgbL0/5X9tqGFo15m7wmN3TeyR4mLz1HLZ1hG5fCu9ZPVHjPQMddeefJy3A4BL1qjLMKdHsWyglUiTM6UNR/TefXw2cF4XpMuB39/93/IM7PQag+UVh42SD6smNh7zl+aM=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1535715934; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=1039; bh=TlbpFnguLKmersljIOPXAZBHMvuRdTGpKjorrIu1Ktw=;
 b=NWdtnAv1DZlcGYS87AlFlVvaf/53+euFnPkdeLZqJ2ciwHF8Y/0POqSv8DFYi7D0
 ke2jPytJgrGvwtNVW8QV2Dc2kwXV6xiOTtkOh4/2tjF3Un8baMZlYjp8IL7izpWTND/
 nTnEqJpwgVWj9kpcU3vfDMOjGJXFB36B6YqWJd3s=
Received: from localhost (141.80.247.34 [141.80.247.34]) by mx.zohomail.com
 with SMTPS id 1535715932827704.073042874536;
 Fri, 31 Aug 2018 04:45:32 -0700 (PDT)
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN>
User-agent: mu4e 1.0; emacs 26.1
From: Ricardo Wurmus <rekado@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#32022: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
In-reply-to: <878t4nqzqv.fsf@HIDDEN>
X-URL: https://elephly.net
X-PGP-Key: https://elephly.net/rekado.pubkey
X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
Date: Fri, 31 Aug 2018 13:45:29 +0200
Message-ID: <87lg8m2206.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org,
 Alex Sassmannshausen <alex@HIDDEN>, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Ludovic Court=C3=A8s <ludo@HIDDEN> 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 has to be done with great care to prevent a downgrade attack and to
> make sure the user doesn=E2=80=99t miss out on security updates, but mayb=
e we
> could provide a procedure that makes reasonable choices.

This is a great idea.  Any kind of fetch policy could be implemented
with this, including one that considers the contents of a manifest.

This is another of these instances where having a general purpose
programming language underpinning it all really pays off.

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 11:24:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 07:24:57 2018
Received: from localhost ([127.0.0.1]:39819 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvhXs-0006gt-PZ
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 07:24:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34475)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1fvhXq-0006gX-He
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 07:24:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <janneke@HIDDEN>) id 1fvhXk-0007Zk-M3
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 07:24:49 -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]:52830)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <janneke@HIDDEN>)
 id 1fvhXQ-0007VR-UU; Fri, 31 Aug 2018 07:24:28 -0400
Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=45028
 helo=dundal.peder.onsbrabantnet.nl)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <janneke@HIDDEN>)
 id 1fvhXQ-0007VM-Jm; Fri, 31 Aug 2018 07:24:28 -0400
From: Jan Nieuwenhuizen <janneke@HIDDEN>
To: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
Organization: AvatarAcademy.nl
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Fri, 31 Aug 2018 13:24:25 +0200
In-Reply-To: <878t4nqzqv.fsf@HIDDEN> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Fri, 31 Aug 2018 00:02:48 +0200")
Message-ID: <87mut2ok2e.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org,
 Alex Sassmannshausen <alex@HIDDEN>, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

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)

This is a nice idea and it makes me remember that it would be useful to
provide a way to avoid installing something that is cricitally broken,
like Debian's apt-listbugs package/facility
(https://packages.debian.org/sid/apt-listbugs).

janneke

--=20
Jan Nieuwenhuizen <janneke@HIDDEN> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 10:33:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 06:33:28 2018
Received: from localhost ([127.0.0.1]:39796 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvgk4-0005Qw-06
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 06:33:28 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50119)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>)
 id 1fvgjz-0005QY-3V; Fri, 31 Aug 2018 06:33:23 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id B68D921F2E;
 Fri, 31 Aug 2018 06:33:22 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute7.internal (MEProxy); Fri, 31 Aug 2018 06:33:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 cc:content-transfer-encoding:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=Ms4cmFco2q97Wj75xjhCRrwOP7cAK
 Z7wbt2+ilB6bxc=; b=oRPzsJ9cnmg869qzFZSq6lycSoa1K9BSp4cEo6f0sTvaW
 5RBvNIIRPFSMnENY3afUtBzQ5u3G7SC+jISuZOYzsImJMBUG8KuiwTOw1+qIKpR5
 wMTMfKMpo8hMQ1eq9S7xbShJrc6nz6/9njfpScXvzVuyZkxG7y3ui7QAVVbPQY+z
 3dygDEZogKWGPkvc6mdEZPYtI4VcctKLDUMqdDRDn7SzjacB920KhqGsrZuoKBCz
 UjuL2bDZMnpMjVNsibB2P7A303J3OAXVMpmkDmRZr8Umhx59Qps9zjD/ZWvEQrIj
 mumWi3rAho/3Xp2LjeHWxY9LzTaajw4gNqKlW5fDw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Ms4cmF
 co2q97Wj75xjhCRrwOP7cAKZ7wbt2+ilB6bxc=; b=J74m89xktUNgBCNAP+CTF4
 XNSGQpY0pdm6zmb23A6AknyAbHyD7XI59yzoU9DvrR4R52xeUvmmUsC5TGNNOziL
 fup0oaJ7CZrTACE0UvhIYpwhTlw/utkACdLhsdB1UVDliMmkwo7a71vQFX/W4ga/
 FGgSAHRrpJxq5VTWAjmV+PFXnnms9oWDIfFCPKNeH6DQGWP2yJQ8WuoQx2lSuGXR
 jIZ0qpYaIKaNtPi7BtbMo6VGlru1Xxo6qeem0pFauhC5uRmjaL+Y2s0mZIRxySUe
 iuq0dCqZYOriwm1+7q6iQVXMa6VMUsgPWCiREmIsRbEeNCH4z4xoXHVQNKHa/7TA
 ==
X-ME-Proxy: <xmx:chmJWy0ryrDO_hf7HxLieeCj_w0M79UCWd5ZxaCNG7B-noMgziFVoQ>
 <xmx:chmJW12f0CKywlWeEYEAZHBAI764dYAZW4HEL0ySTV7s8CDp1R4HHw>
 <xmx:chmJW3CH7WA-UVYyyYFqSfeSrpo4mWp_7JADs4unSuOyEThgaTADtg>
 <xmx:chmJW07BGbZyi9XbcOIy6Q7yQAhUtHwlEivnAHO_2E90aoJ_BUDqOA>
 <xmx:chmJW4JmWYN8ils0KlyaHO0z_h3DmfwUgyj718NZSEL0p4TbJ5tvyA>
 <xmx:chmJWz3PApbqMRzKlCyJI2oHUrgtn6f0PXmfLVeUM2LOc9RqN0Zv_A>
X-ME-Sender: <xms:chmJW290ROPVYjKjyRSv3minnx6SNQ2-MxHU7v3v7MzfJtRa8gbkOg>
Received: from kh-MacBookPro (soleil-ext.synchrotron.fr [195.221.0.206])
 by mail.messagingengine.com (Postfix) with ESMTPA id 34DFF10288;
 Fri, 31 Aug 2018 06:33:21 -0400 (EDT)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
In-Reply-To: <874lfarh6w.fsf@HIDDEN>
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <m1h8jaq3h0.fsf@HIDDEN>
 <874lfarh6w.fsf@HIDDEN>
Date: Fri, 31 Aug 2018 12:33:19 +0200
Message-ID: <m1k1o6akr4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org,
 Alex Sassmannshausen <alex@HIDDEN>, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Ludo,

> What do you mean by =E2=80=9Climit it to channels=E2=80=9D?  =E2=80=98%de=
fault-channels=E2=80=99 is an
> alias for the official Guix channel (IOW, Guix itself.)

Fine, but I rarely care about all of Guix, or all of any other channel.
I care about the small subset of packages that I actually use.

Better yet, with a per-manifest/profile approach, I could put my most
critical packages in a special profile and get updates for them more
quickly, while still working only with substitutes.

BTW, just out of curiosity: for how many commits in Guix history all
packages could be built successfully? Is that the rule of the exception?

> Yes, we could do that, and even maybe more sophisticated things (e.g.,
> looking at the commit log to determine whether security fixes are
> available, and adjusting the strategy accordingly.)

Nice!

> What I find interesting is that we can provide the tools to support such
> policies, and then users can choose or implement the policy they want
> directly in ~/.config/guix/channels.scm.

I agree, it's nice to give people the tools they need to implement their
own policy.

Konrad.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 09:58:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 05:58:28 2018
Received: from localhost ([127.0.0.1]:39759 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvgCC-0002V6-Kr
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 05:58:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43884)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fvgCA-0002Us-88
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 05:58:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fvgC1-000881-QP
 for 26608 <at> debbugs.gnu.org; Fri, 31 Aug 2018 05:58:20 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46580)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fvgC1-00087x-Mq; Fri, 31 Aug 2018 05:58:17 -0400
Received: from [193.50.110.186] (port=46664 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fvgC1-0002jO-E6; Fri, 31 Aug 2018 05:58:17 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN> <m1h8jaq3h0.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 14 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: Fri, 31 Aug 2018 11:58:15 +0200
In-Reply-To: <m1h8jaq3h0.fsf@HIDDEN> (Konrad Hinsen's message of "Fri,
 31 Aug 2018 11:39:55 +0200")
Message-ID: <874lfarh6w.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org,
 Alex Sassmannshausen <alex@HIDDEN>, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi Konrad,

Konrad Hinsen <konrad.hinsen@HIDDEN> skribis:

>> 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:
>
> I really like that idea, but it's a pity to limit it to channels.

What do you mean by =E2=80=9Climit it to channels=E2=80=9D?  =E2=80=98%defa=
ult-channels=E2=80=99 is an
alias for the official Guix channel (IOW, Guix itself.)

> Two scenarii I'd like to see covered are:
>
>  1) Find the latest commit with all substitutes required by a given
>     manifest.
>
>  2) Find the latest commit with all substitutes required for updating a
>     given profile.
>
> This is in fact only one problem with two user interfaces.

Yes, we could do that, and even maybe more sophisticated things (e.g.,
looking at the commit log to determine whether security fixes are
available, and adjusting the strategy accordingly.)

What I find interesting is that we can provide the tools to support such
policies, and then users can choose or implement the policy they want
directly in ~/.config/guix/channels.scm.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 31 Aug 2018 09:40:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 31 05:40:01 2018
Received: from localhost ([127.0.0.1]:39750 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvfuL-00025O-HZ
	for submit <at> debbugs.gnu.org; Fri, 31 Aug 2018 05:40:01 -0400
Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50383)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>)
 id 1fvfuJ-00024y-LX; Fri, 31 Aug 2018 05:40:00 -0400
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id 1D9A721BC4;
 Fri, 31 Aug 2018 05:39:59 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Fri, 31 Aug 2018 05:39:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 cc:content-transfer-encoding:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=sjpV7AqqG0zj8C14b9LlGXL/snlSB
 d9QTQXAEc03Cw4=; b=ICDIzSkDVV+58xcxTBKJx5mi9scRcM/UV1cAwuEIOgPw5
 lGvmpsgGdnkyWvNEUj8/HgXWLKAzPFf//LvSHwJLh0vPlODj9UzcUnW67W9a9oq6
 mKK9fdilgtxcG6Y6iWeejCIUniahx3NwPaB+B/NlzQWgFrh6BLG6O8wzORzdEQZW
 0szkIrR8zTJcCwzyHRL95wkC9SRpuCcqiANNMIfRyxLWZvCJsLmOVUmC5FAXhIio
 BEj4axvjRsBg4C8k2WnDNnnNuKozazcPc8Ba6H2/NgdL6cQlcRgGH4sGaUkivmuH
 HPUuxv/PNjoW2WBiBxpOn63Vku9MK0NEfY5K7c9ag==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=sjpV7A
 qqG0zj8C14b9LlGXL/snlSBd9QTQXAEc03Cw4=; b=wKg5ZdTkZBcmX4bnSKHQ5H
 8ydkLlvlNXh/lz9XJZY8RyDXXCYWvHEMa0NWvVOiPE9Wi3xqZ/Kt2GQVzXh6J8bm
 7SFaFK+dTUkaoZLzwX2oBbqoPgT8QPmFLanjUfrYTyDyfdjj9jqDKT+HwmsCW9yg
 oImdGTx2jeO7quuQbrxdDiEU/q/G1ig3RCYWe5dLTQhtcClzZeqQD0TNYv/VIMw0
 ETmg9fF4qsLvRPfXbccFrZD37rkrlj4r21mKKNywCAYXMsOY1fcN33HHnGaTgkhn
 cZH9wvzIZgzIChTyiHtmC7VYQ4FdaFuCziKkD0vT23RzeWJPJh9ABPIjbnnmIFMA
 ==
X-ME-Proxy: <xmx:7gyJW5pY3FtzmHZm3pO_FmvuyT1YY1gZOlzxPOQGk8nCYqTeKCruPg>
 <xmx:7gyJWwOp3zClaWz6OLhfFqdjr7bB-7VBwNYSQy-bHAPP5DR5qmky_g>
 <xmx:7gyJWzUouGqU4VAst7JYUpVbaDzEAQWmHvG2Unk-iui54nG4VOw5kA>
 <xmx:7gyJW7tNIC69d_IvARTJzgWGtqXAwRuKsIIeQZJiwl3RmThYp_oPjw>
 <xmx:7gyJW20vMAPkEUgzriO44_sphb4q4of3VdZqichu2HRUAr1Y5YWMhQ>
 <xmx:7wyJW0qf8oy5LQggl6hH_DMiAdfA4JZU7mlem2ij3X8Tk7OU97vDcQ>
X-ME-Sender: <xms:7gyJW0rRrqrbnMnmkBJaDkOKpshDPGVE1Gey-8GO64MKQmUkp2091g>
Received: from KHs-MacBook.local (soleil-ext.synchrotron.fr [195.221.0.206])
 by mail.messagingengine.com (Postfix) with ESMTPA id 3A0ABE46B6;
 Fri, 31 Aug 2018 05:39:57 -0400 (EDT)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, Alex Sassmannshausen
 <alex@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
In-Reply-To: <878t4nqzqv.fsf@HIDDEN>
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
 <878t4nqzqv.fsf@HIDDEN>
Date: Fri, 31 Aug 2018 11:39:55 +0200
Message-ID: <m1h8jaq3h0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 26608
Cc: 26608 <at> debbugs.gnu.org, 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Ludo,

> 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:

I really like that idea, but it's a pity to limit it to channels.
Two scenarii I'd like to see covered are:

 1) Find the latest commit with all substitutes required by a given
    manifest.

 2) Find the latest commit with all substitutes required for updating a
    given profile.

This is in fact only one problem with two user interfaces.

Konrad.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 30 Aug 2018 22:02:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 30 18:02:58 2018
Received: from localhost ([127.0.0.1]:39527 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fvV1m-00060S-1z
	for submit <at> debbugs.gnu.org; Thu, 30 Aug 2018 18:02:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42934)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1fvV1k-00060D-EO
 for 26608 <at> debbugs.gnu.org; Thu, 30 Aug 2018 18:02:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1fvV1e-0005Kr-Fd
 for 26608 <at> debbugs.gnu.org; Thu, 30 Aug 2018 18:02:51 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59537)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1fvV1e-0005Kd-Ax; Thu, 30 Aug 2018 18:02:50 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53574 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1fvV1e-0008S3-2T; Thu, 30 Aug 2018 18:02:50 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Alex Sassmannshausen <alex@HIDDEN>
Subject: Re: bug#22629: =?utf-8?B?4oCcU3RhYmxl4oCd?= branch
References: <87vb5vsffd.fsf@HIDDEN> <87pny2iks2.fsf@HIDDEN>
 <877ekagtg9.fsf@HIDDEN> <87zhx5msfl.fsf@HIDDEN>
 <87lg8pccys.fsf_-_@HIDDEN> <87zhx59gh3.fsf@HIDDEN>
 <m1wos82y70.fsf@HIDDEN>
 <875zzs9wzl.fsf@HIDDEN> <m1d0u0qi4v.fsf@HIDDEN>
 <874lfcxd2v.fsf_-_@HIDDEN> <87wos8lzcj.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 13 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: Fri, 31 Aug 2018 00:02:48 +0200
In-Reply-To: <87wos8lzcj.fsf@HIDDEN> (Alex Sassmannshausen's message of
 "Thu, 30 Aug 2018 16:10:20 +0200")
Message-ID: <878t4nqzqv.fsf@HIDDEN>
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: 26608
Cc: 26608 <at> debbugs.gnu.org, Konrad Hinsen <konrad.hinsen@HIDDEN>,
 22629 <at> debbugs.gnu.org, 32022 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Hi Alex,

(Cc=E2=80=99ing <https://bugs.gnu.org/32022> and <https://bugs.gnu.org/2660=
8>,
which are related.)

Alex Sassmannshausen <alex@HIDDEN> skribis:

> I don't know if this is what Konrad desires, but from my perspective, a
> desirable part of the definition of stable would be a that the build
> farms have produced a set of binaries/substitutes for a given Guix
> revision that is "good enough".

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 has to be done with great care to prevent a downgrade attack and to
make sure the user doesn=E2=80=99t miss out on security updates, but maybe =
we
could provide a procedure that makes reasonable choices.

Food for thought=E2=80=A6

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from ludo@HIDDEN (Ludovic Courtès) to control <at> debbugs.gnu.org. Full text available.

Message received at 26608 <at> debbugs.gnu.org:


Received: (at 26608) by debbugs.gnu.org; 22 Apr 2017 23:04:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 22 19:04:05 2017
Received: from localhost ([127.0.0.1]:34863 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d244T-0007Pn-C4
	for submit <at> debbugs.gnu.org; Sat, 22 Apr 2017 19:04:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38763)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1d244R-0007PK-Ct
 for 26608 <at> debbugs.gnu.org; Sat, 22 Apr 2017 19:04:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ludo@HIDDEN>) id 1d244J-000807-6s
 for 26608 <at> debbugs.gnu.org; Sat, 22 Apr 2017 19:03:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55825)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1d244J-000801-3j; Sat, 22 Apr 2017 19:03:55 -0400
Received: from reverse-83.fdn.fr ([80.67.176.83]:55430 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1d244I-00075N-GQ; Sat, 22 Apr 2017 19:03:54 -0400
From: ludo@HIDDEN (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Christopher Allan Webber <cwebber@HIDDEN>
Subject: Re: bug#26608: Provide --only-substitutes flag to "guix package
 --upgrade"
References: <874lxg77l4.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?=
 =?utf-8?Q?=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-unknown-linux-gnu
Date: Sun, 23 Apr 2017 01:03:52 +0200
In-Reply-To: <874lxg77l4.fsf@HIDDEN> (Christopher Allan Webber's
 message of "Sat, 22 Apr 2017 11:03:35 -0500")
Message-ID: <87d1c4gi3r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.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: 26608
Cc: 26608 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

Christopher Allan Webber <cwebber@HIDDEN> skribis:

> Sometimes I do an upgrade and I want to get the latest security updates,
> but I also am not really available to burn through a lot of cpu time,
> (especially on my x200).
>
> I'd love it if thre were a flag so that I could specify "only bother to
> upgrade the packages where we only upgrade if a substitute is already
> available.

+1

> Note that I looked at the source to see if this would be an easy thing
> to add; I figured that this would be handled in roughly the same place
> as --keep-going or --fallback, but it looks to me like those are
> actually just passed over to the build daemon, so I'm not so sure how
> easy it would be to patch this in while we're still using Nix's C
> daemon?  I'm not sure.

Clients could check, among the packages that are to be installed, which
ones are substitutable (with the =E2=80=98substitute-paths=E2=80=99 RPC or =
similar) and
filter out those that are not.  No C++ involved.

Cheers,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Apr 2017 16:03:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 22 12:03:52 2017
Received: from localhost ([127.0.0.1]:34592 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1d1xVo-0007YY-8Y
	for submit <at> debbugs.gnu.org; Sat, 22 Apr 2017 12:03:52 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50599)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cwebber@HIDDEN>) id 1d1xVm-0007YJ-IC
 for submit <at> debbugs.gnu.org; Sat, 22 Apr 2017 12:03:50 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cwebber@HIDDEN>) id 1d1xVg-0003lH-Q3
 for submit <at> debbugs.gnu.org; Sat, 22 Apr 2017 12:03:45 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:56797)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <cwebber@HIDDEN>)
 id 1d1xVg-0003lA-N6
 for submit <at> debbugs.gnu.org; Sat, 22 Apr 2017 12:03:44 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:41554)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cwebber@HIDDEN>) id 1d1xVf-0006O8-LA
 for bug-guix@HIDDEN; Sat, 22 Apr 2017 12:03:44 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cwebber@HIDDEN>) id 1d1xVa-0003jj-PQ
 for bug-guix@HIDDEN; Sat, 22 Apr 2017 12:03:43 -0400
Received: from dustycloud.org ([50.116.34.160]:48852)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <cwebber@HIDDEN>)
 id 1d1xVa-0003jT-KG
 for bug-guix@HIDDEN; Sat, 22 Apr 2017 12:03:38 -0400
Received: from oolong (localhost [127.0.0.1])
 by dustycloud.org (Postfix) with ESMTPS id A8EEC265EE
 for <bug-guix@HIDDEN>; Sat, 22 Apr 2017 12:03:35 -0400 (EDT)
User-agent: mu4e 0.9.18; emacs 25.1.1
From: Christopher Allan Webber <cwebber@HIDDEN>
To: bug-guix@HIDDEN
Subject: Provide --only-substitutes flag to "guix package --upgrade"
Date: Sat, 22 Apr 2017 11:03:35 -0500
Message-ID: <874lxg77l4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

Sometimes I do an upgrade and I want to get the latest security updates,
but I also am not really available to burn through a lot of cpu time,
(especially on my x200).

I'd love it if thre were a flag so that I could specify "only bother to
upgrade the packages where we only upgrade if a substitute is already
available.

Note that I looked at the source to see if this would be an easy thing
to add; I figured that this would be handled in roughly the same place
as --keep-going or --fallback, but it looks to me like those are
actually just passed over to the build daemon, so I'm not so sure how
easy it would be to patch this in while we're still using Nix's C
daemon?  I'm not sure.





Acknowledgement sent to Christopher Allan Webber <cwebber@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#26608; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.