GNU bug report logs -
#44249
[PATCH] gnu: emacs: Make strip-double-wrap more robust
Previous Next
Reported by: Morgan.J.Smith <at> outlook.com
Date: Tue, 27 Oct 2020 02:18:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #56 received at 44249-done <at> debbugs.gnu.org (full text, mbox):
Hi Morgan,
Morgan.J.Smith <at> outlook.com skribis:
> From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
>
> * 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)
Somehow I had forgotten about this patch, but I finally applied it!
> (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" (file-name-predicate "^emacs-([0-9]+\\.)+[0-9]+$")))
Here I just remove ‘file-name-predicate’ because it’s implicit. I
checked that it works with the currently-packaged version as well as
‘--with-branch=emacs-next=master’.
Thank you, and apologies for the long delay!
Ludo’.
This bug report was last modified 4 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.