all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#53267: Profile changes after ‘guix upgrade --dry-run’
@ 2022-01-14 19:19 Tirifto
  2022-01-14 21:38 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Tirifto @ 2022-01-14 19:19 UTC (permalink / raw)
  To: 53267

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




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

* bug#53267: Profile changes after ‘guix upgrade --dry-run’
  2022-01-14 19:19 bug#53267: Profile changes after ‘guix upgrade --dry-run’ Tirifto
@ 2022-01-14 21:38 ` Ludovic Courtès
  2022-01-14 22:08   ` Tirifto
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2022-01-14 21:38 UTC (permalink / raw)
  To: Tirifto; +Cc: 53267

Hello,

Tirifto <tirifto@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’.




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

* bug#53267: Profile changes after ‘guix upgrade --dry-run’
  2022-01-14 21:38 ` Ludovic Courtès
@ 2022-01-14 22:08   ` Tirifto
  2022-01-17 15:35     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Tirifto @ 2022-01-14 22:08 UTC (permalink / raw)
  To: Ludovic Courtès

On Fri, 14 Jan 2022 22:38:52 +0100
Ludovic Courtès <ludo@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




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

* bug#53267: Profile changes after ‘guix upgrade --dry-run’
  2022-01-14 22:08   ` Tirifto
@ 2022-01-17 15:35     ` Ludovic Courtès
  2022-01-17 16:45       ` Tirifto
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2022-01-17 15:35 UTC (permalink / raw)
  To: Tirifto; +Cc: 53267

Hi,

Tirifto <tirifto@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’.




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

* bug#53267: Profile changes after ‘guix upgrade --dry-run’
  2022-01-17 15:35     ` Ludovic Courtès
@ 2022-01-17 16:45       ` Tirifto
  2022-01-17 17:10         ` Tirifto
  0 siblings, 1 reply; 6+ messages in thread
From: Tirifto @ 2022-01-17 16:45 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 53267

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

On Mon, 17 Jan 2022 16:35:32 +0100
Ludovic Courtès <ludo@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

