[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: emacs: Make strip-double-wrap more robust
From: |
guix-commits |
Subject: |
05/08: gnu: emacs: Make strip-double-wrap more robust |
Date: |
Sun, 31 Jan 2021 15:50:34 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 8d2465fcfef96552517bef7d182a04255d5707c2
Author: Morgan Smith <Morgan.J.Smith@outlook.com>
AuthorDate: Mon Oct 26 22:01:45 2020 -0400
gnu: emacs: Make strip-double-wrap more robust
* gnu/packages/emacs.scm (emacs) [strip-double-wrap]:
Use regex to find emacs executable. This works even when the version is
changed by package transformations (ex: version=git.master)
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/emacs.scm | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index ca14584..5cca2bc 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2019 Ludovic Courtès
<ludo@gnu.org>
+;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2019, 2021 Ludovic Courtès
<ludo@gnu.org>
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Mark H Weaver
<mhw@netris.org>
@@ -195,17 +195,11 @@
(lambda* (#:key outputs #:allow-other-keys)
;; Directly copy emacs-X.Y to emacs, so that it is not wrapped
;; twice. This also fixes a minor issue, where WMs would not be
- ;; able to track emacs back to emacs.desktop. The version is
- ;; accessed using using THIS-PACKAGE so it "just works" for
- ;; inherited Emacs packages of different versions.
+ ;; able to track emacs back to emacs.desktop.
(with-directory-excursion (assoc-ref outputs "out")
- (copy-file (string-append
- "bin/emacs-"
- ,(let ((this-version (package-version
this-package)))
- (or (false-if-exception
- (version-major+minor+point this-version))
- (version-major+minor this-version))))
- "bin/emacs")
+ (copy-file
+ (car (find-files "bin" "^emacs-([0-9]+\\.)+[0-9]+$"))
+ "bin/emacs")
#t)))
(add-before 'reset-gzip-timestamps 'make-compressed-files-writable
;; The 'reset-gzip-timestamps phase will throw a permission error
- branch master updated (4ea5767 -> 6094725), guix-commits, 2021/01/31
- 02/08: gnu: autoconf: Update to 2.71., guix-commits, 2021/01/31
- 04/08: database: Validate #:nar-size and #:time when registering store items., guix-commits, 2021/01/31
- 07/08: import: gnu: Mention package name upon failure., guix-commits, 2021/01/31
- 01/08: ci: Add missing imports., guix-commits, 2021/01/31
- 06/08: gnu-maintenance: Fix error handling., guix-commits, 2021/01/31
- 03/08: database: Remove workarounds unnecessary with guile-sqlite3 0.1.2., guix-commits, 2021/01/31
- 05/08: gnu: emacs: Make strip-double-wrap more robust,
guix-commits <=
- 08/08: scripts: import: json: Fix error handling., guix-commits, 2021/01/31