From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: brettg@posteo.net
Cc: 33235-done@debbugs.gnu.org
Subject: bug#33235: Bzip hash error
Date: Fri, 2 Nov 2018 12:07:01 +0100 [thread overview]
Message-ID: <20181102120701.0241332a@alma-ubu> (raw)
In-Reply-To: <951ed60730677d567e26ddbdba2e031a@posteo.net>
[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]
Hi brettg,
I tried with a fresh guixsd 0.15 install and can confirm your problem:
On Fri, 02 Nov 2018 04:33:10 +0100
brettg@posteo.net wrote:
> Hi Leo,
>
> Are you perhaps mistaken? the URL for bzip2 is bzip.org not bzip2.org
>
> Regardless, even when pulling from the archive I am still being given
> an incorrect hash.
$ guix build -S --no-substitutes bzip2
--> As you see it, there is a hash mismatch
That's because the URL expired and the new "archive.org/..." URL was
added in commit
7598b678fad2112ea87a85acf755908a59dd4676
Committer: Leo Famulari <leo@famulari.name> 2018-08-10 22:42:01
Which follows the 0.15.0 release.
If you then look into the log output and open that downloaded file:
less /gnu/store/...-bzip2-1.0.6.tar.gz
you see plain HTML. Of cause, that mismatches.
If there is an error while downloading (i.e. a 404 - not found) then
guix downloader would fallback and try to download the sources from
subistitute servers or even NixOS servers by hashsum. But as we get a
good HTTP return code here, it assumes everything is fine and saves to
the store, not trying anything else.
Now to download the sources from web.archive.org I needed these
steps:
# find out path of guix:
readlink `which guix`
# Then use that directory to authorize berlin:
guix archive --authorize
< /gnu/store/...-guix-0.15.0.../share/guix/berlin.guixsd.org.pub
#Install nss-certs for HTTPS access:
guix package -i nss-certs
# set environment variables, see 6.2.9 X.509 Certificates
export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
# Now download --with-source
guix build -S
--with-source="https://web.archive.org/web/20180624184835/http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz"
# This fails with a stacktrace "wrong type, expected struc", I can't
# copy it out of VM currently.
#
# Anyway, it downloads the sources and the next:
guix build -S bzip2
# does succeed.
Sorry for the inconveniences with substitutes missing, hope this brings
you a step further?
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2018-11-02 11:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-02 2:05 bug#33235: Bzip hash error brettg
2018-11-02 2:17 ` Leo Famulari
[not found] ` <d0d03b79be6d28b6302de4a7696b5134@posteo.net>
2018-11-02 3:09 ` Leo Famulari
2018-11-02 3:33 ` brettg
2018-11-02 5:02 ` Leo Famulari
2018-11-02 11:07 ` Björn Höfling [this message]
2018-11-02 20:12 ` brettg
[not found] ` <8b7a6f86f5707339261376a1cf5f6fbe@posteo.net>
2018-11-02 21:02 ` Björn Höfling
2018-11-02 13:40 ` swedebugia
2018-11-05 16:21 ` swedebugia
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181102120701.0241332a@alma-ubu \
--to=bjoern.hoefling@bjoernhoefling.de \
--cc=33235-done@debbugs.gnu.org \
--cc=brettg@posteo.net \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.