GNU bug report logs -
#14890
Wrong hash for tzdata
Previous Next
Reported by: Andreas Enge <andreas <at> enge.fr>
Date: Wed, 17 Jul 2013 08:19:01 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14890 in the body.
You can then email your comments to 14890 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#14890
; Package
guix
.
(Wed, 17 Jul 2013 08:19:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Andreas Enge <andreas <at> enge.fr>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Wed, 17 Jul 2013 08:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
$ 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'
...
According to the iana web page, the file was released on July 5, while the
update of the package dates from July 7.
Andreas
Information forwarded
to
bug-guix <at> gnu.org
:
bug#14890
; Package
guix
.
(Wed, 17 Jul 2013 08:25:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 14890 <at> debbugs.gnu.org (full text, mbox):
Some more information:
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.
Andreas
Information forwarded
to
bug-guix <at> gnu.org
:
bug#14890
; Package
guix
.
(Wed, 17 Jul 2013 10:24:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14890 <at> debbugs.gnu.org (full text, mbox):
Andreas Enge <andreas <at> 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’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#14890
; Package
guix
.
(Wed, 17 Jul 2013 12:13:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 14890 <at> debbugs.gnu.org (full text, mbox):
Am Mittwoch, 17. Juli 2013 schrieb Ludovic Courtès:
> Hmm, works for me:
> $ ./pre-inst-env guix build tzdata -S
Yes, downloading the source from hydra works. The result is the file
/nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
but it is only a tar, non gzipped. (I was making assumptions about how
things are stored on hydra, which were apparently wrong. In any case, I end
up with a file in the store that is not compressed.)
$ guix build tzdata --no-substitutes -S
gives the error message.
And
$ guix download http://www.iana.org/time-
zones/repository/releases/tzdata2013d.tar.gz
outputs
/nix/store/75pgvyrgx8z1z534y9nk2rcr0x9rhfva-tzdata2013d.tar.gz
011v63ppr73vhjgxv00inkn5pc7z48i8lhbapkpdq3kfczq9c76d
The hash in the package description seems to be for the non-compressed
file, also stored on hydra, while the download tries to store the
compressed file, which has a different hash.
Andreas
Reply sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
You have taken responsibility.
(Wed, 17 Jul 2013 12:25:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Andreas Enge <andreas <at> enge.fr>
:
bug acknowledged by developer.
(Wed, 17 Jul 2013 12:25:05 GMT)
Full text and
rfc822 format available.
Message #19 received at 14890-done <at> debbugs.gnu.org (full text, mbox):
ludo <at> gnu.org (Ludovic Courtès) skribis:
>> 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.
[...]
> $ guile -c '(use-modules (guix nar)) (call-with-input-file "nar" (lambda (p) (restore-file p ",,out")))'
>
> $ file ,,out
> ,,out: POSIX tar archive (GNU)
Oh I see what you meant now. Sorry for being sleepy. ;-)
I just checked and the new tzdata is bit-for-bit the previous .tar, but
gzipped.
Commit 1855577 updates the hash.
Thanks!
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#14890
; Package
guix
.
(Wed, 17 Jul 2013 12:30:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 14890 <at> debbugs.gnu.org (full text, mbox):
Andreas Enge <andreas <at> enge.fr> skribis:
> Am Mittwoch, 17. Juli 2013 schrieb Ludovic Courtès:
>> Hmm, works for me:
>> $ ./pre-inst-env guix build tzdata -S
>
> Yes, downloading the source from hydra works. The result is the file
> /nix/store/gryg2h8lp3s8cc4zgxw14yn7d0wgc9lq-tzdata2013d.tar.gz
> but it is only a tar, non gzipped. (I was making assumptions about how
> things are stored on hydra, which were apparently wrong. In any case, I end
> up with a file in the store that is not compressed.)
Yeah, got it now.
That means there’s an intern (or not!) at IANA who had forgotten to gzip
the tarball, and just did that silently.
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 15 Aug 2013 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.