GNU bug report logs - #31142
guix package --upgrade reverses the order of packages

Previous Next

Package: guix;

Reported by: Chris Marusich <cmmarusich <at> gmail.com>

Date: Fri, 13 Apr 2018 05:59: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 31142 in the body.
You can then email your comments to 31142 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Fri, 13 Apr 2018 05:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Marusich <cmmarusich <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 13 Apr 2018 05:59:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: guix package --upgrade reverses the order of packages
Date: Thu, 12 Apr 2018 22:57:57 -0700
[Message part 1 (text/plain, inline)]
Hi,

It seems that running "guix package --upgrade ." reverses the order of
packages installed in a profile.  Apparently as a result, repeatedly
running the command on a profile will create multiple generations, even
though the packages are not actually being upgraded.

Here's a way to reproduce it:

--8<---------------cut here---------------start------------->8---
$ guix package -p test-profile -i guile git:send-email
[0] marusich <at> garuda.local:/tmp
$ guix package -p test-profile -i guile git:send-email
guix package: warning: Your Guix installation is 7 days old.
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following packages will be installed:
   guile	2.2.3	/gnu/store/b90y3swxlx3vw2yyacs8cz59b8cbpbw5-guile-2.2.3
   git:send-email	2.17.0	/gnu/store/xv8za72akjqidji3y5fz76n21jnvmqvk-git-2.17.0-send-email

2 packages in profile
The following environment variable definitions may be needed:
   export PATH="test-profile/bin${PATH:+:}$PATH"
   export GIT_EXEC_PATH="test-profile/libexec/git-core"
[0] marusich <at> garuda.local:/tmp
$ guix package -p test-profile -u .
guix package: warning: Your Guix installation is 7 days old.
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following packages will be upgraded:
   git:send-email	2.17.0 → 2.17.0	/gnu/store/xv8za72akjqidji3y5fz76n21jnvmqvk-git-2.17.0-send-email
   guile	2.2.3 → 2.2.3	/gnu/store/b90y3swxlx3vw2yyacs8cz59b8cbpbw5-guile-2.2.3

2 packages in profile
The following environment variable definitions may be needed:
   export PATH="test-profile/bin${PATH:+:}$PATH"
   export GIT_EXEC_PATH="test-profile/libexec/git-core"
[0] marusich <at> garuda.local:/tmp
$ guix package -p test-profile -u .
guix package: warning: Your Guix installation is 7 days old.
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following packages will be upgraded:
   guile	2.2.3 → 2.2.3	/gnu/store/b90y3swxlx3vw2yyacs8cz59b8cbpbw5-guile-2.2.3
   git:send-email	2.17.0 → 2.17.0	/gnu/store/xv8za72akjqidji3y5fz76n21jnvmqvk-git-2.17.0-send-email

2 packages in profile
The following environment variable definitions may be needed:
   export PATH="test-profile/bin${PATH:+:}$PATH"
   export GIT_EXEC_PATH="test-profile/libexec/git-core"
[0] marusich <at> garuda.local:/tmp
$ guix package -p test-profile -u .
guix package: warning: Your Guix installation is 7 days old.
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following packages will be upgraded:
   git:send-email	2.17.0 → 2.17.0	/gnu/store/xv8za72akjqidji3y5fz76n21jnvmqvk-git-2.17.0-send-email
   guile	2.2.3 → 2.2.3	/gnu/store/b90y3swxlx3vw2yyacs8cz59b8cbpbw5-guile-2.2.3

2 packages in profile
The following environment variable definitions may be needed:
   export PATH="test-profile/bin${PATH:+:}$PATH"
   export GIT_EXEC_PATH="test-profile/libexec/git-core"
[0] marusich <at> garuda.local:/tmp
$ 
--8<---------------cut here---------------end--------------->8---

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Wed, 18 Apr 2018 21:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 31142 <at> debbugs.gnu.org
Subject: Re: bug#31142: guix package --upgrade reverses the order of packages
Date: Wed, 18 Apr 2018 23:15:45 +0200
Hello,

