unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53326: snap: Fails to build (hash mismatch)
@ 2022-01-17 20:13 Ivan Vilata i Balaguer
  2022-01-17 23:41 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Vilata i Balaguer @ 2022-01-17 20:13 UTC (permalink / raw)
  To: 53326

[-- Attachment #1: Type: text/plain, Size: 3246 bytes --]

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/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#53326: snap: Fails to build (hash mismatch)
  2022-01-17 20:13 bug#53326: snap: Fails to build (hash mismatch) Ivan Vilata i Balaguer
@ 2022-01-17 23:41 ` Nicolas Goaziou
  2022-01-18  8:02   ` Maxime Devos
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2022-01-17 23:41 UTC (permalink / raw)
  To: Ivan Vilata i Balaguer; +Cc: 53326-done

Hello,

Ivan Vilata i Balaguer <ivan@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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#53326: snap: Fails to build (hash mismatch)
  2022-01-17 23:41 ` Nicolas Goaziou
@ 2022-01-18  8:02   ` Maxime Devos
       [not found]     ` <87o849fadb.fsf@nicolasgoaziou.fr>
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2022-01-18  8:02 UTC (permalink / raw)
  To: Nicolas Goaziou, Ivan Vilata i Balaguer; +Cc: 53326

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

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


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#53326: snap: Fails to build (hash mismatch)
       [not found]     ` <87o849fadb.fsf@nicolasgoaziou.fr>
@ 2022-01-20 18:37       ` Maxime Devos
  2022-01-20 23:10         ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2022-01-20 18:37 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 53326

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

Nicolas Goaziou schreef op di 18-01-2022 om 14:21 [+0100]:
> Hello,
> 
> Maxime Devos <maximedevos@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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#53326: snap: Fails to build (hash mismatch)
  2022-01-20 18:37       ` Maxime Devos
@ 2022-01-20 23:10         ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2022-01-20 23:10 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 53326

Hello,

Maxime Devos <maximedevos@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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-20 23:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 20:13 bug#53326: snap: Fails to build (hash mismatch) Ivan Vilata i Balaguer
2022-01-17 23:41 ` Nicolas Goaziou
2022-01-18  8:02   ` Maxime Devos
     [not found]     ` <87o849fadb.fsf@nicolasgoaziou.fr>
2022-01-20 18:37       ` Maxime Devos
2022-01-20 23:10         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).