GNU bug report logs - #57899
emacs-jsonrpc hash mismatch

Previous Next

Package: guix;

Reported by: Fredrik Salomonsson <plattfot <at> posteo.net>

Date: Sun, 18 Sep 2022 00:36:02 UTC

Severity: normal

Done: Fredrik Salomonsson <plattfot <at> posteo.net>

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 57899 in the body.
You can then email your comments to 57899 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#57899; Package guix. (Sun, 18 Sep 2022 00:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fredrik Salomonsson <plattfot <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 18 Sep 2022 00:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: emacs-jsonrpc hash mismatch
Date: Sun, 18 Sep 2022 00:35:18 +0000
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:
---✀----------------------------------------------------------------------------
$ wget https://elpa.gnu.org/packages/jsonrpc-1.0.15.tar
$ 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
    repository URL: https://git.savannah.gnu.org/git/guix.git
    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




Information forwarded to bug-guix <at> gnu.org:
bug#57899; Package guix. (Mon, 19 Sep 2022 21:39:02 GMT) Full text and rfc822 format available.

Message #8 received at 57899 <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: Fredrik Salomonsson <plattfot <at> posteo.net>, 57899 <at> debbugs.gnu.org
Subject: Re: bug#57899: emacs-jsonrpc hash mismatch
Date: Mon, 19 Sep 2022 23:38:08 +0200
Hi Frederik,

Fredrik Salomonsson <plattfot <at> 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.

Best,
-- 
Josselin Poiret




Information forwarded to bug-guix <at> gnu.org:
bug#57899; Package guix. (Tue, 20 Sep 2022 03:14:01 GMT) Full text and rfc822 format available.

Message #11 received at 57899 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: Josselin Poiret <dev <at> jpoiret.xyz>, 57899 <at> debbugs.gnu.org
Subject: Re: bug#57899: emacs-jsonrpc hash mismatch
Date: Tue, 20 Sep 2022 03:13:39 +0000
Hi Josselin,

Josselin Poiret <dev <at> jpoiret.xyz> writes:

> Hi Frederik,
>
> Fredrik Salomonsson <plattfot <at> 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




Information forwarded to bug-guix <at> gnu.org:
bug#57899; Package guix. (Tue, 20 Sep 2022 03:23:02 GMT) Full text and rfc822 format available.

Message #14 received at 57899 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: Josselin Poiret <dev <at> jpoiret.xyz>, 57899 <at> debbugs.gnu.org
Subject: Re: bug#57899: emacs-jsonrpc hash mismatch
Date: Tue, 20 Sep 2022 03:22:11 +0000
> 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




Information forwarded to bug-guix <at> gnu.org:
bug#57899; Package guix. (Wed, 21 Sep 2022 02:27:02 GMT) Full text and rfc822 format available.

Message #17 received at 57899 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: Josselin Poiret <dev <at> jpoiret.xyz>, 57899 <at> debbugs.gnu.org
Subject: Re: bug#57899: emacs-jsonrpc hash mismatch
Date: Wed, 21 Sep 2022 02:26:30 +0000
> 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

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




Reply sent to Fredrik Salomonsson <plattfot <at> posteo.net>:
You have taken responsibility. (Sat, 24 Sep 2022 20:05:01 GMT) Full text and rfc822 format available.

Notification sent to Fredrik Salomonsson <plattfot <at> posteo.net>:
bug acknowledged by developer. (Sat, 24 Sep 2022 20:05:02 GMT) Full text and rfc822 format available.

Message #22 received at 57899-done <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> posteo.net>
To: 57899-done <at> debbugs.gnu.org
Subject: Re: bug#57899: emacs-jsonrpc hash mismatch
Date: Sat, 24 Sep 2022 20:03:55 +0000
Fredrik Salomonsson <plattfot <at> posteo.net> writes:

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 23 Oct 2022 11:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.