From: ludo@gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: Alex Kost <alezost@gmail.com>, help-guix@gnu.org
Subject: Re: Guix upgrade leads to different hashes
Date: Thu, 05 Oct 2017 15:08:50 +0200 [thread overview]
Message-ID: <87d1617ndp.fsf@gnu.org> (raw)
In-Reply-To: <87d162tpy9.fsf@gmail.com> (Oleg Pykhalov's message of "Thu, 05 Oct 2017 03:10:06 +0300")
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]
Howdy,
Oleg Pykhalov <go.wigust@gmail.com> skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Hi Oleg,
>>
>> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>>
>>> ludo@gnu.org (Ludovic Courtès) writes:
>>>
>>> [...]
>>>
>>>> What does ‘guix package --list-generations’ show? The output is a diff
>>>> of the contents of each generation.
>>>
>>> My current generation before upgrade was 369. After upgrade it's 370.
>>> No changes.
>>>
>>> Generation 369 Oct 03 2017 13:07:34
>>> + emacs-git-auto-commit-mode 4.4.0 out
>>> /gnu/store/kcihgk3k9mgilbly0r7922qgkdgg2ji3-emacs-git-auto-commit-mode-4.4.0
>>>
>>> Generation 370 Oct 04 2017 00:42:07 (current)
>>
>> What about:
>>
>> diff -u /var/guix/profiles/per-user/ludo/guix-profile-{369,370}-link/manifest
>
> This has some info!
As I see it, it just reversed the order of entries.
Could you check if this patch helps:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 857 bytes --]
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm
index 4adc70522..0e365018a 100644
--- a/guix/scripts/package.scm
+++ b/guix/scripts/package.scm
@@ -604,12 +604,12 @@ and upgrades."
(options->upgrade-predicate opts))
(define upgraded
- (fold (lambda (entry transaction)
- (if (upgrade? (manifest-entry-name entry))
- (transaction-upgrade-entry entry transaction)
- transaction))
- transaction
- (manifest-entries manifest)))
+ (fold-right (lambda (entry transaction)
+ (if (upgrade? (manifest-entry-name entry))
+ (transaction-upgrade-entry entry transaction)
+ transaction))
+ transaction
+ (manifest-entries manifest)))
(define to-install
(filter-map (match-lambda
[-- Attachment #3: Type: text/plain, Size: 12 bytes --]
Ludo’.
next prev parent reply other threads:[~2017-10-05 13:09 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-02 2:15 Guix upgrade leads to different hashes Oleg Pykhalov
2017-10-02 19:35 ` Alex Kost
2017-10-03 9:40 ` Oleg Pykhalov
2017-10-03 19:56 ` Ludovic Courtès
2017-10-03 21:44 ` Oleg Pykhalov
2017-10-04 8:28 ` Ludovic Courtès
2017-10-05 0:10 ` Oleg Pykhalov
2017-10-05 13:08 ` Ludovic Courtès [this message]
2017-10-06 16:36 ` Oleg Pykhalov
2017-10-06 22:24 ` Ludovic Courtès
2017-10-07 7:38 ` Oleg Pykhalov
2017-10-07 15:10 ` Ludovic Courtès
2017-10-08 7:06 ` bug#28743: guix package dry-run upgrade shows not required derivations (UI issue) Oleg Pykhalov
2021-09-16 7:18 ` bug#28743: guix package dry-run upgrade incorrect behaviour with verbosity zimoun
2022-01-04 23:06 ` bug#28743: guix package dry-run upgrade shows not required derivations (UI issue) zimoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1617ndp.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=alezost@gmail.com \
--cc=go.wigust@gmail.com \
--cc=help-guix@gnu.org \
/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 external index
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.