From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix upgrade leads to different hashes Date: Sat, 07 Oct 2017 17:10:14 +0200 Message-ID: <87tvzbj8o9.fsf@gnu.org> References: <87o9pqz457.fsf@gmail.com> <87tvzhcpi3.fsf@gmail.com> <87wp4c7eo5.fsf@gmail.com> <87k20catud.fsf@gnu.org> <874lrf52k5.fsf@gmail.com> <87efqj9v0b.fsf@gnu.org> <87d162tpy9.fsf@gmail.com> <87d1617ndp.fsf@gnu.org> <87lgkojkrl.fsf@gmail.com> <87h8vbkj91.fsf@gnu.org> <87fuav1k78.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0qk5-0002su-Od for help-guix@gnu.org; Sat, 07 Oct 2017 11:10:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0qk4-0007qB-JV for help-guix@gnu.org; Sat, 07 Oct 2017 11:10:17 -0400 In-Reply-To: <87fuav1k78.fsf@gmail.com> (Oleg Pykhalov's message of "Sat, 07 Oct 2017 10:38:35 +0300") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Oleg Pykhalov Cc: Alex Kost , help-guix@gnu.org Hi, Oleg Pykhalov skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Oleg Pykhalov skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>> [...] >>> >>>> Could you check if this patch helps: >>>> >>>> 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)) >>>>=20=20 >>>> (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))) >>>>=20=20 >>>> (define to-install >>>> (filter-map (match-lambda [...] > I'm sorry, actually after patching no new generation created. But > dry-run still shows available upgrades and that will be build some > derivations. > > $ guix package -p /home/natsu/.my-guix-profile/debug-upgrade -m /home/nat= su/dotfiles/guix/user.scm I=E2=80=99ve pushed the above patch as eca16a3d1d9e6b2c064e0105c1015258bf27= 55f2. Now we need to fix the UI side of things. Could you resend the info to bug-guix@gnu.org so we keep track of it? Thanks! Ludo=E2=80=99.