GNU bug report logs - #53326
snap: Fails to build (hash mismatch)

Previous Next

Package: guix;

Reported by: Ivan Vilata i Balaguer <ivan <at> selidor.net>

Date: Mon, 17 Jan 2022 20:14:02 UTC

Severity: normal

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 53326 in the body.
You can then email your comments to 53326 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#53326; Package guix. (Mon, 17 Jan 2022 20:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Vilata i Balaguer <ivan <at> selidor.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 17 Jan 2022 20:14:02 GMT) Full text and rfc822 format available.

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

From: Ivan Vilata i Balaguer <ivan <at> selidor.net>
To: bug-guix <at> gnu.org
Subject: snap: Fails to build (hash mismatch)
Date: Mon, 17 Jan 2022 21:13:44 +0100
[Message part 1 (text/plain, inline)]
Hi!  When trying to upgrade package `snap 6.9.0` from Guix commit `404f6953`
to `snap 7.0.3` from commit `4a943cfd`, the build fails with the following
output:

```
The following package will be upgraded:
   snap 6.9.0 -> 7.0.3

The following derivations will be built:
   /gnu/store/5r399grsmannnm1bxxnk5p35m9hcnvy6-profile.drv
   /gnu/store/m266r46jhbggn6vp0y6vqj62hb2z3kfs-snap-7.0.3.drv
   /gnu/store/8sw6g5r83nh2x1pnsqxzz0073q47vrf6-snap-7.0.3-checkout.drv

building /gnu/store/8sw6g5r83nh2x1pnsqxzz0073q47vrf6-snap-7.0.3-checkout.drv...
\r:sha256 hash mismatch for /gnu/store/6b47h0yqs6c1w2yylwlhzbn9w4kr31cr-snap-7.0.3-checkout:
  expected hash: 0wqncxqin9g4y15i82qscz0v2fc1br68m6dx47jn4h4kjkmwxccb
  actual hash:   0l4gws2x9rcgpj9h2wrri3sa4sn3j0q5648jpspyiwlwallp6gbv
hash mismatch for store item '/gnu/store/6b47h0yqs6c1w2yylwlhzbn9w4kr31cr-snap-7.0.3-checkout'
build of /gnu/store/8sw6g5r83nh2x1pnsqxzz0073q47vrf6-snap-7.0.3-checkout.drv failed
View build log at '/var/log/guix/drvs/8s/w6g5r83nh2x1pnsqxzz0073q47vrf6-snap-7.0.3-checkout.drv.bz2'.
cannot build derivation `/gnu/store/m266r46jhbggn6vp0y6vqj62hb2z3kfs-snap-7.0.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/5r399grsmannnm1bxxnk5p35m9hcnvy6-profile.drv': 1 dependencies couldn't be built
guix package: error: build of `/gnu/store/5r399grsmannnm1bxxnk5p35m9hcnvy6-profile.drv' failed
```

The contents of `/var/log/guix/drvs/8s/w6g5r83nh2x1pnsqxzz0073q47vrf6-snap-7.0.3-checkout.drv.bz2` are:

```
guile: warning: failed to install locale
environment variable `PATH' set to `/gnu/store/9q9z91mvc1r3h8zmi135msv3j1dgv2js-gzip-1.10/bin:/gnu/store/z3vphwqzvihprnwgb99gra8xnf0hl9yr-tar-1.34/bin'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint: 	git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint: 	git branch -m <name>
Initialized empty Git repository in /gnu/store/6b47h0yqs6c1w2yylwlhzbn9w4kr31cr-snap-7.0.3-checkout/.git/
From https://github.com/jmoenig/Snap
 * tag               v7.0.3     -> FETCH_HEAD
