unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26608: Provide --only-substitutes flag to "guix package --upgrade"
@ 2017-04-22 16:03 Christopher Allan Webber
  2017-04-22 23:03 ` Ludovic Courtès
  2019-12-03 17:55 ` bug#26608: channels.scm supporting substitutes Nome Grey
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Allan Webber @ 2017-04-22 16:03 UTC (permalink / raw)
  To: 26608

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26608: Provide --only-substitutes flag to "guix package --upgrade"
  2017-04-22 16:03 bug#26608: Provide --only-substitutes flag to "guix package --upgrade" Christopher Allan Webber
@ 2017-04-22 23:03 ` Ludovic Courtès
  2019-12-03 17:55 ` bug#26608: channels.scm supporting substitutes Nome Grey
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2017-04-22 23:03 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: 26608

Christopher Allan Webber <cwebber@dustycloud.org> 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 ‘substitute-paths’ RPC or similar) and
filter out those that are not.  No C++ involved.

Cheers,
Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26608: channels.scm supporting substitutes
  2017-04-22 16:03 bug#26608: Provide --only-substitutes flag to "guix package --upgrade" Christopher Allan Webber
  2017-04-22 23:03 ` Ludovic Courtès
@ 2019-12-03 17:55 ` Nome Grey
  2019-12-10 16:41   ` bug#32022: " Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Nome Grey @ 2019-12-03 17:55 UTC (permalink / raw)
  To: 26608, 32022, 22629

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

Ludovic posted some channels.scm code in September 2018 supporting using
more substitutes.  Unfortunately his code no longer functions due to an
upgrade of guile-json in guix.

I've tried to learn enough guile to upgrade the code to the newer json
structures, and posted my changes to github at
https://github.com/nomr72/guix-substitutes-channel .  It seems to run again
now.

Maybe I can learn enough to upgrade it to check the 'guix-master'
evaluations to find the latest build of key packages.  We'll see.

[-- Attachment #2: Type: text/html, Size: 734 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#32022: bug#26608: channels.scm supporting substitutes
  2019-12-03 17:55 ` bug#26608: channels.scm supporting substitutes Nome Grey
@ 2019-12-10 16:41   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-12-10 16:41 UTC (permalink / raw)
  To: Nome Grey; +Cc: 26608, 22629, 32022

Hi,

Nome Grey <greynome72@gmail.com> skribis:

> Ludovic posted some channels.scm code in September 2018 supporting using
> more substitutes.  Unfortunately his code no longer functions due to an
> upgrade of guile-json in guix.
>
> I've tried to learn enough guile to upgrade the code to the newer json
> structures, and posted my changes to github at
> https://github.com/nomr72/guix-substitutes-channel .  It seems to run again
> now.

Nice, thanks for sharing!

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-10 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-22 16:03 bug#26608: Provide --only-substitutes flag to "guix package --upgrade" Christopher Allan Webber
2017-04-22 23:03 ` Ludovic Courtès
2019-12-03 17:55 ` bug#26608: channels.scm supporting substitutes Nome Grey
2019-12-10 16:41   ` bug#32022: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).