GNU bug report logs - #46265
Hash mismatch in the source of package cunit

Previous Next

Package: guix;

Reported by: Zhu Zihao <all_but_last <at> 163.com>

Date: Wed, 3 Feb 2021 02:40:01 UTC

Severity: normal

Done: Zhu Zihao <all_but_last <at> 163.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo Famulari <leo <at> famulari.name>
To: Zhu Zihao <all_but_last <at> 163.com>
Cc: 46265 <at> debbugs.gnu.org
Subject: bug#46265: Hash mismatch in the source of package cunit
Date: Tue, 2 Feb 2021 22:25:50 -0500
On Wed, Feb 03, 2021 at 10:23:42AM +0800, Zhu Zihao wrote:
> 
> building /gnu/store/qgri8w2rw585wc9npnbb2nd9qvj6szzs-CUnit-2.1-3.tar.bz2.drv...
> 
> Starting download of /gnu/store/vzq31539zql9s23708sbcrwb51lpwjf7-CUnit-2.1-3.tar.bz2
> From http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2...
> following redirection to `https://downloads.sourceforge.net/#!/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2'...
> downloading from http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2 ...
>  CUnit-2.1-3.tar.bz2  746B            2.4MiB/s 00:00 [##################] 100.0%
> sha256 hash mismatch for /gnu/store/vzq31539zql9s23708sbcrwb51lpwjf7-CUnit-2.1-3.tar.bz2:
>   expected hash: 057j82da9vv4li4z5ri3227ybd18nzyq81f6gsvhifs5z0vr3cpm
>   actual hash:   1vc97w0kvchxzlf0v7nn1fzx7pi0ih29cdqd6r7rg1y6parqa6i5

Since it is downloaded over HTTP (unauthenticated), it could be
anything. 746 bytes is really small.

Maybe we can change the Sourceforge URLs used by Guix to avoid
redirecting to an HTTP URL.

From here, it works okay:

------
$ guix download http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2

Starting download of /tmp/guix-file.29mS0e
From http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2...
following redirection to `https://managedway.dl.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2'...
 …-3.tar.bz2  502KiB                                                                                                                                  2.4MiB/s 00:00 [##################] 100.0%
/gnu/store/vzq31539zql9s23708sbcrwb51lpwjf7-CUnit-2.1-3.tar.bz2
057j82da9vv4li4z5ri3227ybd18nzyq81f6gsvhifs5z0vr3cpm
------

If you want, you could save the downloaded file for inspection:

$ guix download -o cunit.tar.bz2 http://downloads.sourceforge.net/project/cunit/CUnit/2.1-3/CUnit-2.1-3.tar.bz2




This bug report was last modified 4 years and 172 days ago.

Previous Next


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