Note: switching to 'FETCH_HEAD'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 14f468c improved arity control for JOIN
```

Maybe the upstream Snap maintainer changed the repo commit where the tag
`v7.0.3` points at after the Guix package definition was updated?

Thanks!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/
[signature.asc (application/pgp-signature, inline)]

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Mon, 17 Jan 2022 23:42:02 GMT) Full text and rfc822 format available.

Notification sent to Ivan Vilata i Balaguer <ivan <at> selidor.net>:
bug acknowledged by developer. (Mon, 17 Jan 2022 23:42:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Ivan Vilata i Balaguer <ivan <at> selidor.net>
Cc: 53326-done <at> debbugs.gnu.org
Subject: Re: bug#53326: snap: Fails to build (hash mismatch)
Date: Tue, 18 Jan 2022 00:41:21 +0100
Hello,

Ivan Vilata i Balaguer <ivan <at> selidor.net> writes:

> Hi!  When trying to upgrade package `snap 6.9.0` from Guix commit `404f6953`
> to `snap 7.0.3` from commit `4a943cfd`, the build fails with the following
> output:

[...]

> Maybe the upstream Snap maintainer changed the repo commit where the tag
> `v7.0.3` points at after the Guix package definition was updated?

It looks like so, because I'm pretty sure I tested it when I bumped it
to 7.0.3.

In any case, I updated it to 7.0.5. Hopefully, it now builds. Thank you
for the report.

Regards,
-- 
Nicolas Goaziou




Information forwarded to bug-guix <at> gnu.org:
bug#53326; Package guix. (Tue, 18 Jan 2022 08:03:02 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>, Ivan Vilata i Balaguer
 <ivan <at> selidor.net>
Cc: 53326 <at> debbugs.gnu.org
Subject: Re: bug#53326: snap: Fails to build (hash mismatch)
Date: Tue, 18 Jan 2022 08:02:57 +0000
[Message part 1 (text/plain, inline)]
Nicolas Goaziou schreef op di 18-01-2022 om 00:41 [+0100]:
> Maybe the upstream Snap maintainer changed the repo commit where the
> tag
> `v7.0.3` points at after the Guix package definition was updated?

It looks like so, because I'm pretty sure I tested it when I bumped it
to 7.0.3.

In any case, I updated it to 7.0.5. Hopefully, it now builds. Thank you
for the report.

Since 'snap' has a history of mutating tags in-place, maybe it would
would be a good idea to replace (string-append "v" version) with the
actual commit string (and not a tag name), to avoid future breakage
and help "guix time-machine" users?

Greetings,
Maxime

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53326; Package guix. (Thu, 20 Jan 2022 18:39:01 GMT) Full text and rfc822 format available.

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

From: Maxime Devos <maximedevos <at> telenet.be>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 53326 <at> debbugs.gnu.org
Subject: Re: bug#53326: snap: Fails to build (hash mismatch)
Date: Thu, 20 Jan 2022 19:37:54 +0100
[Message part 1 (text/plain, inline)]
Nicolas Goaziou schreef op di 18-01-2022 om 14:21 [+0100]:
> Hello,
> 
> Maxime Devos <maximedevos <at> telenet.be> writes:
> 
> > Since 'snap' has a history of mutating tags in-place, maybe it would
> > would be a good idea to replace (string-append "v" version) with the
> > actual commit string (and not a tag name), to avoid future breakage
> > and help "guix time-machine" users?
> 
> AFAIK, this is the first time it happens for this project. I'd rather
> keep tags for now and revisit that decision if it happens again.
> 
> WDYT?

Personally, I would change to commits after the first time it happens,
to avoid having to keep count.

Anyway, I asked upstream <https://github.com/jmoenig/Snap/issues/2966>
whether this will happen again.  Let's wait for a response?

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53326; Package guix. (Thu, 20 Jan 2022 23:11:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 53326 <at> debbugs.gnu.org
Subject: Re: bug#53326: snap: Fails to build (hash mismatch)
Date: Fri, 21 Jan 2022 00:10:03 +0100
Hello,

Maxime Devos <maximedevos <at> telenet.be> writes:

> Anyway, I asked upstream <https://github.com/jmoenig/Snap/issues/2966>
> whether this will happen again.  Let's wait for a response?

Upstream answered. It was an exception. So I guess all is fine.

Thanks for bringing it up to upstream.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Feb 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 68 days ago.

Previous Next


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