GNU bug report logs -
#57964
[PATCH 0/1] Change source for emacs-jsonrpc
Previous Next
Reported by: Fredrik Salomonsson <plattfot <at> posteo.net>
Date: Wed, 21 Sep 2022 02:22:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
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 57964 in the body.
You can then email your comments to 57964 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#57964
; Package
guix-patches
.
(Wed, 21 Sep 2022 02:22: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
guix-patches <at> gnu.org
.
(Wed, 21 Sep 2022 02:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
It seems that ELPA regenerated the archive for the source of emacs-jsonrpc, as
discoverd by Josselin Poiret in issue 57899[0]. Which breaks the package in
guix as now the hash mismatch.
This patch changes the source to using Emacs' Git repository. Which will
hopefully avoid this issue in the future.
**NOTE** I used https://github.com/emacs-mirror/emacs when testing this, as
https://git.savannah.gnu.org/git/emacs.git/ was dead slow for me (~16Mb/s vs
~50kb/s). But I figured it might just be a hickup on savannah and it is better
to use the original source than a mirror.
[0] https://issues.guix.gnu.org/57899
Fredrik Salomonsson (1):
gnu: emacs-jsonrpc: Change source.
gnu/packages/emacs-xyz.scm | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
base-commit: f256614891335e250207edab129bdf8601c22774
--
2.37.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57964
; Package
guix-patches
.
(Wed, 21 Sep 2022 02:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 57964 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs-xyz.scm (emacs-jsonrpc)
[source]: Change to Emacs' Git repository.
---
gnu/packages/emacs-xyz.scm | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 32e4c33f16..889820350e 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16345,12 +16345,23 @@ (define-public emacs-jsonrpc
(version "1.0.15")
(source
(origin
- (method url-fetch)
- (uri (string-append "https://elpa.gnu.org/packages/"
- "jsonrpc-" version ".tar"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.savannah.gnu.org/git/emacs.git/")
+ (commit "1231a601ebe1fd9fe454c504dbeb9267440242e7")))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1hx378rg12jz2zm105cvrqk0nqyzsn04l59d903l98d6lbd96rsw"))))
+ (base32
+ "00i5n150ibkdn2i3p8q3d1ag5jnikfc988f3hz2yfdk4z0ajj536"))))
(build-system emacs-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (replace 'unpack
+ (lambda* (#:key source #:allow-other-keys)
+ (mkdir "source")
+ (chdir "source")
+ (copy-file (string-append source "/lisp/jsonrpc.el") "jsonrpc.el"))))))
(home-page "http://elpa.gnu.org/packages/jsonrpc.html")
(synopsis "JSON-RPC library")
(description
--
2.37.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57964
; Package
guix-patches
.
(Wed, 21 Sep 2022 06:36:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 57964 <at> debbugs.gnu.org (full text, mbox):
Hi Fredrik,
Fredrik Salomonsson <plattfot <at> posteo.net> writes:
> It seems that ELPA regenerated the archive for the source of emacs-jsonrpc, as
> discoverd by Josselin Poiret in issue 57899[0]. Which breaks the package in
> guix as now the hash mismatch.
>
> This patch changes the source to using Emacs' Git repository. Which will
> hopefully avoid this issue in the future.
Builds and runs for me, and patch is clean!
Reviewed-by: Josselin Poiret <dev <at> jpoiret.xyz>
Best,
--
Josselin Poiret
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57964
; Package
guix-patches
.
(Fri, 23 Sep 2022 23:43:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 57964 <at> debbugs.gnu.org (full text, mbox):
Hi,
I saw that my patch was merged. But when I did a guix pull and built it
I got a hash mismatch again. Looks like when it got cleaned up to use
the commit which bumped jsonrpc.el to 1.0.15 the hash wasn't updated.
I added a patch to use the correct hash.
Fredrik Salomonsson (1):
gnu: emacs-jsonrpc: Correct hash.
gnu/packages/emacs-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
base-commit: 08d515233241ee0921b8b5ab706f98170c62437c
--
2.37.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#57964
; Package
guix-patches
.
(Fri, 23 Sep 2022 23:43:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 57964 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/emacs-xyz.scm (emacs-jsonrpc)[source]: Correct hash.
---
gnu/packages/emacs-xyz.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b98b435e9b..c413bc971c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -16357,7 +16357,7 @@ (define-public emacs-jsonrpc
(file-name (git-file-name name version))
(sha256
(base32
- "0005n150ibkdn2i3p8q3d1ag5jnikfc988f3hz2yfdk4z0ajj536"))))
+ "0srwb171dxha1nfzppk6x9v4bdj3lk74pksqnhalw8jw9c67b72y"))))
(build-system emacs-build-system)
(arguments
(list #:phases
--
2.37.3
Reply sent
to
Liliana Marie Prikler <liliana.prikler <at> gmail.com>
:
You have taken responsibility.
(Sat, 24 Sep 2022 05:21:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Fredrik Salomonsson <plattfot <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 24 Sep 2022 05:21:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 57964-done <at> debbugs.gnu.org (full text, mbox):
Am Freitag, dem 23.09.2022 um 23:42 +0000 schrieb Fredrik Salomonsson:
> * gnu/packages/emacs-xyz.scm (emacs-jsonrpc)[source]: Correct hash.
Sorry for not double-checking. Pushed!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 22 Oct 2022 11:24:07 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.