guix pull: channel d8feee9 - extraneous field initializers (sha256)

DoneSubmitted by Matias Jose Seco Baccanelli.
Details
5 participants
  • Jan Nieuwenhuizen
  • Ludovic Courtès
  • Matias Jose Seco Baccanelli
  • Tobias Geerinckx-Rice
  • Ricardo Wurmus
Owner
unassigned
Severity
serious
Merged with
M
M
Matias Jose Seco Baccanelli wrote 4 days ago
(address . bug-guix@gnu.org)
20200522121438.658271a5.matias_jose_seco@autoproduzioni.net
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 thischannel: guix https://git.savannah.gnu.org/git/guix.gitd8feee9 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) inform (%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@gnu.org>.
Available for further informations,saluti,Matias
R
R
Ricardo Wurmus wrote 4 days ago
(name . Matias Jose Seco Baccanelli)(address . matias_jose_seco@autoproduzioni.net)
87imgoc9du.fsf@elephly.net
Hi,
I can reproduce this:
Toggle snippet (25 lines)[rwurmus@bimsb-sys02.mdc-berlin.net:~/code/guix] (1005) $ ~/.config/guix/current/bin/guix pullUpdating 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 cd5d5f5Computing 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@gnu.org>.
[rwurmus@bimsb-sys02.mdc-berlin.net:~/code/guix] (1006) $ ~/.config/guix/current/bin/guix describeGeneration 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
It seems to be related to the commits betweenc7d2dd69004b020de5d86898d2497ab3c8435c37 and1ad5209d904d471ded6cf53b4e29b64e963dea3f.
I’m trying this now as a work-around:
~/.config/guix/current/bin/guix pull --commit=1ad5209d904d471ded6cf53b4e29b64e963dea3f
-- Ricardo
R
R
Ricardo Wurmus wrote 4 days ago
(address . control@debbugs.gnu.org)
87ftbsc9cq.fsf@elephly.net
severity 41457 seriousquit
L
L
Ludovic Courtès wrote 4 days ago
(name . Ricardo Wurmus)(address . rekado@elephly.net)
87mu609f5z.fsf@gnu.org
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 fromdf05842332be80ed7f53022402b95cf711163b41 tod8feee9f18ede0d1ea4d0e4876f09a0dab770295 just fine.
Ludo’.
L
L
Ludovic Courtès wrote 4 days ago
(name . Ricardo Wurmus)(address . rekado@elephly.net)
878shjalwr.fsf@gnu.org
Hi,
Ricardo Wurmus <rekado@elephly.net> skribis:
Toggle quote (12 lines)> [rwurmus@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@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 isthe Guile version used by the ‘compute-guix-derivation’ program above),that #:autoload line means that all the (gcrypt hash) bindings areimported. That includes the ‘sha256’ bindings, which would thus preventmatching the ‘sha256’ literal in the ‘origin-compatibility-helper’macro. Terrible!
Ludo’.
Closed
J
J
Jan Nieuwenhuizen wrote 4 days ago
(address . ludo@gnu.org)(address . 41457@debbugs.gnu.org)
87a71zx0sx.fsf@gnu.org
Ludovic Courtès writes:
Hello,
Toggle quote (14 lines)> 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 nativeqemu-image patch thaw way may not be using after all ...) and so I justread the documentation.
]I am pretty sure that t]The 3.0 documentation says that "when a moduleis 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@gnu.org> | GNU LilyPond http://lilypond.orgFreelance IT http://JoyofSource.com| Avatar® http://AvatarAcademy.com
L
L
Ludovic Courtès wrote 3 days ago
(name . Jan Nieuwenhuizen)(address . janneke@gnu.org)(address . 41457@debbugs.gnu.org)
871rnbafsu.fsf@gnu.org
Hi,
Jan Nieuwenhuizen <janneke@gnu.org> skribis:
Toggle quote (7 lines)> ]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 commit723e483e7d88897f1ad654028e86a87dd040b886.
The changed was made late in the 2.9.x series, in commitcb14fd214365e50b6b1655616ae74d0228933bbd, and later documented in‘NEWS’.
Thanks for the heads-up!
Ludo’.
R
R
Ricardo Wurmus wrote 3 days ago
Re: Processed (with 1 errors): Re: bug#41449: Bash package breaking guix build after hash system update
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
87a71zckza.fsf@elephly.net
severity 41449 seriousclose 41449merge 41457 41449quit
T
T
Tobias Geerinckx-Rice wrote 3 days ago
Re: Processed (with 1 errors): your mail
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
87a71yx37l.fsf@nckx
severity 41462 seriousmerge 41457 41462
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXskSfgAKCRANsP+IT1VteS9MAP983O2etSA4QUxLsAkra/94rbjk+A47EGwiSDTQHTfASwD/YZsp+w86KLOhqxvPGrikmwJMEFEGpTDI2EWDLHj0cAg==hRgF-----END PGP SIGNATURE-----
?