From: Andrew Patterson <andrewpatt7@gmail.com>
To: 55545@debbugs.gnu.org
Subject: [bug#55545] [PATCH] Get ~emacs-promise~ to build in emacs 28
Date: Fri, 20 May 2022 15:55:10 -0400 [thread overview]
Message-ID: <87fsl4x9hy.fsf@gmail.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: ~emacs-promise~ patch --]
[-- Type: text/x-patch, Size: 2728 bytes --]
From 0df304239efa6dc480e87d2ad833195d15011053 Mon Sep 17 00:00:00 2001
From: Andrew Patterson <andrewpatt7@gmail.com>
Date: Fri, 20 May 2022 15:06:07 -0400
Subject: [PATCH] Get ~emacs-promise~ to build in emacs 28
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(-)
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
(package
(name "emacs-promise")
(version "1.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/chuntaro/emacs-promise")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32 "1xb34zdbwjvahfhycjphdkm925kgd22dr298c57hwxza4ljc2hxj"))))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/chuntaro/emacs-promise")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1xb34zdbwjvahfhycjphdkm925kgd22dr298c57hwxza4ljc2hxj"))))
(build-system emacs-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-obsolete
+ (lambda* _
+ (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+.
+ (description
+ "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\".
-@end itemize\n")
+@end itemize
+")
(license license:gpl3+)))
(define-public emacs-async-await
base-commit: 598f7289db9955584457ffc11c8504f3938a1618
--
2.36.1
[-- Attachment #2: Type: text/plain, Size: 202 bytes --]
--
Andrew Patterson
John H. Cochrane is a professor of economics at Chicago, which is
like being a professor of economics but more so.
--<https://putanumonit.com/2018/12/14/defense-of-finance/>
next reply other threads:[~2022-05-20 20:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-20 19:55 Andrew Patterson [this message]
2022-06-05 19:14 ` [bug#55545] [PATCH] Get ~emacs-promise~ to build in emacs 28 Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsl4x9hy.fsf@gmail.com \
--to=andrewpatt7@gmail.com \
--cc=55545@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).