Chris Marusich <cmmarusich <at> gmail.com> skribis:

> It seems that running "guix package --upgrade ." reverses the order of
> packages installed in a profile.  Apparently as a result, repeatedly
> running the command on a profile will create multiple generations, even
> though the packages are not actually being upgraded.

Commit eca16a3d1d9e6b2c064e0105c1015258bf2755f2 was supposed to fix it…
but it lacked a test case…  I plaid guilty.  :-)

Could you take a closer look at that commit?

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 15 Jan 2019 11:08:01 GMT) Full text and rfc822 format available.

Notification sent to Chris Marusich <cmmarusich <at> gmail.com>:
bug acknowledged by developer. (Tue, 15 Jan 2019 11:08:02 GMT) Full text and rfc822 format available.

Message #13 received at 31142-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 31142-done <at> debbugs.gnu.org
Subject: Re: bug#31142: guix package --upgrade reverses the order of packages
Date: Tue, 15 Jan 2019 12:07:29 +0100
Hi,

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Hello,
>
> Chris Marusich <cmmarusich <at> gmail.com> skribis:
>
>> It seems that running "guix package --upgrade ." reverses the order of
>> packages installed in a profile.  Apparently as a result, repeatedly
>> running the command on a profile will create multiple generations, even
>> though the packages are not actually being upgraded.
>
> Commit eca16a3d1d9e6b2c064e0105c1015258bf2755f2 was supposed to fix it…
> but it lacked a test case…  I plaid guilty.  :-)

This is fixed in 35225dc57996ebc7a5a55462e0e52d85239195d9, which pretty
much reverts eca16a3d1d9e6b2c064e0105c1015258bf2755f2…

But this time there’s a test case that gives me some confidence.  :-)

Thanks,
Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 12 Feb 2019 12:24:07 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Pierre Neidhardt <mail <at> ambrevar.xyz> to control <at> debbugs.gnu.org. (Wed, 27 Mar 2019 11:29:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Wed, 27 Mar 2019 11:34:01 GMT) Full text and rfc822 format available.

Message #20 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: 31142 <at> debbugs.gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Wed, 27 Mar 2019 12:33:49 +0100
[Message part 1 (text/plain, inline)]
Hi!

This issue fixes the list order, but it was initially supposed to address
https://lists.gnu.org/archive/html/help-guix/2018-04/msg00070.html.

In the linked conversation, the issue that was raised is that "guix
package --upgrade" always upgrades some (propagated?) inputs, even when
there is nothing to upgrade.

I can still reproduce this issue on latest Guix.
Anyone else?
Shall we open a new bug?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 12:50:01 GMT) Full text and rfc822 format available.

Message #23 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 31142 <at> debbugs.gnu.org, Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 13:49:04 +0100
Hello,

Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> This issue fixes the list order, but it was initially supposed to address
> https://lists.gnu.org/archive/html/help-guix/2018-04/msg00070.html.
>
> In the linked conversation, the issue that was raised is that "guix
> package --upgrade" always upgrades some (propagated?) inputs, even when
> there is nothing to upgrade.
>
> I can still reproduce this issue on latest Guix.
> Anyone else?
> Shall we open a new bug?

Yes, and I think we’ll close it as “wontfix”.  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 12:57:01 GMT) Full text and rfc822 format available.

Message #26 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 31142 <at> debbugs.gnu.org, Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 13:56:22 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

>> Shall we open a new bug?
>
> Yes, and I think we’ll close it as “wontfix”.  :-)

Hmm?  Why?

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:02:01 GMT) Full text and rfc822 format available.

Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <at> gnu.org, Ludovic Courtès <ludo <at> gnu.org>,
 Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 31142 <at> debbugs.gnu.org
Subject: Re: bug#31142: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 13:01:29 +0000

