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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org, bug-strong-list <at> debbugs.gnu.org
Subject: bug#41457: closed (guix pull: channel d8feee9 - extraneous field
 initializers (sha256))
Date: Fri, 22 May 2020 18:03:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 22 May 2020 20:01:56 +0200
with message-id <878shjalwr.fsf <at> gnu.org>
and subject line Re: bug#41457: guix pull: channel d8feee9 - extraneous field initializers (sha256)
has caused the debbugs.gnu.org bug report #41457,
regarding guix pull: channel d8feee9 - extraneous field initializers (sha256)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
41457: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41457
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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’.


This bug report was last modified 5 years and 55 days ago.

Previous Next


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