From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#14890: Wrong hash for tzdata Date: Wed, 17 Jul 2013 12:23:26 +0200 Message-ID: <87ppuhtrhd.fsf@gnu.org> References: <201307171018.20213.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzOtw-0000KX-Pd for bug-guix@gnu.org; Wed, 17 Jul 2013 06:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzOtv-00051E-6X for bug-guix@gnu.org; Wed, 17 Jul 2013 06:24:04 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:37593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzOtv-000518-4T for bug-guix@gnu.org; Wed, 17 Jul 2013 06:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UzOtu-0003wP-H8 for bug-guix@gnu.org; Wed, 17 Jul 2013 06:24:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <201307171018.20213.andreas@enge.fr> (Andreas Enge's message of "Wed, 17 Jul 2013 10:18:20 +0200") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: 14890@debbugs.gnu.org Andreas Enge skribis: > $ guix build tzdata --no-substitutes -S > > ... > starting download of `/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq- > tzdata2013d.tar.gz' from `http://www.iana.org/time- > zones/repository/releases/tzdata2013d.tar.gz'... > http://www.iana.org/.../tzdata2013d.tar.gz 100.0% of 213.8 KiB > output path `/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq- > tzdata2013d.tar.gz' should have sha256 hash=20 > `08jzd8y2xkgd89wqrv3835pqr48yjabaczxr2rmg42zaykr11an0', instead has=20 > `011v63ppr73vhjgxv00inkn5pc7z48i8lhbapkpdq3kfczq9c76d' Hmm, works for me: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build tzdata -S The following file will be downloaded: /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz @ substituter-started /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata201= 3d.tar.gz /home/ludo/src/guix/nix/scripts/substitute-binary downloading `/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz= ' from `http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata201= 3d.tar.gz'... http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.g= z 167.1 KiB transferred@ substituter-succeeded /nix/store/gryg2h8lp3s8cc4z= gxw14yn7d0wgc9lq-tzdata2013d.tar.gz /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz $ sudo cat /nix/var/nix/substitute-binary/cache/gryg2h8lp3s8cc4zgxw14yn7d0w= gc9lq=20 (narinfo (version 0) (date 1374056150) (value "StorePath: /nix/store/gryg2h= 8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz\nURL: http://hydra.gnu.org/na= r/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz\nCompression: bzip2\n= FileHash: \nFileSize: \nNarHash: sha256:0x25a56v6j6xhmbbfl29f97ch4prfr9xsbb= gw4r9p5dk9qw09wvv\nNarSize: 727152\nReferences: \nDeriver: j1c8v7bfpalq8vpk= 31pkazcczdgl52vq-tzdata2013d.tar.gz.drv\nSystem: x86_64-linux\n")) --8<---------------cut here---------------end--------------->8--- > The file stored on hydra is > gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz > which has been decompressed before storage and is in fact not a .tar.gz,= =20 > but a .tar. It is identical to the decompressed file from the iana websit= e. What makes you think so? It=E2=80=99s a bzip2-compressed nar: --8<---------------cut here---------------start------------->8--- $ wget -O tgz http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzd= ata2013d.tar.gz --2013-07-17 12:19:28-- http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d= 0wgc9lq-tzdata2013d.tar.gz [...] 2013-07-17 12:19:29 (171 KB/s) - =E2=80=98tgz=E2=80=99 saved [171109] $ file tgz tgz: bzip2 compressed data, block size =3D 900k $ bunzip2 < tgz > nar $ grep nix-archive nar Binary file nar matches $ guile -c '(use-modules (guix nar)) (call-with-input-file "nar" (lambda (p= ) (restore-file p ",,out")))' $ file ,,out ,,out: POSIX tar archive (GNU) $ guix hash ,,out 08jzd8y2xkgd89wqrv3835pqr48yjabaczxr2rmg42zaykr11an0 --8<---------------cut here---------------end--------------->8--- Could it be that there was a transient networking failure or something? Thanks, Ludo=E2=80=99.