From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wNLtMwr0h2LpQwAAbAwnHQ (envelope-from ) for ; Fri, 20 May 2022 22:03:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AIlDMwr0h2I7gAAAG6o9tA (envelope-from ) for ; Fri, 20 May 2022 22:03:22 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 609E56D2D for ; Fri, 20 May 2022 22:03:22 +0200 (CEST) Received: from localhost ([::1]:60954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ns8qH-0008L6-6u for larch@yhetil.org; Fri, 20 May 2022 16:03:21 -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 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-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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653077002; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=e6W3fLTyajM90NGiMeBFOZY9lX+7bnLddaqoVY5tykY=; b=Qll3sX4SB0nttrI9Bd2DH0N5ZZfRH5URcdPwzIc55RaHeMSySbCYb8pnUEc0B/vH6KPVqv axT/VHhmc63z2Gkvc2tPtWAbhHvwXmHwvhvXlRj0D7jWcpDP4QFjr44LnTQfpxoIJSJt/t gC4puB97io0NM5u+HXEcABkZFS8q9ItoCvK4+0ZrqUDGg275OzBavImD0X5LwRWLn7ehdm qaJcY4UkE1u/T4Xsn7f5gRO8uHwH2PIM/+BHLa2yFY6hd4DCc4s4hm0g7M6NMxBOwgz1aQ Y5I6s1VEPHyBV1mhi8SRQcnE61UThn8Nqyh0RqiUc/U2+Z1sINAhwnmGBar0Pg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653077002; a=rsa-sha256; cv=none; b=MayYJkrlbsxUKhYHVVW7tBGclbXYYzobBUAOoVZPjZ575Ky8+1iqPGlQ10xtpW9nSRU7Yj l86q2blNlwINvDy1hhg1obdvIWTPtm51SkJHirUCb4puSIgnvZHtWSOsc/+mCxIO3olSPv PQjfxVhybZniYnTyxFpDhc9q5piibMT2UusqEMAc8n8XcF6M83uCmtRxiLZB0RiTeqiq0M A4jc3p9yJleecF8pKYpmaEHFvD4a6PXbqvVQA1bMbfSGbvbMAAxILRbW0iSyO3RvmhUslq BbvJpFUE4ngTIREvB5uzv381Si58CMr8xLvqIgByfZckpNM2mt8phO+d6S9NUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="qWBHF/m9"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.46 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="qWBHF/m9"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 609E56D2D X-Spam-Score: 4.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9ZjHbozGG28B --=-=-= 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. -- --=-=-=--