unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57899: emacs-jsonrpc hash mismatch
@ 2022-09-18  0:35 Fredrik Salomonsson
  2022-09-19 21:38 ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 1 reply; 6+ messages in thread
From: Fredrik Salomonsson @ 2022-09-18  0:35 UTC (permalink / raw)
  To: 57899

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




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

* bug#57899: emacs-jsonrpc hash mismatch
  2022-09-18  0:35 bug#57899: emacs-jsonrpc hash mismatch Fredrik Salomonsson
@ 2022-09-19 21:38 ` Josselin Poiret via Bug reports for GNU Guix
  2022-09-20  3:13   ` Fredrik Salomonsson
  0 siblings, 1 reply; 6+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2022-09-19 21:38 UTC (permalink / raw)
  To: Fredrik Salomonsson, 57899

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.

Best,
-- 
Josselin Poiret




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

* bug#57899: emacs-jsonrpc hash mismatch
  2022-09-19 21:38 ` Josselin Poiret via Bug reports for GNU Guix
@ 2022-09-20  3:13   ` Fredrik Salomonsson
  2022-09-20  3:22     ` Fredrik Salomonsson
  2022-09-21  2:26     ` Fredrik Salomonsson
  0 siblings, 2 replies; 6+ messages in thread
From: Fredrik Salomonsson @ 2022-09-20  3:13 UTC (permalink / raw)
  To: Josselin Poiret, 57899

Hi Josselin,

Josselin Poiret <dev@jpoiret.xyz> writes:

> 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




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

* bug#57899: emacs-jsonrpc hash mismatch
  2022-09-20  3:13   ` Fredrik Salomonsson
@ 2022-09-20  3:22     ` Fredrik Salomonsson
  2022-09-21  2:26     ` Fredrik Salomonsson
  1 sibling, 0 replies; 6+ messages in thread
From: Fredrik Salomonsson @ 2022-09-20  3:22 UTC (permalink / raw)
  To: Josselin Poiret, 57899


> 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




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

* bug#57899: emacs-jsonrpc hash mismatch
  2022-09-20  3:13   ` Fredrik Salomonsson
  2022-09-20  3:22     ` Fredrik Salomonsson
@ 2022-09-21  2:26     ` Fredrik Salomonsson
  2022-09-24 20:03       ` Fredrik Salomonsson
  1 sibling, 1 reply; 6+ messages in thread
From: Fredrik Salomonsson @ 2022-09-21  2:26 UTC (permalink / raw)
  To: Josselin Poiret, 57899


> 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




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

* bug#57899: emacs-jsonrpc hash mismatch
  2022-09-21  2:26     ` Fredrik Salomonsson
@ 2022-09-24 20:03       ` Fredrik Salomonsson
  0 siblings, 0 replies; 6+ messages in thread
From: Fredrik Salomonsson @ 2022-09-24 20:03 UTC (permalink / raw)
  To: 57899-done


Fredrik Salomonsson <plattfot@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




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

end of thread, other threads:[~2022-09-24 20:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-18  0:35 bug#57899: emacs-jsonrpc hash mismatch Fredrik Salomonsson
2022-09-19 21:38 ` Josselin Poiret via Bug reports for GNU Guix
2022-09-20  3:13   ` Fredrik Salomonsson
2022-09-20  3:22     ` Fredrik Salomonsson
2022-09-21  2:26     ` Fredrik Salomonsson
2022-09-24 20:03       ` Fredrik Salomonsson

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