From patchwork Fri May 20 19:55:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Patterson X-Patchwork-Id: 39545 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D3D4B27BBEA; Fri, 20 May 2022 21:03:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5A9A427BBE9 for ; Fri, 20 May 2022 21:03:25 +0100 (BST) Received: from localhost ([::1]:60954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ns8qK-0008L6-GB for patchwork@mira.cbaines.net; Fri, 20 May 2022 16:03:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ns8l8-0000Mn-N3 for guix-patches@gnu.org; Fri, 20 May 2022 15:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ns8l8-0004KW-DS for guix-patches@gnu.org; Fri, 20 May 2022 15:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ns8l8-0000m9-CM for guix-patches@gnu.org; Fri, 20 May 2022 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55545] [PATCH] Get ~emacs-promise~ to build in emacs 28 Resent-From: Andrew Patterson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 May 2022 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55545 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55545@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16530766632956 (code B ref -1); Fri, 20 May 2022 19:58:02 +0000 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 Date: Fri, 20 May 2022 15:55:10 -0400 Message-ID: <87fsl4x9hy.fsf@gmail.com> MIME-Version: 1.0 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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