guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-telega: Patch to use telega-server fro


From: guix-commits
Subject: branch master updated: gnu: emacs-telega: Patch to use telega-server from Guix.
Date: Tue, 21 Jul 2020 13:54:21 -0400

This is an automated email from the git hooks/post-receive script.

brettgilio pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new d4b02a6  gnu: emacs-telega: Patch to use telega-server from Guix.
d4b02a6 is described below

commit d4b02a6fba7c364ab7c8d257cf9a32134e71ce3e
Author: Brett Gilio <brettg@gnu.org>
AuthorDate: Tue Jul 21 12:51:04 2020 -0500

    gnu: emacs-telega: Patch to use telega-server from Guix.
    
    * gnu/packages/patches/emacs-telega-patch-server-functions.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Reference new patch.
    * gnu/packages/emacs-xyz.scm (emacs-telega)[source]: Use new patch, bump
    revision.
---
 gnu/local.mk                                       |  1 +
 gnu/packages/emacs-xyz.scm                         |  6 +++--
 .../emacs-telega-patch-server-functions.patch      | 31 ++++++++++++++++++++++
 3 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 7bae1da..8ba36ac 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -916,6 +916,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/emacs-libgit-use-system-libgit2.patch    \
   %D%/packages/patches/emacs-scheme-complete-scheme-r5rs-info.patch    \
   %D%/packages/patches/emacs-source-date-epoch.patch           \
+  %D%/packages/patches/emacs-telega-patch-server-functions.patch       \
   %D%/packages/patches/emacs-telega-test-env.patch             \
   %D%/packages/patches/emacs-undohist-ignored.patch    \
   %D%/packages/patches/emacs-wordnut-require-adaptive-wrap.patch       \
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5b68eb5..94772c3 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -22266,7 +22266,7 @@ fish-completion.  It can be used in both Eshell and M-x 
shell.")
   ;; Get the current version from `telega-version` in telega.el.
   ;; or by running M-x telega-version.
   (let ((commit "5c39c3a81e48222911db75ae30e5a8f8fa34efb5")
-       (revision "1")
+       (revision "2")
        (version "0.6.27"))
     (package
       (name "emacs-telega")
@@ -22280,7 +22280,9 @@ fish-completion.  It can be used in both Eshell and M-x 
shell.")
          (sha256
           (base32
            "0wyycgsb1ja73phs9a2dgi50m2p6sdvx3xdwclfyijx4hzwlv233"))
-         (patches (search-patches "emacs-telega-test-env.patch"))
+         (patches (search-patches
+                   "emacs-telega-patch-server-functions.patch"
+                   "emacs-telega-test-env.patch"))
          (file-name (git-file-name name version))))
       (build-system gnu-build-system)
       (arguments
diff --git a/gnu/packages/patches/emacs-telega-patch-server-functions.patch 
b/gnu/packages/patches/emacs-telega-patch-server-functions.patch
new file mode 100644
index 0000000..e3d4927
--- /dev/null
+++ b/gnu/packages/patches/emacs-telega-patch-server-functions.patch
@@ -0,0 +1,31 @@
+Remove interactive build for telega-server, as it fails on Guix.
+Modify the `telega-server--find-bin' function to only use the version
+of telega-server installed by Guix.
+
+Created by Brett Gilio <brettg@gnu.org>
+
+--- a/telega-server.el
++++ b/telega-server.el
+@@ -113,7 +113,6 @@ If already deferring, then just executes the BODY."
+ If BUILD-FLAGS is specified, then rebuild server without any
+ queries using this flags for building, could be empty string.
+ Otherwise query user about building flags."
+-  (interactive)
+   (telega-test-env 'quiet)
+   (when (or build-flags
+             (y-or-n-p "Build `telega-server'? "))
+@@ -137,11 +136,8 @@ Otherwise query user about building flags."
+ (defun telega-server--find-bin ()
+   "Find telega-server executable.
+ Raise error if not found."
+-  (let ((exec-path (cons telega-directory exec-path)))
+-    (or (executable-find "telega-server")
+-        (progn (telega-server-build)
+-               (executable-find "telega-server"))
+-        (error "`telega-server' not found in exec-path"))))
++  (or (executable-find "telega-server")
++      (error "`telega-server' not found in exec-path")))
+ 
+ (defun telega-server-version ()
+   "Return telega-server version."
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]