unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 56441@debbugs.gnu.org, zimoun <zimon.toutoune@gmail.com>
Subject: bug#56441: guix time-machine broken by profiles speed-up
Date: Fri, 08 Jul 2022 10:52:43 +0200	[thread overview]
Message-ID: <87fsjcx9yc.fsf@gnu.org> (raw)
In-Reply-To: <87sfncztuq.fsf@elephly.net> (Ricardo Wurmus's message of "Thu, 07 Jul 2022 19:52:52 +0200")

Hi,

Ricardo Wurmus <rekado@elephly.net> skribis:

> It’s worse than that: an older Guix living in a new profile (i.e a
> profile with a version 4 manifest) cannot describe itself, because it
> cannot read the manifest.

Argh.

[...]

> This old Guix lives in a new profile.  We must prevent this.  But how?
>
> How about this:
>
> Build Guix with only the 'guix channel (no any other custom channels
> allowed), and then build the channel’s profile (with all requested
> channels) inside an inferior of that plain Guix.  Since the inferior
> Guix can only build profiles that it supports the resulting *profile*
> will be compatible with the same Guix (and any additional channels).

Another option (thinking out loud):

  • in ‘package-cache-file’, unconditionally generate a v3 profile (we
    could add a ‘version’ field to <profile> etc.);

  • likewise in ‘channel-instances->derivation’.

Problem: it doesn’t address the case where you install the ‘guix’
package in a regular profile (I think?).

Other option: run the whole ‘profile-derivation’ call of
‘channel-instances->derivation’ in the inferior, instead of just
‘package-cache-file’.

Needs more thought…

Ludo’.




  reply	other threads:[~2022-07-08  8:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-07 16:42 bug#56441: guix time-machine broken by profiles speed-up zimoun
2022-07-07 17:29 ` Ricardo Wurmus
2022-07-07 17:52   ` Ricardo Wurmus
2022-07-08  8:52     ` Ludovic Courtès [this message]
2022-07-08 10:36       ` Ludovic Courtès
2022-07-08 14:34         ` bug#56441: Time travel doesn't resist profile format changes zimoun
2022-07-08 16:13           ` Ludovic Courtès
2022-07-08 22:01         ` bug#56441: guix time-machine broken by profiles speed-up Ludovic Courtès
2022-07-08 10:46 ` bug#56441: Time travel doesn't resist profile format changes Ricardo Wurmus
2022-07-08 20:42   ` bug#56441: guix time-machine broken by profiles speed-up Ludovic Courtès
     [not found] ` <handler.56441.D56441.165731768325904.notifdone@debbugs.gnu.org>
2022-07-11  8:27   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsjcx9yc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=56441@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).