From: Leo Famulari <leo@famulari.name>
To: Zhu Zihao <all_but_last@163.com>
Cc: 46265@debbugs.gnu.org
Subject: bug#46265: Hash mismatch in the source of package cunit
Date: Tue, 2 Feb 2021 22:25:50 -0500 [thread overview]
Message-ID: <YBoXviECOGvMholr@jasmine.lan> (raw)
In-Reply-To: <864kitc2j5.fsf@163.com>
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
next prev parent reply other threads:[~2021-02-03 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 2:23 bug#46265: Hash mismatch in the source of package cunit Zhu Zihao
2021-02-03 3:25 ` Leo Famulari [this message]
2021-02-03 4:22 ` Zhu Zihao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YBoXviECOGvMholr@jasmine.lan \
--to=leo@famulari.name \
--cc=46265@debbugs.gnu.org \
--cc=all_but_last@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).