diff mbox series

[bug#71592,3/3] gnu: emacs-compat: Build from git.

Message ID da4a97a172038979448f6498bcb02bc85eda9141.1718548296.git.suhail@bayesians.ca
State New
Headers show
Series gnu: emacs-org: Update to 9.7.4. | expand

Commit Message

Suhail Singh June 16, 2024, 3:31 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-compat): The hash on ELPA no longer
matches the one noted in Guix.  Update it to use the git repository and update
the home-page as well.

Change-Id: I0c9cb62be365e87cb4da1847272743bb4206197c
---
 gnu/packages/emacs-xyz.scm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Comments

Liliana Marie Prikler June 16, 2024, 3:55 p.m. UTC | #1
Am Sonntag, dem 16.06.2024 um 11:31 -0400 schrieb Suhail Singh:
> 
> * gnu/packages/emacs-xyz.scm (emacs-compat): The hash on ELPA no
> longer matches the one noted in Guix.  Update it to use the git
> repository and update the home-page as well.
Mark [source] and [home-page] updates individually.

Building from git SGTM, but do we know that those tags are sane?  If
not, I'd go to git-version instead.


Cheers
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cf0488d5c7..8e7a0a0b5c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9477,14 +9477,15 @@  (define-public emacs-compat
     (name "emacs-compat")
     (version "29.1.4.5")
     (source (origin
-              (method url-fetch)
-              (uri (string-append "https://elpa.gnu.org/packages/"
-                                  "compat-" version ".tar"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/emacs-compat/compat")
+                    (commit version)))
               (sha256
                (base32
-                "191cjzrw9xm5bvcf8s1yr9hdcn9i02789xfd8pz33lk65s0rq413"))))
+                "1bq2nk052g5ydl6qgiiiflnamzn1lgikv6yc8ijfzwksg06wq959"))))
     (build-system emacs-build-system)
-    (home-page "https://git.sr.ht/~pkal/compat")
+    (home-page "https://github.com/emacs-compat/compat")
     (synopsis "Emacs Lisp Compatibility Library")
     (description
      "To allow for the usage of Emacs functions and macros that are defined