From mboxrd@z Thu Jan 1 00:00:00 1970 From: brettg@posteo.net Subject: bug#33235: Bzip hash error Date: Fri, 02 Nov 2018 21:12:30 +0100 Message-ID: <241727faddbe1060a58cae7be9180171@posteo.net> References: <756a584906ca9c9a577040677995b194@posteo.net> <20181102021701.GB19111@jasmine.lan> <20181102030929.GA25826@jasmine.lan> <951ed60730677d567e26ddbdba2e031a@posteo.net> <20181102120701.0241332a@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gIfod-0006en-6u for bug-guix@gnu.org; Fri, 02 Nov 2018 16:13:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gIfoZ-00062y-KA for bug-guix@gnu.org; Fri, 02 Nov 2018 16:13:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56150) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gIfoU-0005yO-H7 for bug-guix@gnu.org; Fri, 02 Nov 2018 16:13:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gIfoU-0003w6-82 for bug-guix@gnu.org; Fri, 02 Nov 2018 16:13:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20181102120701.0241332a@alma-ubu> 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: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Cc: 33235-done@debbugs.gnu.org Hi bjorn. Thank you your steps did help in getting it to build with the=20 appropairiate hash sums. However, how do I get the guix system init process to Use that version of the build we just made? It is still Wanting to use the incorrect substitute. On 02.11.2018 12:07, Bj=C3=B6rn H=C3=B6fling wrote: > Hi brettg, >=20 > I tried with a fresh guixsd 0.15 install and can confirm your problem: >=20 > On Fri, 02 Nov 2018 04:33:10 +0100 > brettg@posteo.net wrote: >=20 >> 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. >=20 > $ guix build -S --no-substitutes bzip2 >=20 > --> 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 >=20 > 7598b678fad2112ea87a85acf755908a59dd4676 > Committer: Leo Famulari 2018-08-10 22:42:01 >=20 > Which follows the 0.15.0 release. >=20 > If you then look into the log output and open that downloaded file: >=20 > less /gnu/store/...-bzip2-1.0.6.tar.gz >=20 > you see plain HTML. Of cause, that mismatches. >=20 > 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. >=20 > Now to download the sources from web.archive.org I needed these > steps: >=20 > # find out path of guix: > readlink `which guix` >=20 > # Then use that directory to authorize berlin: > guix archive --authorize > < /gnu/store/...-guix-0.15.0.../share/guix/berlin.guixsd.org.pub >=20 > #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=20 > SSL_CERT_FILE=3D"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt" >=20 > # Now download --with-source > guix build -S > --with-source=3D"https://web.archive.org/web/20180624184835/http://www.bz= ip.org/1.0.6/bzip2-1.0.6.tar.gz" >=20 > # 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: >=20 > guix build -S bzip2 >=20 > # does succeed. >=20 > Sorry for the inconveniences with substitutes missing, hope this brings > you a step further? >=20 > Bj=C3=B6rn