From debbugs-submit-bounces@debbugs.gnu.org Fri May 20 15:57:43 2022 Received: (at submit) by debbugs.gnu.org; 20 May 2022 19:57:43 +0000 Received: from localhost ([127.0.0.1]:40155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns8kp-0000lc-4D for submit@debbugs.gnu.org; Fri, 20 May 2022 15:57:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:48730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ns8kl-0000lR-Qs for submit@debbugs.gnu.org; Fri, 20 May 2022 15:57:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ns8kl-00089A-HX for guix-patches@gnu.org; Fri, 20 May 2022 15:57:39 -0400 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:46962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ns8kf-0004Hb-Ro for guix-patches@gnu.org; Fri, 20 May 2022 15:57:38 -0400 Received: by mail-qv1-xf34.google.com with SMTP id ej7so7752030qvb.13 for ; Fri, 20 May 2022 12:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=user-agent:from:to:subject:date:message-id:mime-version; bh=e6W3fLTyajM90NGiMeBFOZY9lX+7bnLddaqoVY5tykY=; b=qWBHF/m9Ld/SbnJPiPcruyWxo+P7oSBcvHGzJBtcp+oA44LYmbFEVY2Nbrj0syC/PF 4de3VsHXHyf+5AuUEWjJ0h+W5DzEe7HDXi5uXEN29UXVVvQefVcr1z870V0mN5rZA8qt nR22Ep31qAPTKLDG9dZX+VPRimBHj+CRgxbH81/1Sfdz4dmPiTrsLBVnZ+KQktoms8My TC2FBcDO+J5/iHOZ79AVN3UbS7MjLBaEOBklmg8o3DCS2FxMiwLMTzL2sJtuLnmBRPUT qqjNhdLN2XXaAl9cYenYWCOe4mq/fy7aciZDoenifi2rPhvsNhLCv+iKDunO/LCLPC4x Fv7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=e6W3fLTyajM90NGiMeBFOZY9lX+7bnLddaqoVY5tykY=; b=kVqV70dQ9hgIZ8LIu1kwSa+jx54ztv7bkQy3QWcqJzeP90y0LRNdhXrzEfrEJYy0f9 04mCHVzB8nVYUhprM/GTEJYSbmZVkSQLVtvaxgZpm/qbKJpmYf3ib+8VUYCIFSPHis2W nFuI6qCXu1hw2eJFVrcSR5jqHAhQYAHrgc1XqHPGqXxMvuKHMgYtMVTsFy4kDahFWdZk 0N+1pKo+iWj3ZQX5q+FP3JL+eupi7UfecRsGHJcKVFpWCwweqwsUORZ66foWittI+3l+ fjzA7hVdQZRMMq7aSD90FjFR4x6dgPHzsHAtbee4TTK2P1lhXM4TIIew6OEUFTYd4+VY u+FQ== X-Gm-Message-State: AOAM533wKA/ocBD2f0RfZQ4XP0Y0xDoCOZCoBgidNGBFVBXbfVWBmQvQ FXdiYyjUUe9Il4cA1GLx1cf8JUhu5uM= X-Google-Smtp-Source: ABdhPJyFV+bUax7M2RfwzOGQ6K5zGAJV3CeVQWNkpzVAe52eFTeB+c+MYHpKwqmCsOp4z7IlhLE8XA== X-Received: by 2002:a05:6214:27e4:b0:462:2055:c3cd with SMTP id jt4-20020a05621427e400b004622055c3cdmr409881qvb.31.1653076651343; Fri, 20 May 2022 12:57:31 -0700 (PDT) Received: from kalantha ([204.111.132.153]) by smtp.gmail.com with ESMTPSA id f8-20020ac84708000000b002f3f062dbd5sm242303qtp.43.2022.05.20.12.57.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 12:57:30 -0700 (PDT) User-agent: mu4e 1.6.10; emacs 28.1 From: Andrew Patterson To: guix-patches@gnu.org Subject: [PATCH] Get ~emacs-promise~ to build in emacs 28 Date: Fri, 20 May 2022 15:55:10 -0400 Message-ID: <87fsl4x9hy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=andrewpatt7@gmail.com; helo=mail-qv1-xf34.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Get-emacs-promise-to-build-in-emacs-28.patch Content-Description: ~emacs-promise~ patch From 0df304239efa6dc480e87d2ad833195d15011053 Mon Sep 17 00:00:00 2001 From: Andrew Patterson 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 --=-=-= Content-Type: text/plain; format=flowed -- Andrew Patterson John H. Cochrane is a professor of economics at Chicago, which is like being a professor of economics but more so. -- --=-=-=--