From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#33235: Bzip hash error Date: Fri, 2 Nov 2018 12:07:01 +0100 Message-ID: <20181102120701.0241332a@alma-ubu> References: <756a584906ca9c9a577040677995b194@posteo.net> <20181102021701.GB19111@jasmine.lan> <20181102030929.GA25826@jasmine.lan> <951ed60730677d567e26ddbdba2e031a@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/0H69v_nnNI2sKu1jKcl7FKh"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIXJ8-0007CV-JF for bug-guix@gnu.org; Fri, 02 Nov 2018 07:08:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIXJ4-00012P-Jc for bug-guix@gnu.org; Fri, 02 Nov 2018 07:08:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIXJ4-00012E-Eu for bug-guix@gnu.org; Fri, 02 Nov 2018 07:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIXJ4-0003bx-8s for bug-guix@gnu.org; Fri, 02 Nov 2018 07:08:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <951ed60730677d567e26ddbdba2e031a@posteo.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: brettg@posteo.net Cc: 33235-done@debbugs.gnu.org --Sig_/0H69v_nnNI2sKu1jKcl7FKh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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, >=20 > Are you perhaps mistaken? the URL for bzip2 is bzip.org not bzip2.org >=20 > 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 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=3D"$HOME/.guix-profile/etc/ssl/certs" export SSL_CERT_FILE=3D"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.c= rt" # Now download --with-source guix build -S --with-source=3D"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. #=20 # 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=C3=B6rn --Sig_/0H69v_nnNI2sKu1jKcl7FKh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlvcL9UACgkQvyhstlk+X/3jwwCbB4iPWNGLBaipZo7fPb6ZAkdM n/wAn2SG9qL6L0oZ50esEIhTiyaVF6Yf =nQ6G -----END PGP SIGNATURE----- --Sig_/0H69v_nnNI2sKu1jKcl7FKh--