[-- Attachment #2: guix-profile-diff.txt --]
[-- Type: text/plain, Size: 5962 bytes --]

Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/bin and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/bin
Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/etc and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/etc
Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/include and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/include
Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/lib and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/lib
Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/libexec and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/libexec
diff -u /var/guix/profiles/per-user/tirifto/guix-profile-20-link/manifest /var/guix/profiles/per-user/tirifto/guix-profile-21-link/manifest
--- /var/guix/profiles/per-user/tirifto/guix-profile-20-link/manifest	1970-01-01 01:00:01.000000000 +0100
+++ /var/guix/profiles/per-user/tirifto/guix-profile-21-link/manifest	1970-01-01 01:00:01.000000000 +0100
@@ -6,18 +6,12 @@
 (manifest
   (version 3)
   (packages
-    (("emacs"
-      "27.2"
+    (("gimp"
+      "2.10.30"
       "out"
-      "/gnu/store/lbz42b3af7xm89h832abhjfwqkrcq185-emacs-27.2"
+      "/gnu/store/hj3dpqar89hw0xz9vv2rdkg248liafkw-gimp-2.10.30"
       (propagated-inputs ())
-      (search-paths
-        (("EMACSLOADPATH"
-          ("share/emacs/site-lisp")
-          ":"
-          directory
-          #f)
-         ("INFOPATH" ("share/info") ":" directory #f)))
+      (search-paths ())
       (properties
         (provenance
           (repository
@@ -25,7 +19,7 @@
             (url "https://git.savannah.gnu.org/git/guix.git")
             (branch "master")
             (commit
-              "175915bb4417e198f6b500901dcef710a0011be9")
+              "b2f6b6f6b9df6bcc24794238e7e97357470af95d")
             (name guix)
             (introduction
               (channel-introduction
@@ -34,12 +28,17 @@
                   "9edb3f66fd807b096b48283debdcddccfea34bad")
                 (signer
                   "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))))
-     ("gimp"
-      "2.10.30"
+     ("ungoogled-chromium"
+      "97.0.4692.71-1"
       "out"
-      "/gnu/store/n0k6wzn0sf26ks2z40ka2nl7sjzp7avd-gimp-2.10.30"
+      "/gnu/store/a0lw6q7kaknac9nxbc49mr8cc3accjf0-ungoogled-chromium-97.0.4692.71-1"
       (propagated-inputs ())
-      (search-paths ())
+      (search-paths
+        (("CHROMIUM_EXTENSION_DIRECTORY"
+          ("share/chromium/extensions")
+          #f
+          directory
+          #f)))
       (properties
         (provenance
           (repository
@@ -47,7 +46,7 @@
             (url "https://git.savannah.gnu.org/git/guix.git")
             (branch "master")
             (commit
-              "175915bb4417e198f6b500901dcef710a0011be9")
+              "b2f6b6f6b9df6bcc24794238e7e97357470af95d")
             (name guix)
             (introduction
               (channel-introduction
@@ -56,17 +55,12 @@
                   "9edb3f66fd807b096b48283debdcddccfea34bad")
                 (signer
                   "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))))
-     ("ungoogled-chromium"
-      "97.0.4692.71-1"
+     ("youtube-dl"
+      "2021.12.17"
       "out"
-      "/gnu/store/rn01w2691mm81k1k5zjskahn32k9y80j-ungoogled-chromium-97.0.4692.71-1"
+      "/gnu/store/gsha4kp5z3250vd9r8jik1dyiklizw3f-youtube-dl-2021.12.17"
       (propagated-inputs ())
-      (search-paths
-        (("CHROMIUM_EXTENSION_DIRECTORY"
-          ("share/chromium/extensions")
-          #f
-          directory
-          #f)))
+      (search-paths ())
       (properties
         (provenance
           (repository
@@ -74,7 +68,7 @@
             (url "https://git.savannah.gnu.org/git/guix.git")
             (branch "master")
             (commit
-              "175915bb4417e198f6b500901dcef710a0011be9")
+              "b2f6b6f6b9df6bcc24794238e7e97357470af95d")
             (name guix)
             (introduction
               (channel-introduction
@@ -83,12 +77,18 @@
                   "9edb3f66fd807b096b48283debdcddccfea34bad")
                 (signer
                   "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))))
-     ("dav1d"
-      "0.9.2"
+     ("emacs"
+      "27.2"
       "out"
-      "/gnu/store/d9f1c7gwjix46hdanyl7v093mdp913y3-dav1d-0.9.2"
+      "/gnu/store/lbz42b3af7xm89h832abhjfwqkrcq185-emacs-27.2"
       (propagated-inputs ())
-      (search-paths ())
+      (search-paths
+        (("EMACSLOADPATH"
+          ("share/emacs/site-lisp")
+          ":"
+          directory
+          #f)
+         ("INFOPATH" ("share/info") ":" directory #f)))
       (properties
         (provenance
           (repository
@@ -105,10 +105,10 @@
                   "9edb3f66fd807b096b48283debdcddccfea34bad")
                 (signer
                   "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))))
-     ("teeworlds"
-      "0.7.5"
+     ("dav1d"
+      "0.9.2"
       "out"
-      "/gnu/store/r7nkj6w6cvdvss7qa0s8ywz8v0an5av9-teeworlds-0.7.5"
+      "/gnu/store/d9f1c7gwjix46hdanyl7v093mdp913y3-dav1d-0.9.2"
       (propagated-inputs ())
       (search-paths ())
       (properties
@@ -127,10 +127,10 @@
                   "9edb3f66fd807b096b48283debdcddccfea34bad")
                 (signer
                   "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))))
-     ("youtube-dl"
-      "2021.12.17"
+     ("teeworlds"
+      "0.7.5"
       "out"
-      "/gnu/store/j3plsds9iqzmmgdjcsgcv5ccpnnw33qv-youtube-dl-2021.12.17"
+      "/gnu/store/r7nkj6w6cvdvss7qa0s8ywz8v0an5av9-teeworlds-0.7.5"
       (propagated-inputs ())
       (search-paths ())
       (properties
Common subdirectories: /var/guix/profiles/per-user/tirifto/guix-profile-20-link/share and /var/guix/profiles/per-user/tirifto/guix-profile-21-link/share

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

* bug#53267: Profile changes after ‘guix upgrade --dry-run’
  2022-01-17 16:45       ` Tirifto
@ 2022-01-17 17:10         ` Tirifto
  0 siblings, 0 replies; 6+ messages in thread
From: Tirifto @ 2022-01-17 17:10 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 53267

On Mon, 17 Jan 2022 17:45:35 +0100
Tirifto <tirifto@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




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

end of thread, other threads:[~2022-01-17 17:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 19:19 bug#53267: Profile changes after ‘guix upgrade --dry-run’ Tirifto
2022-01-14 21:38 ` Ludovic Courtès
2022-01-14 22:08   ` Tirifto
2022-01-17 15:35     ` Ludovic Courtès
2022-01-17 16:45       ` Tirifto
2022-01-17 17:10         ` Tirifto

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.