all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#14890: Wrong hash for tzdata
@ 2013-07-17  8:18 Andreas Enge
  2013-07-17  8:24 ` Andreas Enge
  2013-07-17 10:23 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Enge @ 2013-07-17  8:18 UTC (permalink / raw)
  To: 14890

$ 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#14890: Wrong hash for tzdata
  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
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Enge @ 2013-07-17  8:24 UTC (permalink / raw)
  To: 14890

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#14890: Wrong hash for tzdata
  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
  2013-07-17 12:12   ` Andreas Enge
  2013-07-17 12:23   ` Ludovic Courtès
  1 sibling, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2013-07-17 10:23 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 14890

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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#14890: Wrong hash for tzdata
  2013-07-17 10:23 ` Ludovic Courtès
@ 2013-07-17 12:12   ` Andreas Enge
  2013-07-17 12:29     ` Ludovic Courtès
  2013-07-17 12:23   ` Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Enge @ 2013-07-17 12:12 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 14890

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#14890: Wrong hash for tzdata
  2013-07-17 10:23 ` Ludovic Courtès
  2013-07-17 12:12   ` Andreas Enge
@ 2013-07-17 12:23   ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2013-07-17 12:23 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 14890-done

ludo@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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#14890: Wrong hash for tzdata
  2013-07-17 12:12   ` Andreas Enge
@ 2013-07-17 12:29     ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2013-07-17 12:29 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 14890

Andreas Enge <andreas@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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-07-17 12:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-07-17 12:12   ` Andreas Enge
2013-07-17 12:29     ` Ludovic Courtès
2013-07-17 12:23   ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.