head 1.4; access; symbols pkgsrc-2026Q2:1.3.0.14 pkgsrc-2026Q2-base:1.3 pkgsrc-2026Q1:1.3.0.12 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.10 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.8 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.6 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.4 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.2 pkgsrc-2024Q4-base:1.3 pkgsrc-2018Q4:1.1.0.4 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.2 pkgsrc-2018Q3-base:1.1; locks; strict; comment @ * @; 1.4 date 2026.06.28.16.29.15; author wiz; state dead; branches; next 1.3; commitid gPzrDg7umQlFhALG; 1.3 date 2024.11.26.22.59.34; author riastradh; state Exp; branches; next 1.2; commitid SjY1rha4DK4E3dzF; 1.2 date 2019.02.17.11.55.03; author wiz; state dead; branches; next 1.1; commitid SYOsyQfeUOXEa7cB; 1.1 date 2018.08.20.20.45.26; author wiz; state Exp; branches; next ; commitid f1HVypN50AhlVTOA; desc @@ 1.4 log @ledger: update to 3.4.1. Based on wip/ledger by atomicules with some fixes. 3.4.1 Fix version number in binary Assets 2 Source code (zip) Oct 26, 2025 Source code (tar.gz) Oct 26, 2025 1 person reacted 3.4.0 Oct 22, 2025 @@jwiegley jwiegley v3.4.0 ddb7c89 3.4.0 Critical Bug Fixes Fix segfault in metadata validation (issue #1800) Fix divide by zero (bugs #777 and #2207) Fix use-after-free with regex_match() Fix bucket transactions ignored with reg --related (bug #2220) Restore expr context after calc (bugs #2330 and #2343) Date and Year Handling Fix leap year dates with apply year directive (bug #2468) Fix xact command to properly respect last year directive (bug #2413) Fix timelog balance assertions with value conversion New Features Add support for hash chaining with --hashes option for transaction integrity verification Add commodity swaps feature over a base commodity Add --align-intervals option for reporting Add --lisp-date-format option for lisp output (bug #1206) Add yday shortcut for "yesterday" File Handling Skip files with invalid UTF-8 names in include directive (bug #2421) Allow automatic transactions to create accounts with --pedantic (bug #2417) Make pricedb output deterministic (bug #1783) Python Support Update required Python version to 3.10 (minimum 3.9) Fix Python 3.12 deprecation warnings Add Python bindings for commodity value_t and roundto function Remove Python 2 support from tests Build System Updates Update to C++17 standard Update to Boost 1.86.0 (minimum 1.72.0) Update required CMake to 3.16.2 Add support for Ubuntu 24.04 Noble Add build support for readline Display Improvements Display parent accounts with one child if they contain posts Align amounts even when account names are long Fix percentile balance report of time commodity @ text @$NetBSD: patch-src_utils.h,v 1.3 2024/11/26 22:59:34 riastradh Exp $ Fix build with boost>=1.86, which broke API compatibility. https://github.com/ledger/ledger/issues/2378 --- src/utils.h.orig 2023-03-30 07:40:48.000000000 +0000 +++ src/utils.h @@@@ -607,14 +607,14 @@@@ inline int peek_next_nonws(std::istream& *_p = '\0'; \ } -inline string to_hex(unsigned int * message_digest, const int len = 1) +inline string to_hex(unsigned char * message_digest, const int len = 4) { std::ostringstream buf; - for(int i = 0; i < 5 ; i++) { - buf.width(8); + for(int i = 0; i < 20 ; i++) { + buf.width(2); buf.fill('0'); - buf << std::hex << message_digest[i]; + buf << std::hex << (int)message_digest[i]; if (i + 1 >= len) break; // only output the first LEN dwords } @@@@ -627,9 +627,9 @@@@ inline string sha1sum(const string& str) sha.process_bytes(str.c_str(), str.length()); - unsigned int message_digest[5]; + unsigned char message_digest[20]; sha.get_digest(message_digest); - return to_hex(message_digest, 5); + return to_hex(message_digest, 20); } extern const string version; @ 1.3 log @finance/ledger: Fix build with boost>=1.86. Patch backported from upstream master, since there's been no upstream release since the breakage. No revbump because this has been broken since the revbump last month for boost 1.86. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @ledger: update to 3.1.2. * 3.1.2 (2019-02-05) - Increase maximum length for regex from 255 to 4095 (bug #981) - Initialize periods from from/since clause rather than earliest transaction date (bug #1159) - Check balance assertions against the amount after the posting (bug #1147) - Allow balance assertions with multiple posts to same account (bug #1187) - Fix period duration of "every X days" and similar statements (bug #370) - Make option --force-color not require --color anymore (bug #1109) - Add quoted_rfc4180 to allow CVS output with RFC 4180 compliant quoting. - Add support for --prepend-format in accounts command - Fix handling of edge cases in trim function (bug #520) - Fix auto xact posts not getting applied to account total during journal parse (bug #552) - Transfer null_post flags to generated postings - Fix segfault when using --market with --group-by - Use amount_width variable for budget report - Keep pending items in budgets until the last day they apply - Fix bug where .total used in value expressions breaks totals - Make automated transactions work with assertions (bug #1127) - Improve parsing of date tokens (bug #1626) - Don't attempt to invert a value if it's already zero (bug #1703) - Do not parse user-specified init-file twice - Fix parsing issue of effective dates (bug #1722, TALOS-2017-0303, CVE-2017-2807) - Fix use-after-free issue with deferred postings (bug #1723, TALOS-2017-0304, CVE-2017-2808) - Fix possible stack overflow in option parsing routine (bug #1222, CVE-2017-12481) - Fix possible stack overflow in date parsing routine (bug #1224, CVE-2017-12482) - Fix use-after-free when using --gain (bug #541) - Python: Removed double quotes from Unicode values. - Python: Ensure that parse errors produce useful RuntimeErrors - Python: Expose journal expand_aliases - Python: Expose journal_t::register_account - Improve bash completion - Emacs Lisp files have been moved to https://github.com/ledger/ledger-mode - Fix build under MSYS (32-bit). - Fix build under Cygwin. - Various documentation improvements @ text @d1 1 a1 1 $NetBSD: patch-src_utils.h,v 1.1 2018/08/20 20:45:26 wiz Exp $ d3 2 a4 1 Fix build with boost-1.68+. d6 1 a6 1 --- src/utils.h.orig 2016-01-11 15:59:38.000000000 +0000 d8 3 a10 3 @@@@ -44,7 +44,7 @@@@ #ifndef _UTILS_H #define _UTILS_H d12 4 a15 2 -#include +#include d17 22 a38 2 /** * @@name Default values @ 1.1 log @ledger: fix build with boost-1.68 @ text @d1 1 a1 1 $NetBSD$ @