From 0df304239efa6dc480e87d2ad833195d15011053 Mon Sep 17 00:00:00 2001
Emacs 28 added a third required argument to ~define-obsolete-function-alias~
and friends. Upstream has removed the aliases, but hasn't released a new version.
gnu/packages/emacs-xyz.scm | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
Toggle diff (58 lines)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ae81f4e395..ca4dec7795 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -30347,19 +30347,29 @@ (define-public emacs-promise
- (url "https://github.com/chuntaro/emacs-promise")
- (file-name (git-file-name name version))
- (base32 "1xb34zdbwjvahfhycjphdkm925kgd22dr298c57hwxza4ljc2hxj"))))
+ (url "https://github.com/chuntaro/emacs-promise")
+ (file-name (git-file-name name version))
+ "1xb34zdbwjvahfhycjphdkm925kgd22dr298c57hwxza4ljc2hxj"))))
(build-system emacs-build-system)
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-obsolete
+ (substitute* "promise.el"
+ (("\\(define-obsolete-function-alias (.*) (.*)\\)" _
+ obsolete cur) (format #f
+ "(define-obsolete-function-alias ~a ~a ~a)"
+ obsolete cur "\"2020-01-10\""))))))))
(home-page "https://github.com/chuntaro/emacs-promise")
(synopsis "Promises/A+ for Emacs")
- (description "This is a simple implementation of Promises/A+.
+ "This is a simple implementation of Promises/A+.
This implementation ports the following Promises/A+ features
faithfully. See @url{https://github.com/then/promise}.
@@ -30371,7 +30381,8 @@ (define-public emacs-promise
@item It supports \"thenable\".
@item It supports \"Inheritance of Promise\".
@item It supports \"rejection-tracking\".
(license license:gpl3+)))
(define-public emacs-async-await
base-commit: 598f7289db9955584457ffc11c8504f3938a1618