On March 28, 2019 12:49:04 PM UTC, "Ludovic Courtès" <ludo <at> gnu.org> wrote:
>Hello,
>
>Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:
>
>> This issue fixes the list order, but it was initially supposed to
>address
>> https://lists.gnu.org/archive/html/help-guix/2018-04/msg00070.html.
>>
>> In the linked conversation, the issue that was raised is that "guix
>> package --upgrade" always upgrades some (propagated?) inputs, even
>when
>> there is nothing to upgrade.
>>
>> I can still reproduce this issue on latest Guix.
>> Anyone else?
>> Shall we open a new bug?
>
>Yes, and I think we’ll close it as “wontfix”.  :-)

May I ask why? It seems it'd be ideal if packages got upgraded only when needed; the false upgrades pollute the output of an upgrade and makes it less useful.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:02:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:14:02 GMT) Full text and rfc822 format available.

Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>, bug-guix <at> gnu.org, Ludovic
 Courtès <ludo <at> gnu.org>
Cc: 31142 <at> debbugs.gnu.org
Subject: Re: bug#31142: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 14:13:01 +0100
[Message part 1 (text/plain, inline)]
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

>>Yes, and I think we’ll close it as “wontfix”.  :-)
>
> May I ask why? It seems it'd be ideal if packages got upgraded only when needed; the false upgrades pollute the output of an upgrade and makes it less useful.

It also generates spurious generations.
Last but not least, it makes it hard to the user to know when something
actually needs to be updated.

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:14:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:31:02 GMT) Full text and rfc822 format available.

Message #41 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 31142 <at> debbugs.gnu.org, Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 14:30:27 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>>> Shall we open a new bug?
>>
>> Yes, and I think we’ll close it as “wontfix”.  :-)
>
> Hmm?  Why?

At first sight, to me, it’s not entirely clear how to determine whether
something is to be upgraded in the presence of propagated inputs.

And more importantly, I think the “imperative” model is necessarily not
as expressive and “clean” as ‘--manifest’.  There are tradeoffs to make.

In short, if we can fix it, that’s great; but otherwise I wouldn’t lose
my hair over it.

I hope that makes sense!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 13:54:02 GMT) Full text and rfc822 format available.

Message #44 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Pierre Neidhardt <mail <at> ambrevar.xyz>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 31142 <at> debbugs.gnu.org, Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 14:53:20 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> At first sight, to me, it’s not entirely clear how to determine whether
> something is to be upgraded in the presence of propagated inputs.

I think the linked discussion suggested we checked upgrades
recursively.  Wouldn't that work?

> And more importantly, I think the “imperative” model is necessarily not
> as expressive and “clean” as ‘--manifest’.  There are tradeoffs to make.

Sorry, I don't understand what you mean.  How do we upgrade declaratively?  I
could be missing something big here! :)

-- 
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#31142; Package guix. (Thu, 28 Mar 2019 14:11:01 GMT) Full text and rfc822 format available.

Message #47 received at 31142 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Pierre Neidhardt <mail <at> ambrevar.xyz>
Cc: 31142 <at> debbugs.gnu.org, Chris Marusich <cmmarusich <at> gmail.com>
Subject: Re: guix package --upgrade reverses the order of packages
Date: Thu, 28 Mar 2019 15:10:39 +0100
Pierre Neidhardt <mail <at> ambrevar.xyz> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> At first sight, to me, it’s not entirely clear how to determine whether
>> something is to be upgraded in the presence of propagated inputs.
>
> I think the linked discussion suggested we checked upgrades
> recursively.  Wouldn't that work?

Maybe!  Let’s open a new bug.  :)

>> And more importantly, I think the “imperative” model is necessarily not
>> as expressive and “clean” as ‘--manifest’.  There are tradeoffs to make.
>
> Sorry, I don't understand what you mean.  How do we upgrade
> declaratively?

Just ‘guix pull && guix package --manifest=my-stuff.scm’.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 26 Apr 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 339 days ago.

Previous Next


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