emacs-jsonrpc hash mismatch

  • Done
  • quality assurance status badge
Details
2 participants
  • Josselin Poiret
  • Fredrik Salomonsson
Owner
unassigned
Submitted by
Fredrik Salomonsson
Severity
normal
F
F
Fredrik Salomonsson wrote on 18 Sep 2022 02:35
(address . bug-guix@gnu.org)
874jx5wmd5.fsf@posteo.net
Hi,

After I did a guix pull emacs-jsonrpc fails to build. Getting this:

---?----------------------------------------------------------------------------
building /gnu/store/gbcl55whjaxbvipa8jk7k4jbihnccn2a-jsonrpc-1.0.15.tar.drv...
\sha256 hash mismatch for /gnu/store/6x4d5gd3hlml4kcgj9xcqwpjrgq3059f-jsonrpc-1.0.15.tar:
expected hash: 1hx378rg12jz2zm105cvrqk0nqyzsn04l59d903l98d6lbd96rsw
actual hash: 0biwvkvd48xqvigzs00yz4mk847xzyzm7p0lkns58fxph9nkg4h5
hash mismatch for store item '/gnu/store/6x4d5gd3hlml4kcgj9xcqwpjrgq3059f-jsonrpc-1.0.15.tar'
build of /gnu/store/gbcl55whjaxbvipa8jk7k4jbihnccn2a-jsonrpc-1.0.15.tar.drv failed
View build log at '/var/log/guix/drvs/gb/cl55whjaxbvipa8jk7k4jbihnccn2a-jsonrpc-1.0.15.tar.drv.gz'.
cannot build derivation `/gnu/store/j5vdxaxnh92qvf931axizfabk5y7x1k6-emacs-jsonrpc-1.0.15.drv': 1 dependencies couldn't be built
guix home: error: build of `/gnu/store/j5vdxaxnh92qvf931axizfabk5y7x1k6-emacs-jsonrpc-1.0.15.drv' failed
--------------------------------------------------------------------------------

After some investigating it doesn't look like the emacs-jsonrpc package description
has changed. Odd thing is that the source doesn't seem to have changed
either, I diffed it against the emacs-jsonrpc derivation I currently
have installed and both source files match.

I downloaded the source from elpa and checked the hash:
---?----------------------------------------------------------------------------
$ guix hash jsonrpc-1.0.15.tar
0biwvkvd48xqvigzs00yz4mk847xzyzm7p0lkns58fxph9nkg4h5
--------------------------------------------------------------------------------

And it matches the hash guix get as well and not what is in the package
definition.

I'm using:

guix ee0768c
branch: master
commit: ee0768c7924134f7b4b215670c2a3ae481268fab

Not sure what is going on. Or what is the best approach forward.

Any ideas what could be wrong?

--
s/Fred[re]+i[ck]+/Fredrik/g
J
J
Josselin Poiret wrote on 19 Sep 2022 23:38
87r1072gfz.fsf@jpoiret.xyz
Hi Frederik,

Fredrik Salomonsson <plattfot@posteo.net> writes:

Toggle quote (4 lines)
> Not sure what is going on. Or what is the best approach forward.
>
> Any ideas what could be wrong?

I downloaded the derivation and original source from ci using `guix
substitute --substitute` and compared the old and new .tar files using
diffoscope. It seems the new one only has more recent timestamps, thus
leading to a different hash. Maybe ELPA regenerates their archives,
like GitHub tarballs? One more example why we should prefer git-fetch
instead.

Best,
--
Josselin Poiret
F
F
Fredrik Salomonsson wrote on 20 Sep 2022 05:13
87tu5291r0.fsf@posteo.net
Hi Josselin,

Josselin Poiret <dev@jpoiret.xyz> writes:

Toggle quote (15 lines)
> Hi Frederik,
>
> Fredrik Salomonsson <plattfot@posteo.net> writes:
>
>> Not sure what is going on. Or what is the best approach forward.
>>
>> Any ideas what could be wrong?
>
> I downloaded the derivation and original source from ci using `guix
> substitute --substitute` and compared the old and new .tar files using
> diffoscope. It seems the new one only has more recent timestamps, thus
> leading to a different hash. Maybe ELPA regenerates their archives,
> like GitHub tarballs? One more example why we should prefer git-fetch
> instead.

Cool, did not know about diffoscope. It sounds like they did. I'll see
if I can create a patch that extracts jsonrpc from emacs' master branch.
To avoid this issue in the future.

--
s/Fred[re]+i[ck]+/Fredrik/g
F
F
Fredrik Salomonsson wrote on 20 Sep 2022 05:22
87r10691cs.fsf@posteo.net
Toggle quote (3 lines)
> I'll see if I can create a patch that extracts jsonrpc from emacs'
> master branch. To avoid this issue in the future.

An alternative is to remove it. It is only used by emacs-eglot which
requires 1.0.14 and up. Which should be in emacs-28 if I'm not mistaken.

--
s/Fred[re]+i[ck]+/Fredrik/g
F
F
Fredrik Salomonsson wrote on 21 Sep 2022 04:26
87y1udcvjd.fsf@posteo.net
Toggle quote (3 lines)
> I'll see if I can create a patch that extracts jsonrpc from emacs'
> master branch. To avoid this issue in the future.

Created a patch for it, see 57964[0].


--
s/Fred[re]+i[ck]+/Fredrik/g
F
F
Fredrik Salomonsson wrote on 24 Sep 2022 22:03
(address . 57899-done@debbugs.gnu.org)
871qs05yl0.fsf@posteo.net
Fredrik Salomonsson <plattfot@posteo.net> writes:

Toggle quote (7 lines)
>> I'll see if I can create a patch that extracts jsonrpc from emacs'
>> master branch. To avoid this issue in the future.
>
> Created a patch for it, see 57964[0].
>
> [0] https://issues.guix.gnu.org/57964

The patches has landed in the main channel and I can now build
emacs-jsonrpc without any issue. Closing this thread.

Thanks everyone for the help!

--
s/Fred[re]+i[ck]+/Fredrik/g
Closed
?