GNU bug report logs - #41457
guix pull: channel d8feee9 - extraneous field initializers (sha256)

Previous Next

Package: guix;

Reported by: Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>

Date: Fri, 22 May 2020 13:42:02 UTC

Severity: serious

Merged with 41449, 41462

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 41457 in the body.
You can then email your comments to 41457 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#41457; Package guix. (Fri, 22 May 2020 13:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 22 May 2020 13:42:02 GMT) Full text and rfc822 format available.

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

From: Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>
To: bug-guix <at> gnu.org
Subject: guix pull: channel d8feee9 - extraneous field initializers (sha256)
Date: Fri, 22 May 2020 12:14:38 +0200
Hello! 

I've encountered the following exception, during regular 'guix pull'
command:

Updating channel 'guix' from Git repository at
'https://git.savannah.gnu.org/git/guix.git'... Building from this
channel: guix      https://git.savannah.gnu.org/git/guix.git
d8feee9 Computing Guix derivation for 'x86_64-linux'...
ice-9/psyntax.scm:1585:32: In procedure expand-macro: Syntax error:
unknown location: %origin: extraneous field initializers (sha256) in
form (%origin (method url-fetch) (uri (string-append
"mirror://gnu/bash/bash-" version ".tar.gz")) (sha256 (base32
"0kgvfwqdcd90waczf4gx39xnrxzijhjrzyzv7s8v4w31qqm0za5l")) (patch-flags
(quote ("-p0"))) (patches (cons (search-patch
"bash-linux-pgrp-pipe.patch") %patch-series-5.0))) guix pull: error:
You found a bug: the program
'/gnu/store/fsch1y8hilmkg21rmgk256j3wfi2w7wk-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"d8feee9f18ede0d1ea4d0e4876f09a0dab770295"; system: "x86_64-linux";
host version: "5c10d55206a4f7a9b932ff08512a4f50c1db35be"; pull-version:
1). Please report it by email to <bug-guix <at> gnu.org>.

Available for further informations,
saluti,
Matias




Information forwarded to bug-guix <at> gnu.org:
bug#41457; Package guix. (Fri, 22 May 2020 14:50:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 41457 <at> debbugs.gnu.org
Subject: Re: bug#41457: guix pull: channel d8feee9 - extraneous field
 initializers (sha256)
Date: Fri, 22 May 2020 16:49:33 +0200
Hi,

I can reproduce this:

--8<---------------cut here---------------start------------->8---
[rwurmus <at> bimsb-sys02.mdc-berlin.net:~/code/guix] (1005) $ ~/.config/guix/current/bin/guix pull
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from this channel:
  guix      https://git.savannah.gnu.org/git/guix.git	cd5d5f5
Computing Guix derivation for 'x86_64-linux'...  ice-9/psyntax.scm:1585:32: In procedure expand-macro:
Syntax error:
unknown location: %origin: extraneous field initializers (sha256) in form (%origin (method url-fetch) (uri (string-append "mirror://gnu/bash/bash-" version ".tar.gz")) (sha256 (base32 "0kgvfwqdcd90waczf4gx39xnrxzijhjrzyzv7s8v4w31qqm0za5l")) (patch-flags (quote ("-p0"))) (patches (cons (search-patch "bash-linux-pgrp-pipe.patch") %patch-series-5.0)))
-guix pull: error: You found a bug: the program '/gnu/store/fsch1y8hilmkg21rmgk256j3wfi2w7wk-compute-guix-derivation'
failed to compute the derivation for Guix (version: "cd5d5f53228fd5bf96d9f790aa2606ae71fa68d7"; system: "x86_64-linux";
host version: "be0ecfb1787b9e6954bf745bceeb1b9d2669d51a"; pull-version: 1).
Please report it by email to <bug-guix <at> gnu.org>.

[rwurmus <at> bimsb-sys02.mdc-berlin.net:~/code/guix] (1006) $ ~/.config/guix/current/bin/guix describe
Generation 8	Apr 15 2020 10:05:07	(current)
  guix-bimsb 78833aa
    repository URL: https://github.com/BIMSBbioinfo/guix-bimsb
    branch: master
    commit: 78833aa4c89fb317cdd67f17ff27111228d870a9
  …
  guix be0ecfb
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: be0ecfb1787b9e6954bf745bceeb1b9d2669d51a
--8<---------------cut here---------------end--------------->8---

It seems to be related to the commits between
c7d2dd69004b020de5d86898d2497ab3c8435c37 and
1ad5209d904d471ded6cf53b4e29b64e963dea3f.

I’m trying this now as a work-around:

    ~/.config/guix/current/bin/guix pull --commit=1ad5209d904d471ded6cf53b4e29b64e963dea3f

-- 
Ricardo




Severity set to 'serious' from 'normal' Request was from Ricardo Wurmus <rekado <at> elephly.net> to control <at> debbugs.gnu.org. (Fri, 22 May 2020 14:51:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#41457; Package guix. (Fri, 22 May 2020 15:14:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 41457 <at> debbugs.gnu.org,
 Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>
Subject: Re: bug#41457: guix pull: channel d8feee9 - extraneous field
 initializers (sha256)
Date: Fri, 22 May 2020 17:12:56 +0200
Hi,

Here’s a reproducer that works well for me:

  guix time-machine --commit=be0ecfb1787b9e6954bf745bceeb1b9d2669d51a -- \
    pull --commit=d8feee9f18ede0d1ea4d0e4876f09a0dab770295 -p /tmp/test

Before that I was able to pull from
df05842332be80ed7f53022402b95cf711163b41 to
d8feee9f18ede0d1ea4d0e4876f09a0dab770295 just fine.

Ludo’.




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 22 May 2020 18:03:02 GMT) Full text and rfc822 format available.

Notification sent to Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>:
bug acknowledged by developer. (Fri, 22 May 2020 18:03:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 41457-done <at> debbugs.gnu.org,
 Matias Jose Seco Baccanelli <matias_jose_seco <at> autoproduzioni.net>
Subject: Re: bug#41457: guix pull: channel d8feee9 - extraneous field
 initializers (sha256)
Date: Fri, 22 May 2020 20:01:56 +0200
Hi,

Ricardo Wurmus <rekado <at> elephly.net> skribis:

> [rwurmus <at> bimsb-sys02.mdc-berlin.net:~/code/guix] (1005) $ ~/.config/guix/current/bin/guix pull
> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> Building from this channel:
>   guix      https://git.savannah.gnu.org/git/guix.git	cd5d5f5
> Computing Guix derivation for 'x86_64-linux'...  ice-9/psyntax.scm:1585:32: In procedure expand-macro:
> Syntax error:
> unknown location: %origin: extraneous field initializers (sha256) in form (%origin (method url-fetch) (uri (string-append "mirror://gnu/bash/bash-" version ".tar.gz")) (sha256 (base32 "0kgvfwqdcd90waczf4gx39xnrxzijhjrzyzv7s8v4w31qqm0za5l")) (patch-flags (quote ("-p0"))) (patches (cons (search-patch "bash-linux-pgrp-pipe.patch") %patch-series-5.0)))
> -guix pull: error: You found a bug: the program '/gnu/store/fsch1y8hilmkg21rmgk256j3wfi2w7wk-compute-guix-derivation'
> failed to compute the derivation for Guix (version: "cd5d5f53228fd5bf96d9f790aa2606ae71fa68d7"; system: "x86_64-linux";
> host version: "be0ecfb1787b9e6954bf745bceeb1b9d2669d51a"; pull-version: 1).
> Please report it by email to <bug-guix <at> gnu.org>.

Good news, this is fixed by 50ea3135e0948a042cd3b899e970f6ade291a0c2!

As noted in the commit log, this issue stemmed from a change in
#:autoload semantics in Guile 3.0.  In 3.0, the line:

  #:autoload (gcrypt hash) (port-sha256)

means that only ‘port-sha256’ is imported.  Conversely, in 2.2 (which is
the Guile version used by the ‘compute-guix-derivation’ program above),
that #:autoload line means that all the (gcrypt hash) bindings are
imported.  That includes the ‘sha256’ bindings, which would thus prevent
matching the ‘sha256’ literal in the ‘origin-compatibility-helper’
macro.  Terrible!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#41457; Package guix. (Fri, 22 May 2020 18:50:02 GMT) Full text and rfc822 format available.

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

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: ludo <at> gnu.org
Cc: 41457 <at> debbugs.gnu.org
Subject: Re: bug#41457: guix pull: channel d8feee9 - extraneous field
 initializers (sha256)
Date: Fri, 22 May 2020 20:49:18 +0200
Ludovic Courtès writes:

Hello,

> Good news, this is fixed by 50ea3135e0948a042cd3b899e970f6ade291a0c2!
>
> As noted in the commit log, this issue stemmed from a change in
> #:autoload semantics in Guile 3.0.  In 3.0, the line:
>
>   #:autoload (gcrypt hash) (port-sha256)
>
> means that only ‘port-sha256’ is imported.  Conversely, in 2.2 (which is
> the Guile version used by the ‘compute-guix-derivation’ program above),
> that #:autoload line means that all the (gcrypt hash) bindings are
> imported.  That includes the ‘sha256’ bindings, which would thus prevent
> matching the ‘sha256’ literal in the ‘origin-compatibility-helper’
> macro.  Terrible!

Huh?  I just used #:autoload for the first time (in the native
qemu-image patch thaw way may not be using after all ...) and so I just
read the documentation.

]I am pretty sure that t]The 3.0 documentation says that "when a module
is autoloaded, all symbols become available"?

    http://git.savannah.gnu.org/cgit/guile.git/tree/doc/ref/api-modules.texi#n298

So...what's going on here?

janneke

-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com




Information forwarded to bug-guix <at> gnu.org:
bug#41457; Package guix. (Fri, 22 May 2020 20:15:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jan Nieuwenhuizen <janneke <at> gnu.org>
Cc: 41457 <at> debbugs.gnu.org
Subject: Re: bug#41457: guix pull: channel d8feee9 - extraneous field
 initializers (sha256)
Date: Fri, 22 May 2020 22:13:53 +0200
Hi,

Jan Nieuwenhuizen <janneke <at> gnu.org> skribis:

> ]I am pretty sure that t]The 3.0 documentation says that "when a module
> is autoloaded, all symbols become available"?
>
>     http://git.savannah.gnu.org/cgit/guile.git/tree/doc/ref/api-modules.texi#n298
>
> So...what's going on here?

Ah!  It’s an omission, fixed in Guile commit
723e483e7d88897f1ad654028e86a87dd040b886.

The changed was made late in the 2.9.x series, in commit
cb14fd214365e50b6b1655616ae74d0228933bbd, and later documented in
‘NEWS’.

Thanks for the heads-up!

Ludo’.




Merged 41449 41457. Request was from Ricardo Wurmus <rekado <at> elephly.net> to control <at> debbugs.gnu.org. (Sat, 23 May 2020 04:52:02 GMT) Full text and rfc822 format available.

Merged 41449 41457 41462. Request was from Tobias Geerinckx-Rice <me <at> tobias.gr> to control <at> debbugs.gnu.org. (Sat, 23 May 2020 12:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 21 Jun 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 303 days ago.

Previous Next


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