Package: ledger
Version: 3.2.1-7+b2
Followup-For: Bug #740757
X-Debbugs-Cc: debbug.740...@sideload.33mail.com
X-Debbugs-Cc: hel...@subdivi.de
Control: unarchive 740757
Control: reopen 740757
Control: found 740757 3.2.1-7+b2
Control: affects 740757 gnucash

For the past ~7 or so years I have been using my own manually compiled
version of ledger to escape bug# 740757:

  ===8<------------------------------
  $ /usr/local/bin/ledger -v
  Ledger 2.6.2, the command-line accounting tool

  Copyright (c) 2003-2009, John Wiegley.  All rights reserved.

  This program is made available under the terms of the BSD Public License.
  See LICENSE file included with the distribution for details and disclaimer.

  (modules: gmp, pcre, xml)
  ===8<------------------------------

This old version of ledger still works on the current stable version of gnucash 
(ver.4.4):

  ===8<------------------------------
  $ /usr/local/bin/ledger --file "$datafile" --register-format '%D!!%P!!%t\n' 
--begin 2020/12/31 --end 2022/01/01 --sort date --display 't>0' register 
exp.\*cycl
  2021/03/17!! derailleur + chain pliers!!$27.93
  2021/04/04!! trigger shifters!!$24.99
  ===8<------------------------------

But the current version of ledger (3.2.1-7+b2) does NOT operate on
gnucash data:

  ===8<------------------------------
  /usr/bin/ledger --file "$datafile" --register-format '%D!!%P!!%t\n' --begin 
2020/12/31 --end 2022/01/01 --sort date --display 't>0' register exp.\*cycl
  While parsing file "$datafile", line 2:
  Error: Directive '<gnc-v2' requires an argument
  While parsing file "$datafile", line 35:
  Error: Directive '<book:slots>' requires an argument
  While parsing file "$datafile", line 66:
  Error: Directive '</book:slots>' requires an argument
  …
  ===8<------------------------------

I don’t know if this is a regression, or if it was never actually
fixed. But the current status is that it’s broken.

(BTS issue)

This bug is a recurrance of bug# 740757. I tried to unarchive that bug
but messages to do so were sent to cont...@bugs.debian.org and they
were ignored. It’s unclear why because control messages get no ack. So
I was forced to open this new bug report, which is the same bug.

-- System Information:
Debian Release: 11.4
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'testing'), (990, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-16-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ledger depends on:
ii  libboost-filesystem1.74.0                           1.74.0-9
ii  libboost-iostreams1.74.0                            1.74.0-9
ii  libboost-python1.74.0 [libboost-python1.74.0-py39]  1.74.0-9
ii  libboost-regex1.74.0 [libboost-regex1.74.0-icu67]   1.74.0-9
ii  libc6                                               2.31-13+deb11u3
ii  libgcc-s1                                           10.2.1-6
ii  libgmp10                                            2:6.2.1+dfsg-1+deb11u1
ii  libicu67                                            67.1-7
ii  libmpfr6                                            4.1.0-3
ii  libpython3.9                                        3.9.2-1
ii  libstdc++6                                          10.2.1-6

ledger recommends no packages.

Versions of packages ledger suggests:
pn  elpa-ledger     <none>
pn  python3-ledger  <none>

-- no debconf information

Reply via email to