GNU bug report logs -
#53267
Profile changes after ‘guix upgrade --dry-run’
Previous Next
Reported by: Tirifto <tirifto <at> posteo.cz>
Date: Fri, 14 Jan 2022 19:20:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53267 in the body.
You can then email your comments to 53267 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Fri, 14 Jan 2022 19:20:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Tirifto <tirifto <at> posteo.cz>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 14 Jan 2022 19:20:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello! I recently had some issues with my setup, which had me rolling
my generations back and forth in attempt to fix them. My configuration
was at fault, but I did find an unrelated bug in Guix while at it:
When I run ‘guix package --rollback’, Guix switches to the previous
generation. But then, when I run ‘guix upgrade --dry-run’ to see what
would change again, my profile (~/.guix-profile/etc/profile) is actually
upgraded to the new generation. I should expect ‘--dry-run’ to leave my
profile untouched.
$ guix describe
Generation 17 Jan 13 2022 18:00:35 (current)
guix 175915b
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 175915bb4417e198f6b500901dcef710a0011be9
I am using Guix as an additional package manager on top of
Trisquel GNU/Linux 9 ‘Etiona’.
Best of wishes
// Tirifto
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Fri, 14 Jan 2022 21:39:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 53267 <at> debbugs.gnu.org (full text, mbox):
Hello,
Tirifto <tirifto <at> posteo.cz> skribis:
> When I run ‘guix package --rollback’, Guix switches to the previous
> generation. But then, when I run ‘guix upgrade --dry-run’ to see what
> would change again, my profile (~/.guix-profile/etc/profile) is actually
> upgraded to the new generation. I should expect ‘--dry-run’ to leave my
> profile untouched.
It seems I cannot reproduce it. Specifically, ‘guix upgrade --dry-run’
really does a dry run, displaying “XYZ MB would be downloaded” (note
“would”) and then exiting without downloading or building any of the
packages.
What output to you get exactly?
Thanks,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Mon, 17 Jan 2022 14:19:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 53267 <at> debbugs.gnu.org (full text, mbox):
On Fri, 14 Jan 2022 22:38:52 +0100
Ludovic Courtès <ludo <at> gnu.org> wrote:
> It seems I cannot reproduce it. Specifically, ‘guix upgrade
> --dry-run’ really does a dry run, displaying “XYZ MB would be
> downloaded” (note “would”) and then exiting without downloading or
> building any of the packages.
In my case, I have already done the same upgrade before and haven’t
done a new pull since; therefore all the packages to be upgraded to are
already in Guix’s store.
‘guix upgrade --dry-run’ also tells me which packages ‘would be’
removed/upgraded/installed, and yet it edits my profile, changing the
environment variables it sets to new destinations.
> What output to you get exactly?
$ guix package --rollback
switched from generation 20 to 19
$ guix upgrade --dry-run
guix upgrade: package 'gs-fonts' has been superseded by
'font-ghostscript' The following package would be removed:
gs-fonts 8.11
The following packages would be upgraded:
dav1d (dependencies or package changed)
emacs (dependencies or package changed)
font-dejavu (dependencies or package changed)
font-gnu-freefont (dependencies or package changed)
fontconfig 2.13.1 → 2.13.94
gimp (dependencies or package changed)
glibc-utf8-locales 2.31 → 2.33
nss-certs 3.59 → 3.71
teeworlds (dependencies or package changed)
ungoogled-chromium 96.0.4664.45-1 → 97.0.4692.71-1
youtube-dl 2021.06.06 → 2021.12.17
The following package would be installed:
font-ghostscript 8.11
$ guix package --rollback
switched from generation 20 to 19
I suppose I could keep repeating these two commands ad infinitum. :-)
Doing ‘guix package -I’ after ‘guix upgrade --dry-run’ likewise shows
the new package versions.
> Thanks,
> Ludo’.
Thank you
// Tirifto
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Mon, 17 Jan 2022 15:36:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 53267 <at> debbugs.gnu.org (full text, mbox):
Hi,
Tirifto <tirifto <at> posteo.cz> skribis:
> $ guix package --rollback
> switched from generation 20 to 19
>
> $ guix upgrade --dry-run
> guix upgrade: package 'gs-fonts' has been superseded by
> 'font-ghostscript' The following package would be removed:
> gs-fonts 8.11
>
> The following packages would be upgraded:
> dav1d (dependencies or package changed)
> emacs (dependencies or package changed)
> font-dejavu (dependencies or package changed)
> font-gnu-freefont (dependencies or package changed)
> fontconfig 2.13.1 → 2.13.94
> gimp (dependencies or package changed)
> glibc-utf8-locales 2.31 → 2.33
> nss-certs 3.59 → 3.71
> teeworlds (dependencies or package changed)
> ungoogled-chromium 96.0.4664.45-1 → 97.0.4692.71-1
> youtube-dl 2021.06.06 → 2021.12.17
>
> The following package would be installed:
> font-ghostscript 8.11
>
> $ guix package --rollback
> switched from generation 20 to 19
I think I have the beginning of an explanation. Could you show the
output of:
diff -u /var/guix/profiles/per-user/$USER/guix-profile-{19,20}-link
… where generation 20 is that created by ‘guix upgrade --dry-run’.
TIA,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Mon, 17 Jan 2022 16:46:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 53267 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Mon, 17 Jan 2022 16:35:32 +0100
Ludovic Courtès <ludo <at> gnu.org> wrote:
> Hi,
Hello again!
> I think I have the beginning of an explanation. Could you show the
> output of:
>
> diff -u /var/guix/profiles/per-user/$USER/guix-profile-{19,20}-link
>
> … where generation 20 is that created by ‘guix upgrade --dry-run’.
I have done another upgrade since, but I just made sure the problem
persists even there, or at least this is what happened…
$ guix package --rollback
switched from generation 21 to 20
$ guix upgrade --dry-run
The following packages would be upgraded:
gimp (dependencies or package changed)
ungoogled-chromium (dependencies or package changed)
youtube-dl (dependencies or package changed)
$ guix package --rollback
switched from generation 21 to 20
…so I’m attaching the diff between generations 20 and 21 instead, with
no other changes to your command. Please find it in the file
‘guix-profile-diff.txt’, unless it got renamed along the way.
> TIA,
> Ludo’.
Best of wishes
// Tirifto
[guix-profile-diff.txt (text/plain, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53267
; Package
guix
.
(Mon, 17 Jan 2022 17:11:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 53267 <at> debbugs.gnu.org (full text, mbox):
On Mon, 17 Jan 2022 17:45:35 +0100
Tirifto <tirifto <at> posteo.cz> wrote:
> I have done another upgrade since […]
Oh right, and here’s an up-to-date description:
$ guix describe
Generation 18 Jan 17 2022 15:59:23 (current)
guix b2f6b6f
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: b2f6b6f6b9df6bcc24794238e7e97357470af95d
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Wed, 19 Jan 2022 21:17:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Tirifto <tirifto <at> posteo.cz>
:
bug acknowledged by developer.
(Wed, 19 Jan 2022 21:17:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 53267-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Tirifto <tirifto <at> posteo.cz> skribis:
> I have done another upgrade since, but I just made sure the problem
> persists even there, or at least this is what happened…
>
> $ guix package --rollback
> switched from generation 21 to 20
>
> $ guix upgrade --dry-run
> The following packages would be upgraded:
> gimp (dependencies or package changed)
> ungoogled-chromium (dependencies or package changed)
> youtube-dl (dependencies or package changed)
>
> $ guix package --rollback
> switched from generation 21 to 20
>
> …so I’m attaching the diff between generations 20 and 21 instead, with
> no other changes to your command. Please find it in the file
> ‘guix-profile-diff.txt’, unless it got renamed along the way.
That was an interesting corner case, fixed in
ccda88a07039c62d5d0bfde7fccef02ef3937ccf.
Thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 17 Feb 2022 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.