From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SNUkE4JJgWLtDAEAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 20:42:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0EIWE4JJgWKEEQAA9RJhRA (envelope-from ) for ; Sun, 15 May 2022 20:42:10 +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 E8D192871B for ; Sun, 15 May 2022 20:42:09 +0200 (CEST) Received: from localhost ([::1]:47926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqJBx-000669-3c for larch@yhetil.org; Sun, 15 May 2022 14:42:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJBq-00065s-KJ for guix-patches@gnu.org; Sun, 15 May 2022 14:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqJBq-0001A2-CE for guix-patches@gnu.org; Sun, 15 May 2022 14:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nqJBq-0006kg-AY for guix-patches@gnu.org; Sun, 15 May 2022 14:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55433] [PATCH] gnu: emacs-ledger-mode: Update to 4.0.0-0.11e8503. Resent-From: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 May 2022 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55433 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55433@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165264010225927 (code B ref -1); Sun, 15 May 2022 18:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2022 18:41:42 +0000 Received: from localhost ([127.0.0.1]:50734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJBW-0006k6-9d for submit@debbugs.gnu.org; Sun, 15 May 2022 14:41:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:55818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqJBF-0006jk-Sj for submit@debbugs.gnu.org; Sun, 15 May 2022 14:41:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJBF-0005Fs-LZ for guix-patches@gnu.org; Sun, 15 May 2022 14:41:25 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:31592) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqJBB-0000ul-NW for guix-patches@gnu.org; Sun, 15 May 2022 14:41:25 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1652640078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+mcQbUa9ADlW8xMn9VsTPGszo4IA1LrcM57ldu+E8DM=; b=ZE0XNhwruaAz9ZC6CoPtZtOBJvbQk1KLKldogeU7ea9KZQfIjLOtYTfeCZQihp9zaqeog3 CnZK9FA8Jga4wYz0QFnstAYNTa1uOkyfsdD/Gzs3zzIyI+X1y7MpgHdujqaZOn8qFJgVbf cRDw5j9q+epOujOXBizj6h2tOBx9DHwcCRa/xikhRcl4/fkF//fGJEzJJmExm8HlTDav/H D6FByy1vD2/UxzoX33NaK7B6mqTtkliucSFZlYM47aRht2h7l/zZHiCWvwmutaCt/oly1h s+/mtppyDoYNeW3QDMAagFp+9Qgd8JyMzixvBlDYTuBim2tksSFScGkBN84eQg== From: Kyle Meyer Date: Sun, 15 May 2022 14:41:14 -0400 Message-Id: <20220515184114.146101-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=kyle@kyleam.com; helo=out0.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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=1652640130; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+mcQbUa9ADlW8xMn9VsTPGszo4IA1LrcM57ldu+E8DM=; b=JpTFR1Oj3N+EnZrEbevoue0w1cLeg/FthFFol+xOe7fSDRSYdyICxeTBVU3pta/d2ZqbhV VwHA//wmfz9nyG+G+CutSdVF/bZ8b9nXqZHJdHotpgPXb+C/tSJX6COjTaWMjOukZU1hZN vV36KDWEfWo8WxyjDRZCWdQwnoUgAfImIhk+MjdrW/NLuvaYu/gYrz5hc1wXxNd3mwMKgb Kx/yuQ5tS2WNksIZ4yhdzFelVB2BES01kdpvDGsVsPp0TfK7nbMKmi9mtoa2FIp/LlDS7s +ZTZ7cg/s8UFDMtP7sDKeZWzH/r5nh1iPzuT5oPdZwZg06AhCKMGd5pLuzidOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652640130; a=rsa-sha256; cv=none; b=jQeWEFHw4a8qweCLc484NumB+IBtS4MMOV/8EMseRSnhl1Y97OgVbAQLMs/VfLmm8r7sz0 CSOzCHo993POseZWdgmGXiadywTUoi3T2181TCcETSzdYDQK38ngRrlhA5sZTvuxvDS44m Yagp2VDdW7UifOpWteMCaZP3waRESLxjRNYjWPaCXPJ5Vy7k9PAsyUzDth4g7PGKBqqYDP p+nw4IJFgzrwM9qedGAj/B7E/J6INKuhzN1m9BZvf2xaLeXS3F+qF8Pshnfu295qYvqStO YQW0ebkzhLKGmJcV7n4w6rOo9VNz6PLeWrv+UfWyGftykxLeEiHxFWgowyeuFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=ZE0XNhwr; dmarc=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: 1.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kyleam.com header.s=key1 header.b=ZE0XNhwr; dmarc=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: E8D192871B X-Spam-Score: 1.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: RyEe2u/FSslU With the Emacs 28 update, building emacs-ledger-mode fails with complete-test.el:29:1: Error: Wrong number of arguments: (3 . 4), 2 This error is not present the latest commit on upstream's master branch. * gnu/packages/finance.scm (emacs-ledger-mode): Update to 4.0.0-0.11e8503. --- gnu/packages/finance.scm | 96 +++++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 46 deletions(-) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index b5ab051a1f..ed7202b17e 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2021 François J ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2021 John Kehayias +;;; Copyright © 2022 Kyle Meyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -395,51 +396,54 @@ (define-public ledger "See src/wcwidth.cc in the distribution."))))) (define-public emacs-ledger-mode - (package - (name "emacs-ledger-mode") - (version "4.0.0") - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/ledger/ledger-mode") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1r5rcyxd6d1rqwamzpvqdbkbdf1zbj75aaciqijrklnm59ps244y")))) - (build-system emacs-build-system) - (arguments - `(;; ledger-test.el is needed at runtime (but probably not for a good reason). - #:exclude '() - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-path - (lambda* (#:key inputs #:allow-other-keys) - (let ((ledger (assoc-ref inputs "ledger"))) - (make-file-writable "ledger-exec.el") - (emacs-substitute-variables "ledger-exec.el" - ("ledger-binary-path" (string-append ledger "/bin/ledger")))) - #t)) - (add-after 'build 'build-doc - (lambda* (#:key outputs #:allow-other-keys) - (let ((target (string-append (assoc-ref outputs "out") - "/share/info"))) - (mkdir-p target) - (invoke "makeinfo" "-o" target - "../source/doc/ledger-mode.texi")) - #t)) - (replace 'check - (lambda _ - (with-directory-excursion "../source/test" - (invoke "make" "test-batch"))))))) - (inputs - (list ledger)) - (native-inputs - (list texinfo)) - (home-page "https://ledger-cli.org/") - (synopsis "Command-line double-entry accounting program") - (description - "Ledger is a powerful, double-entry accounting system that is + ;; The last release was on Nov 8, 2019 and doesn't build with Emacs 28. + (let ((commit "11e850395448ee7012dba16bd6df103f5552ebfb") + (revision "0")) + (package + (name "emacs-ledger-mode") + (version (git-version "4.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ledger/ledger-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0hzky36vrlb7kvpyz4gy3zn01zdlmlx0s58w6ggk5djbcvjc2rfx")))) + (build-system emacs-build-system) + (arguments + `(;; ledger-test.el is needed at runtime (but probably not for a good reason). + #:exclude '() + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((ledger (assoc-ref inputs "ledger"))) + (make-file-writable "ledger-exec.el") + (emacs-substitute-variables "ledger-exec.el" + ("ledger-binary-path" (string-append ledger "/bin/ledger")))) + #t)) + (add-after 'build 'build-doc + (lambda* (#:key outputs #:allow-other-keys) + (let ((target (string-append (assoc-ref outputs "out") + "/share/info"))) + (mkdir-p target) + (invoke "makeinfo" "-o" target + "../source/doc/ledger-mode.texi")) + #t)) + (replace 'check + (lambda _ + (with-directory-excursion "../source/test" + (invoke "make" "test-batch"))))))) + (inputs + (list ledger)) + (native-inputs + (list texinfo)) + (home-page "https://ledger-cli.org/") + (synopsis "Command-line double-entry accounting program") + (description + "Ledger is a powerful, double-entry accounting system that is accessed from the UNIX command-line. This may put off some users, since there is no flashy UI, but for those who want unparalleled reporting access to their data there are few alternatives. @@ -453,7 +457,7 @@ (define-public emacs-ledger-mode in ability, and easy to use. This package provides the Emacs mode.") - (license license:gpl2+))) + (license license:gpl2+)))) (define-public geierlein (package base-commit: ebb43029506d994bee0c2b890881fd61a0b0c202 -- 2.36.0