Up to [cvs.NetBSD.org] / pkgsrc / finance / ledger
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
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
finance/ledger: update to ledger-3.3.2
3.3.2
* Fix divide by zero (bugs #777 and #2207)
* Increase string size limit in src/unistring.h assert (bug #2174)
* Require tzdata for Nix flake build (bug #2213)
3.3.1
* Fix regression leading to incorrect error about format directives (bug #
2205)
* Add information about compile features to --version
* Fix compiler warnings by minimizing the use of deprecated APIs
* Update flake.nix to match nixpkgs ledger/default.nix
* Remove unused Python server related code
* Various documentation improvements
3.3.0
* Use $PAGER when environment variable is set (bug #1674)
* Make --depth correctly fold postings to accounts of greater depth into
the parent at the specified level (bug #987)
* When using wild-cards in the include directive, include matched files in
sorted order (bug #1659)
* Ensure absolute path for include (bug #2075)
* Try to use $XDG_HOME_CONFIG/ledger/ledgerrc or ~/.config/ledger/ledgerrc
first
* Improve Python 3 support and drop support for Python 2
* Add support for automatically reading files encrypted with GPG (bug #1949
)
* Add support for a "debit" column in the convert command (bug #1120)
* Fix parsing of files without end of line (bug #516)
* Fix incorrect parsing of expressions containing a - without spaces (bug #
2001)
* Fix payee metadata on postings not being validated and payee aliases not
being honored (bug #556 & bug #1892)
* Fix ledger interpreting a posting with 0 difference as a null-posting,
which leads to it auto-balancing the posting (bug #1942)
* Correctly escape all string values in lisp report (bug #2034)
* Fix a regression where empty commodities were shown (bug #1969)
* Fix a regression where using multiple commodities in one transaction
triggers an assertion (bug #1998)
* Fix --time-colon for negative time amounts
* Use correct int return type for stream input operations (bug #2058)
* Use amount_width for balance report
* Remove some UTF-8 code that was having no effect (bug #2061)
* Fix unrounding for equity
* Fix SIGABRT when python subcommand raises an exception
* Improve XML reports
* Support building on older versions of CMAKE (less than 3.7)
* Fix compilation with Boost 1.76 (bug #2030)
* Fix Msys2 MinGW build (bug #1905)
* Fix unicode problems on Windows (bug #1986)
* Fix the issue that with Boost >= 1.77 include directive cannot find the
file to include for stdin (-f -). Also for -f - when include cannot find
the file it reports the error with full path now. (bug #2057 & bug #2092)
* Fix Nix build
* Rename quoted_rfc4180 to quoted_rfc, as numbers used in function names
confuses the parser (#2007).
* Numbers are no longer permitted in value expression function names.
* Various documentation improvements
ledger: update to 3.1.3. ## 3.1.3 (2019-03-31) - Properly reject postings with a comment right after the flag (bug #1753) - Make sorting order of lot information deterministic (bug #1747) - Fix bug in tag value parsing (bug #1702) - Remove the `org` command, which was always a hack to begin with (bug #1706) - Provide Docker information in README - Various small documentation improvements
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
Import ledger 3.1.1 from wip, with some tweaks as 3.1.1nb1. - Fill text in DESCR. - Use lang/python/tool.mk explicitly. - Add options.mk for python option. (Other extensions TBD.) - Patch a misuse of editline.