Hash mismatch for /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids

  • Done
  • quality assurance status badge
Details
4 participants
  • Danny Milosavljevic
  • Tobias Geerinckx-Rice
  • Ricardo Wurmus
  • Vivien Kraus
Owner
unassigned
Submitted by
Vivien Kraus
Severity
normal

Debbugs page

Vivien Kraus wrote 7 years ago
(address . bug-guix@gnu.org)
1521587434.1118.4.camel@planete-kraus.eu
Hello,

I tried to install gnome with guix, but it fails when building this:

Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
usb.ids
ds?revision=1.551...
 ....ids  4KiB                            0B/s 00:00
[                ....ids  4KiB                        274KiB/s 00:00
[############### ....ids  4KiB                        259KiB/s 00:00
[##################] 100.0%
sha256 hash mismatch for output path
`/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
  expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
  actual:   10mcg24vdvbbm9lk2scrfs7ff7n2a0dkl2qlkzzllhn53yyrvkc6
cannot build derivation `/gnu/store/y7ahn1vd09phqxpz5shgwdggl41rd70a-
libosinfo-1.0.0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/9h84d02l7d8n9l0n0mnqj2294nzmk4wk-
tracker-1.12.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/ckf5yv041kdm0barjv0ksg1hq0hvizy9-
nautilus-3.26.2.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/0c0mkrgwrg4v70gn2rrcqrgk6b7l13g3-
gnome-3.24.3.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of
`/gnu/store/0c0mkrgwrg4v70gn2rrcqrgk6b7l13g3-gnome-3.24.3.drv' failed

What should I do about this? Should I trust this? If so, how should I
proceed?

Regards,

Vivien
Danny Milosavljevic wrote 7 years ago
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30890@debbugs.gnu.org)
20180321011939.745ddd1b@scratchpost.org
Hi,

apparently linux-usb sourceforge switched over to SVN - so what you are getting
there is an error page.

Possible fix would be:

Toggle diff (13 lines)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 55a92eca0..be8a8bb86 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -280,7 +280,7 @@ server and embedded PowerPC, and S390 guests.")
("usb.ids"
,(origin
(method url-fetch)
- (uri "http://linux-usb.cvs.sourceforge.net/viewvc/linux-usb/htdocs/usb.ids?revision=1.551")
+ (uri "https://svn.code.sf.net/p/linux-usb/repo/trunk/htdocs/usb.ids?r=1551")
(file-name "usb.ids")
(sha256
(base32
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlqxpRsACgkQ5xo1VCww
uqVHRQf/fYqSuDjHrk0XP0Zja6OoossBTOUXIZZogxg2q9LaEWh5L8bOX7ISAIjC
IU9MbK+gmpkBDgvt/oBuP1gw5F5SwigcyZ5dhpLWJ01ZSzDbFq6YuwkXoIdVuVre
xIo2HZbf84v/D2Hr3i1mRuTKLqrY6/wmy69vwHtOsoTuZ81j/KL7URoP8bTu7dMc
aCFPMiOTUUKkMHvEreId8zg2jiTWFp/6EavZmtvEb+x4AgSfcgLKbrZ3xoTk0Whc
HuaYYw/zKxPNs/7jNOB/MUKDmfQNPXRxoqH4wJR46sK5IY7vacx91ZDn/OQ8y3TX
jX19cXPodgcYA4UHN9Brn8/FvkdcPg==
=SmG1
-----END PGP SIGNATURE-----


Ricardo Wurmus wrote 7 years ago
bug#30890: Hash mismatch for /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
87a7v1dh2o.fsf@elephly.net
Hi,

I tested the fix and it worked fine for me.

Fixed in 0def91208 on master.

Thanks!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
Closed
Ricardo Wurmus wrote 7 years ago
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)
874ll9d6px.fsf@elephly.net
Hi Vivien,

Toggle quote (22 lines)
> I have just finished guix pulling again and the hash is not right:
>
> Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
> usb.ids
> From https://svn.code.sf.net/p/linux-usb/repo/trunk/htdocs/usb.ids?r=15
> 51...
> following redirection to `http://svn.code.sf.net/p/linux-usb/repo/trunk
> /htdocs/usb.ids?p=1551'...
> usb.ids97KiB136KiB/s 00:01
> [##################] 100.0%
> sha256 hash mismatch for output path
> `/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
> expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
> actual:1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5
> cannot build derivation `/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-
> libosinfo-1.0.0.drv': 1 dependencies couldn't be built
> guix package: error: build failed: build of
> `/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-libosinfo-1.0.0.drv'
> failed
>
> Did you have a problem with the hash?

Odd. No, I downloaded it without problems and the hash was fine. Now I
cannot access the URL any more. Could it be more problems with
sourceforge (again)?

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
Closed
Vivien Kraus wrote 7 years ago
(address . bug-guix@gnu.org)
1521630316.1118.45.camel@planete-kraus.eu
Hello,

I am not sure that my mails reach debbugs.gnu.org...

g=30890, it still does not work:

Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
usb.ids
51...
/htdocs/usb.ids?p=1551'...
 usb.ids  97KiB                       136KiB/s 00:01
[##################] 100.0%
sha256 hash mismatch for output path
`/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
  expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
  actual:   1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5
cannot build derivation `/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-
libosinfo-1.0.0.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of
`/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-libosinfo-1.0.0.drv'
failed

Could someone confirm this hash?

Thanks,

Vivien

Le mercredi 21 mars 2018 à 00:10 +0100, Vivien Kraus a écrit :
Toggle quote (38 lines)
> Hello,
>
> I tried to install gnome with guix, but it fails when building this:
>
> Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
> usb.ids
> From http://linux-usb.cvs.sourceforge.net/viewvc/linux-usb/htdocs/usb
> .i
> ds?revision=1.551...
>  ....ids  4KiB                            0B/s 00:00
> [                ....ids  4KiB                        274KiB/s 00:00
> [############### ....ids  4KiB                        259KiB/s 00:00
> [##################] 100.0%
> sha256 hash mismatch for output path
> `/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
>   expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
>   actual:   10mcg24vdvbbm9lk2scrfs7ff7n2a0dkl2qlkzzllhn53yyrvkc6
> cannot build derivation `/gnu/store/y7ahn1vd09phqxpz5shgwdggl41rd70a-
> libosinfo-1.0.0.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/9h84d02l7d8n9l0n0mnqj2294nzmk4wk-
> tracker-1.12.3.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/ckf5yv041kdm0barjv0ksg1hq0hvizy9-
> nautilus-3.26.2.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/0c0mkrgwrg4v70gn2rrcqrgk6b7l13g3-
> gnome-3.24.3.drv': 1 dependencies couldn't be built
> guix package: error: build failed: build of
> `/gnu/store/0c0mkrgwrg4v70gn2rrcqrgk6b7l13g3-gnome-3.24.3.drv' failed
>
> What should I do about this?  Should I trust this?  If so, how should
> I
> proceed?
>
> Regards,
>
> Vivien
>
>
>
Vivien Kraus wrote 7 years ago
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 30890@debbugs.gnu.org)
1521615280.1118.15.camel@planete-kraus.eu
Hello,

Thank you for your reply.  This new URL works, but the file version
does not meet the checksum.

Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
usb.ids
51...
/htdocs/usb.ids?p=1551'...
 usb.ids  97KiB                           0B/s 00:00
[                  usb.ids  97KiB                       153KiB/s 00:00
[###########       usb.ids  97KiB                       161KiB/s 00:01
[##################] 100.0%
sha256 hash mismatch for output path
`/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
  expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
  actual:   1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5
cannot build derivation `/gnu/store/qgxidn6qahyg52vgyiwjpq3k93kd5msb-
libosinfo-1.0.0.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of
`/gnu/store/qgxidn6qahyg52vgyiwjpq3k93kd5msb-libosinfo-1.0.0.drv'
failed

I don't know on what the hash depends; maybe it also depends on the
URL?  Should I change the hash in virtualization.scm?

Vivien

Le mercredi 21 mars 2018 à 01:19 +0100, Danny Milosavljevic a écrit :
Toggle quote (25 lines)
> Hi,
>
> apparently linux-usb sourceforge switched over to SVN - so what you
> are getting
> there is an error page.
>
> Possible fix would be:
>
> diff --git a/gnu/packages/virtualization.scm
> b/gnu/packages/virtualization.scm
> index 55a92eca0..be8a8bb86 100644
> --- a/gnu/packages/virtualization.scm
> +++ b/gnu/packages/virtualization.scm
> @@ -280,7 +280,7 @@ server and embedded PowerPC, and S390 guests.")
>         ("usb.ids"
>          ,(origin
>             (method url-fetch)
> -           (uri "http://linux-usb.cvs.sourceforge.net/viewvc/linux-u
> sb/htdocs/usb.ids?revision=1.551")
> +           (uri "https://svn.code.sf.net/p/linux-usb/repo/trunk/htdo
> cs/usb.ids?r=1551")
>             (file-name "usb.ids")
>             (sha256
>              (base32
>
Vivien Kraus wrote 7 years ago
(address . 30890-done@debbugs.gnu.org)
1521628548.1118.43.camel@planete-kraus.eu
Hello,

I have just finished guix pulling again and the hash is not right:

Starting download of /gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-
usb.ids
51...
/htdocs/usb.ids?p=1551'...
 usb.ids  97KiB                       136KiB/s 00:01
[##################] 100.0%
sha256 hash mismatch for output path
`/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
  expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
  actual:   1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5
cannot build derivation `/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-
libosinfo-1.0.0.drv': 1 dependencies couldn't be built
guix package: error: build failed: build of
`/gnu/store/a12yb6kqv3c6s79xf6l448jb4cs8pk7s-libosinfo-1.0.0.drv'
failed

Did you have a problem with the hash?

Vivien

Le mercredi 21 mars 2018 à 08:27 +0100, Ricardo Wurmus a écrit :
Toggle quote (8 lines)
> Hi,
>
> I tested the fix and it worked fine for me.
>
> Fixed in 0def91208 on master.
>
> Thanks!
>
Closed
Tobias Geerinckx-Rice wrote 7 years ago
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30890@debbugs.gnu.org)
23b57072e32640e410e6c3e06910ec54@debbugs.gnu.org
Vivien,

On 2018-03-21 12:05, Vivien Kraus wrote:
Toggle quote (2 lines)
> Could someone confirm this hash?

I can confirm both.

Toggle quote (5 lines)
> sha256 hash mismatch for output path
> `/gnu/store/bvbs19jg8497ca73i82xmrjspd83lvs2-usb.ids'
>   expected: 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3
>   actual:   1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5

Here's the beginning of a very long diff between those two:

--- 17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3 (old)
+++ 1wzkaan87ncx80hgddii01cqk5gw8mrm5kb2xf6w9fwa4h53gin5 (‘new’)
@@ -1,16 +1,10 @@
#
# List of USB ID's
#
-# Maintained by Stephen J. Gowdy <linux.usb.ids@gmail.com>
-# If you have any new entries, please submit them via
-# or send entries as patches (diff -u old new) in the
-# body of your email (a bot will attempt to deal with it).
-# The latest version can be obtained from
+# Maintained by Vojtech Pavlik <vojtech@suse.cz>
+# If you have any new entries, send them to the maintainer.
#
-# Version: 2017.02.12
-# Date: 2017-02-12 20:34:05
+# $Id: usb.ids,v 1.111 2003-01-02 13:05:30 vojtech Exp $

If those dates are at all reliable, we're now downloading a very old
copy. Which this suggests:

$ wc -l OLD NEW # ‘NEW’ being SVN upstream
20663 OLD
4043 NEW

I've not actually been following this thread so I don't know what that
means, but it looks like simply using the CVS revision as the SVN one
might not work.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.
Tobias Geerinckx-Rice wrote 7 years ago
(address . 30890@debbugs.gnu.org)
8ac104c5db290fd4c0e2f50157b47cbc@tobias.gr
I couldn't resist, of course.

On 2018-03-21 16:46, Tobias Geerinckx-Rice wrote:
Toggle quote (4 lines)
> I've not actually been following this thread so I don't know what that
> means, but it looks like simply using the CVS revision as the SVN one
> might not work.

The attached patch solves this by simply updating usb.ids to the latest
revision.

I'm building it on the slowest laptop I could find.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.
From 0d73f1481bf732147af7751a6ae58114bd3876db Mon Sep 17 00:00:00 2001
From: Tobias Geerinckx-Rice <me@tobias.gr>
Date: Wed, 21 Mar 2018 16:59:31 +0100
Subject: [PATCH 1/2] gnu: libosinfo: Update usb.ids.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This follows up commit 0def9120882f90372fd6bb2e80e8330d67745610, which
tried to use the CVS ID as the SVN revision, which unfortunately doesn't
work.

* gnu/packages/virtualization.scm (libosinfo)[native-inputs]: Update
revision and hash for ‘usb.ids’.
---
gnu/packages/virtualization.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (20 lines)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index 37bf09f23..de01e0163 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -281,11 +281,11 @@ server and embedded PowerPC, and S390 guests.")
("usb.ids"
,(origin
(method url-fetch)
- (uri "https://svn.code.sf.net/p/linux-usb/repo/trunk/htdocs/usb.ids?r=1551")
+ (uri "https://svn.code.sf.net/p/linux-usb/repo/trunk/htdocs/usb.ids?r=2681")
(file-name "usb.ids")
(sha256
(base32
- "17rg5i0wbyk289gr8v4kgvnc9q5bidz7ldcvv9x58l083wn16hq3"))))))
+ "1m6yhvz5k8aqzxgk7xj3jkk8frl1hbv0h3vgj4wbnvnx79qnvz3r"))))))
(home-page "https://libosinfo.org/")
(synopsis "Operating system information database")
(description "libosinfo is a GObject based library API for managing
--
2.15.1
Vivien Kraus wrote 7 years ago
1521651704.1131.2.camel@planete-kraus.eu
Hello,

Sorry for the mess with the mails. This new versions and its hash work
for me, thanks!

Vivien

Le mercredi 21 mars 2018 à 17:08 +0100, Tobias Geerinckx-Rice a écrit :
Toggle quote (20 lines)
> I couldn't resist, of course.
>
> On 2018-03-21 16:46, Tobias Geerinckx-Rice wrote:
> > I've not actually been following this thread so I don't know what
> > that
> > means, but it looks like simply using the CVS revision as the SVN
> > one
> > might not work.
>
> The attached patch solves this by simply updating usb.ids to the
> latest 
> revision.
>
> I'm building it on the slowest laptop I could find.
>
> Kind regards,
>
> T G-R
>
> Sent from a Web browser. Excuse or enjoy my brevity.
Tobias Geerinckx-Rice wrote 7 years ago
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30890@debbugs.gnu.org)
cff172c4687526dee816487bc7ce87fe@tobias.gr
Vivien,

On 2018-03-21 18:01, Vivien Kraus wrote:
Toggle quote (3 lines)
> Sorry for the mess with the mails. This new versions and its hash work
> for me, thanks!

I didn't notice a mess :-)

Works here too. Pushed as 0d73f1481bf732147af7751a6ae58114bd3876db.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.
Tobias Geerinckx-Rice wrote 7 years ago
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30890@debbugs.gnu.org)
bfcebf1f36f4b2924718efd1c010b55d@tobias.gr
Vivien,

On 2018-03-21 7:54, Vivien Kraus wrote:
Toggle quote (3 lines)
> I don't know on what the hash depends; maybe it also depends on the
> URL?

It depends only on the contents. This allows us to use a list of
different URIs (see the lsof package for an example) or try many
different mirror://s as long as they serve the right file.

Toggle quote (2 lines)
> Should I change the hash in virtualization.scm?

In general: yes, but not without prior investigation.

The server might be serving a temporary error page instead of a usable
tarball (SF.net is currently notorious for doing so), or the tarball
might have been updated in-place (and you'll have to manually diff the
contents to make sure it's legitimate), or it might just be a problem
with your network, or...

Pushing a hash update without explanation in the commit message will
result in lots of spam from people like me. Avoid that.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 30890@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 30890
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help