From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: 14890@debbugs.gnu.org
Subject: bug#14890: Wrong hash for tzdata
Date: Wed, 17 Jul 2013 12:23:26 +0200 [thread overview]
Message-ID: <87ppuhtrhd.fsf@gnu.org> (raw)
In-Reply-To: <201307171018.20213.andreas@enge.fr> (Andreas Enge's message of "Wed, 17 Jul 2013 10:18:20 +0200")
Andreas Enge <andreas@enge.fr> 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
> `08jzd8y2xkgd89wqrv3835pqr48yjabaczxr2rmg42zaykr11an0', instead has
> `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-tzdata2013d.tar.gz /home/ludo/src/guix/nix/scripts/substitute-binary
downloading `/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz' from `http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz'...
http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz 167.1 KiB transferred@ substituter-succeeded /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
$ sudo cat /nix/var/nix/substitute-binary/cache/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq
(narinfo (version 0) (date 1374056150) (value "StorePath: /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz\nURL: http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz\nCompression: bzip2\nFileHash: \nFileSize: \nNarHash: sha256:0x25a56v6j6xhmbbfl29f97ch4prfr9xsbbgw4r9p5dk9qw09wvv\nNarSize: 727152\nReferences: \nDeriver: j1c8v7bfpalq8vpk31pkazcczdgl52vq-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,
> but a .tar. It is identical to the decompressed file from the iana website.
What makes you think so? It’s a bzip2-compressed nar:
--8<---------------cut here---------------start------------->8---
$ wget -O tgz http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
--2013-07-17 12:19:28-- http://hydra.gnu.org/nar/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
[...]
2013-07-17 12:19:29 (171 KB/s) - ‘tgz’ saved [171109]
$ file tgz
tgz: bzip2 compressed data, block size = 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’.
next prev parent reply other threads:[~2013-07-17 10:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 8:18 bug#14890: Wrong hash for tzdata Andreas Enge
2013-07-17 8:24 ` Andreas Enge
2013-07-17 10:23 ` Ludovic Courtès [this message]
2013-07-17 12:12 ` Andreas Enge
2013-07-17 12:29 ` Ludovic Courtès
2013-07-17 12:23 ` Ludovic Courtès
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=87ppuhtrhd.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=14890@debbugs.gnu.org \
--cc=andreas@enge.fr \
/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).