gprolog: hash mismatch

  • Done
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • phodina
  • zimoun
Owner
unassigned
Submitted by
zimoun
Severity
normal
Z
Z
zimoun wrote on 29 Mar 2021 19:14
(name . Bug Guix)(address . bug-guix@gnu.org)
CAJ3okZ3C7wgsuYAiD4mOA0wuMxsCfHtKg4hqF_=o1vyzAAa5Cw@mail.gmail.com
Hi,

Using Guix 55685e4, I get:

Toggle snippet (37 lines)
$ guix build -S --no-substitutes gprolog
The following derivation will be built:
/gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv
building /gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv...

Starting download of
/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
From http://gprolog.org/gprolog-1.4.5.tar.gz...
downloading from http://gprolog.org/gprolog-1.4.5.tar.gz ...
gprolog-1.4.5.tar.gz 3.4MiB 50.1MiB/s 00:00 [##################] 100.0%
sha256 hash mismatch for
/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz:
expected hash: 0z4cc42n3k6i35b8mr816iwsvrpxshw6d7dgz6s2h1hy0l7g1p5z
actual hash: 18mrmx44fll0g1qphadna9g6m7miw8d22lkjavah22vzc38kalyf
hash mismatch for store item
'/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz'
build of /gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv
failed
View build log at
'/var/log/guix/drvs/yj/rcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv.bz2'.
guix build: error: build of
`/gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv'
failed

$ guix build -S gprolog
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
3.6 MB will be downloaded:
/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
substituting /gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz...
downloading from
https://ci.guix.gnu.org/nar/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
...
gprolog-1.4.5.tar.gz 3.4MiB 5.9MiB/s 00:01 [##################] 100.0%

/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz

It is probably an upstream in-place replacement. This kind of thing is
really annoying because it means that people using substitutes do not
notice whereas people building from source do.


All the best,
simon
L
L
Ludovic Courtès wrote on 29 Mar 2021 23:37
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 47480@debbugs.gnu.org)
87h7ktljyv.fsf@gnu.org
Hi!

zimoun <zimon.toutoune@gmail.com> skribis:

Toggle quote (4 lines)
> It is probably an upstream in-place replacement. This kind of thing is
> really annoying because it means that people using substitutes do not
> notice whereas people building from source do.

Could you send a diff of the two tarballs?

Thanks,
Ludo’.
Z
Z
zimoun wrote on 30 Mar 2021 14:33
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 47480@debbugs.gnu.org)
861rbwhlce.fsf@gmail.com
Hi,

On Mon, 29 Mar 2021 at 23:37, Ludovic Courtès <ludo@gnu.org> wrote:
Toggle quote (8 lines)
> zimoun <zimon.toutoune@gmail.com> skribis:
>
>> It is probably an upstream in-place replacement. This kind of thing is
>> really annoying because it means that people using substitutes do not
>> notice whereas people building from source do.
>
> Could you send a diff of the two tarballs?

Hehe! I have opened the bug because I wanted to avoid to investigate
myself. ;-)

Basically, I think it is a classical upstream in-place replacement.


From upstream:

Toggle snippet (26 lines)
$ guix build -S gprolog --no-substitutes
The following derivation will be built:
/gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv
building /gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv...

Starting download of /gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
From http://gprolog.org/gprolog-1.4.5.tar.gz...
downloading from http://gprolog.org/gprolog-1.4.5.tar.gz ...
gprolog-1.4.5.tar.gz 3.4MiB 556KiB/s 00:06 [##################] 100.0%
sha256 hash mismatch for /gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz:
expected hash: 0z4cc42n3k6i35b8mr816iwsvrpxshw6d7dgz6s2h1hy0l7g1p5z
actual hash: 18mrmx44fll0g1qphadna9g6m7miw8d22lkjavah22vzc38kalyf
hash mismatch for store item '/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz'
build of /gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv failed
View build log at '/var/log/guix/drvs/yj/rcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv.bz2'.
guix build: error: build of `/gnu/store/yjrcalnckwmi1ah217xh85sd7ksjcxfw-gprolog-1.4.5.tar.gz.drv' failed

$ guix download http://gprolog.org/gprolog-1.4.5.tar.gz

Starting download of /tmp/guix-file.aqmcFI
From http://gprolog.org/gprolog-1.4.5.tar.gz...
gprolog-1.4.5.tar.gz 3.4MiB 557KiB/s 00:06 [##################] 100.0%
/gnu/store/59hpvhs8zk66g62yisx363fkl53svcnf-gprolog-1.4.5.tar.gz
18mrmx44fll0g1qphadna9g6m7miw8d22lkjavah22vzc38kalyf

From Guix CI:

Toggle snippet (10 lines)
$ guix hash $(guix build -S gprolog)
3.6 MB will be downloaded:
/gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
substituting /gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz...
downloading from https://ci.guix.gnu.org/nar/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz ...
gprolog-1.4.5.tar.gz 3.4MiB 559KiB/s 00:06 [##################] 100.0%

0z4cc42n3k6i35b8mr816iwsvrpxshw6d7dgz6s2h1hy0l7g1p5z

Then, let get the content:

Toggle snippet (7 lines)
$ tar -xf /gnu/store/59hpvhs8zk66g62yisx363fkl53svcnf-gprolog-1.4.5.tar.gz
$ mv gprolog-1.4.5 from-upstream

$ tar -xf /gnu/store/wm72f18w1gvshkz39yp12vnmnkkib79k-gprolog-1.4.5.tar.gz
$ mv gprolog-1.4.5 from-ci

and show which files are differing:

Toggle snippet (21 lines)
$ diff -r --no-dereference from-{ci,upstream}
diff -r --no-dereference from-ci/ChangeLog from-upstream/ChangeLog
diff -r --no-dereference from-ci/doc/copyright.tex from-upstream/doc/copyright.tex
Binary files from-ci/doc/gprolog.dvi and from-upstream/doc/gprolog.dvi differ
diff -r --no-dereference from-ci/doc/gprolog.html from-upstream/doc/gprolog.html
Binary files from-ci/doc/gprolog.pdf and from-upstream/doc/gprolog.pdf differ
diff -r --no-dereference from-ci/doc/gprolog.ps from-upstream/doc/gprolog.ps
diff -r --no-dereference from-ci/doc/html_node/gprolog001.html from-upstream/doc/html_node/gprolog001.html

[...]

diff -r --no-dereference from-ci/doc/html_node/gprolog073.html from-upstream/doc/html_node/gprolog073.html
diff -r --no-dereference from-ci/doc/html_node/gprolog-idx.html from-upstream/doc/html_node/gprolog-idx.html
diff -r --no-dereference from-ci/doc/html_node/index.html from-upstream/doc/html_node/index.html
diff -r --no-dereference from-ci/NEWS from-upstream/NEWS
diff -r --no-dereference from-ci/src/EnginePl/gp_config.h from-upstream/src/EnginePl/gp_config.h
diff -r --no-dereference from-ci/src/EnginePl/gprolog_cst.h from-upstream/src/EnginePl/gprolog_cst.h
diff -r --no-dereference from-ci/src/Ma2Asm/x86_64_any.c from-upstream/src/Ma2Asm/x86_64_any.c
diff -r --no-dereference from-ci/src/Wam2Ma/wam2ma.c from-upstream/src/Wam2Ma/wam2ma.c

Basically, most seems a Copyright update and a documentation
regeneration. Except this:

Toggle snippet (20 lines)
$ diff -r --no-dereference from-ci/src/Ma2Asm/x86_64_any.c from-upstream/src/Ma2Asm/x86_64_any.c
213,214c213,216
< #if defined(M_x86_64_darwin) || defined(M_x86_64_bsd) || defined(M_x86_64_linux)
< pic_code = 1; /* NB: on darwin and BSD everything is PIC code, last gcc 6 needs this for linux */
---
> #if defined(M_x86_64_darwin) || defined(M_x86_64_bsd)
> pic_code = 1; /* NB: on darwin and BSD everything is PIC code */
> #elif defined(M_x86_64_linux) && __GNUC__ >= 6 /* gcc >= 6 needs PIC for linux */
> pic_code = 1;

$ diff -r --no-dereference from-ci/src/Wam2Ma/wam2ma.c from-upstream/src/Wam2Ma/wam2ma.c
514c514,516
< Syntax_Error("multifile or multifile expected");
---
> {
> Syntax_Error("multifile or multifile expected");
> }


Cheers,
simon
L
L
Ludovic Courtès wrote on 30 Mar 2021 22:16
(name . zimoun)(address . zimon.toutoune@gmail.com)(address . 47480@debbugs.gnu.org)
87h7kscs84.fsf@gnu.org
Hi!

zimoun <zimon.toutoune@gmail.com> skribis:

Toggle quote (21 lines)
> Basically, most seems a Copyright update and a documentation
> regeneration. Except this:
>
> $ diff -r --no-dereference from-ci/src/Ma2Asm/x86_64_any.c from-upstream/src/Ma2Asm/x86_64_any.c
> 213,214c213,216
> < #if defined(M_x86_64_darwin) || defined(M_x86_64_bsd) || defined(M_x86_64_linux)
> < pic_code = 1; /* NB: on darwin and BSD everything is PIC code, last gcc 6 needs this for linux */
> ---
>> #if defined(M_x86_64_darwin) || defined(M_x86_64_bsd)
>> pic_code = 1; /* NB: on darwin and BSD everything is PIC code */
>> #elif defined(M_x86_64_linux) && __GNUC__ >= 6 /* gcc >= 6 needs PIC for linux */
>> pic_code = 1;
>
> $ diff -r --no-dereference from-ci/src/Wam2Ma/wam2ma.c from-upstream/src/Wam2Ma/wam2ma.c
> 514c514,516
> < Syntax_Error("multifile or multifile expected");
> ---
>> {
>> Syntax_Error("multifile or multifile expected");
>> }

Bah, sadness.

Anyway, I guess that means we can update the hash, with a link to this
report for posterity.

Thanks,
Ludo’.
Z
Z
zimoun wrote on 2 Jul 2021 18:48
control message for bug #47480
(address . control@debbugs.gnu.org)
87wnq8ll0y.fsf@gmail.com
tags 47480 + easy
quit
P
P
phodina wrote on 4 Nov 2021 21:53
Re: logo gprolog: hash mismatch
(name . 47480-done@debbugs.gnu.org)(address . 47480-done@debbugs.gnu.org)
hCHo5J4qlnJRTziddnPhwxw8yhQeNerDi24vQJ_iYgUyL3fBPE01WoLeY0cDSZTYOiacdIUu6AvHg_Jbz0MLhiu6l80i4igiB913UHJ4XCs=@protonmail.com
Hi,

I've looked at the package gprolog and it was updated by Efraim Flashner in commit
1914d24b452ca6dad30fad6f1faa5f611fa740b0 to version 1.5.0.

There's a note saying "Recent versions are not hosted on the GNU mirrors".

Petr
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 47480@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 47480
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch