* rrdtool hash mismatch
@ 2023-04-12 18:47 Aleksandr Vityazev
2023-04-12 21:12 ` Josselin Poiret
2023-04-13 9:52 ` Simon Tournier
0 siblings, 2 replies; 4+ messages in thread
From: Aleksandr Vityazev @ 2023-04-12 18:47 UTC (permalink / raw)
To: guix-devel
Hi,
rrdtool package has not been updated for several years and according to
ci.guix.gnu.org builds normally, but if you run:
./pre-inst-env guix build --no-substitutes --check --no-grafts rrdtool
it outputs an error
sha256 hash mismatch for /gnu/store/icyq4d3fsbbf2yw3dmg7cxgb05qzfd3q-rrdtool-1.7.2.tar.gz:
expected hash: 1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzmm6d1
actual hash: 029r3h7l06m3sy9q0hr2krvinhzkqvyl14wj7qjck79bm7rdvp48
which looks strange to me. Maybe it's not, but I haven't figured out
why?
--
Best regards,
Aleksandr Vityazev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rrdtool hash mismatch
2023-04-12 18:47 rrdtool hash mismatch Aleksandr Vityazev
@ 2023-04-12 21:12 ` Josselin Poiret
2023-04-13 9:52 ` Simon Tournier
1 sibling, 0 replies; 4+ messages in thread
From: Josselin Poiret @ 2023-04-12 21:12 UTC (permalink / raw)
To: Aleksandr Vityazev, guix-devel
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
Hi,
Aleksandr Vityazev <avityazev@posteo.org> writes:
> Hi,
>
> rrdtool package has not been updated for several years and according to
> ci.guix.gnu.org builds normally, but if you run:
>
> ./pre-inst-env guix build --no-substitutes --check --no-grafts rrdtool
>
> it outputs an error
> sha256 hash mismatch for /gnu/store/icyq4d3fsbbf2yw3dmg7cxgb05qzfd3q-rrdtool-1.7.2.tar.gz:
> expected hash: 1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzmm6d1
> actual hash: 029r3h7l06m3sy9q0hr2krvinhzkqvyl14wj7qjck79bm7rdvp48
>
> which looks strange to me. Maybe it's not, but I haven't figured out
> why?
The upstream-provided tarball has probably been changed on the server
without a version bump. The reason why you can still use it with
substitutes is that Guix just uses the version that's built with the old
tarball because we know its hash. When you try to download it from
upstream, Guix rightfully complains that the hash has changed and
refuses to go forward!
Best,
--
Josselin Poiret
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rrdtool hash mismatch
2023-04-12 18:47 rrdtool hash mismatch Aleksandr Vityazev
2023-04-12 21:12 ` Josselin Poiret
@ 2023-04-13 9:52 ` Simon Tournier
2023-04-13 9:59 ` Simon Tournier
1 sibling, 1 reply; 4+ messages in thread
From: Simon Tournier @ 2023-04-13 9:52 UTC (permalink / raw)
To: Aleksandr Vityazev, guix-devel
Hi,
Details about Josselin’s message. :-)
On Wed, 12 Apr 2023 at 18:47, Aleksandr Vityazev <avityazev@posteo.org> wrote:
> it outputs an error
> sha256 hash mismatch for /gnu/store/icyq4d3fsbbf2yw3dmg7cxgb05qzfd3q-rrdtool-1.7.2.tar.gz:
> expected hash: 1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzmm6d1
> actual hash: 029r3h7l06m3sy9q0hr2krvinhzkqvyl14wj7qjck79bm7rdvp48
>
> which looks strange to me. Maybe it's not, but I haven't figured out
> why?
--8<---------------cut here---------------start------------->8---
$ guix hash $(guix build rrdtool -S)
1nsqra0g2nja19akmf9x5y9hhgc35ml3w9dcdz2ayz7zgvmzm6d1
$ guix download http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.7.2.tar.gz
Starting download of /tmp/guix-file.fZIYKs
From http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.7.2.tar.gz...
following redirection to `https://oss.oetiker.ch/rrdtool/pub/rrdtool-1.7.2.tar.gz'...
following redirection to `http://oss.oetiker.ch/rrdtool/404.var'...
following redirection to `https://oss.oetiker.ch/rrdtool/404.var'...
…7.2.tar.gz 5KiB 1.4MiB/s 00:00 [##################] 100.0%
/gnu/store/7jb5yxwg531d0xkwgv23wpf3w9fkb4x3-rrdtool-1.7.2.tar.gz
029r3h7l06m3sy9q0hr2krvinhzkqvyl14wj7qjck79bm7rdvp48
--8<---------------cut here---------------end--------------->8---
Ok, what’s the difference between the two:
--8<---------------cut here---------------start------------->8---
$ tar xvf /gnu/store/7jb5yxwg531d0xkwgv23wpf3w9fkb4x3-rrdtool-1.7.2.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
$ file /gnu/store/7jb5yxwg531d0xkwgv23wpf3w9fkb4x3-rrdtool-1.7.2.tar.gz
/gnu/store/7jb5yxwg531d0xkwgv23wpf3w9fkb4x3-rrdtool-1.7.2.tar.gz: HTML document, ASCII text
--8<---------------cut here---------------end--------------->8---
Ah, the new is not a tarball. Upstream changed their URL.
--8<---------------cut here---------------start------------->8---
$ cat /gnu/store/7jb5yxwg531d0xkwgv23wpf3w9fkb4x3-rrdtool-1.7.2.tar.gz
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
<link rel="icon" href="./inc/favicon.ico" type="image/ico" />
<title>RRDtool - Sorry this page does not exist
</title>
[...]
</body>
</html>
--8<---------------cut here---------------end--------------->8---
And as upstream is explaining on their website, the content of releases
is now hosted in GitHub.
https://oss.oetiker.ch/rrdtool/download.en.html
Well, Aleksandr, would you like to give a try for updating this change
in the Guix recipe?
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-13 10:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 18:47 rrdtool hash mismatch Aleksandr Vityazev
2023-04-12 21:12 ` Josselin Poiret
2023-04-13 9:52 ` Simon Tournier
2023-04-13 9:59 ` Simon Tournier
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).