Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270476 > unrolled thread

Bug#1120833: hledger can't output to less anymore

Started byFélix Sipma <felix@debian.org>
First post2025-11-17 10:00 +0100
Last post2025-11-18 01:10 +0100
Articles 8 — 4 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1120833: hledger can't output to less anymore Félix Sipma <felix@debian.org> - 2025-11-17 10:00 +0100
    Bug#1120833: hledger can't output to less anymore "Simon Michael" <simon@joyful.com> - 2025-11-18 01:10 +0100
      Bug#1120833: hledger can't output to less anymore Clint Adams <clint@debian.org> - 2025-11-18 03:00 +0100
        Bug#1120833: hledger can't output to less anymore Nicholas D Steeves <sten@debian.org> - 2025-11-29 01:40 +0100
      Bug#1120833: hledger can't output to less anymore Nicholas D Steeves <sten@debian.org> - 2025-11-19 00:00 +0100
        Bug#1120833: hledger can't output to less anymore "Simon Michael" <simon@joyful.com> - 2025-11-19 01:00 +0100
          Bug#1120833: hledger can't output to less anymore Nicholas D Steeves <sten@debian.org> - 2025-11-29 01:40 +0100
    Bug#1120833: hledger can't output to less anymore "Simon Michael" <simon@joyful.com> - 2025-11-18 01:10 +0100

#1270476 — Bug#1120833: hledger can't output to less anymore

FromFélix Sipma <felix@debian.org>
Date2025-11-17 10:00 +0100
SubjectBug#1120833: hledger can't output to less anymore
Message-ID<LS3fz-dB0M-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Package: hledger
Version: 1.50.2-1
Severity: normal

With the new 1.50.2-1 version, hledger can't output to less anymore.

"hledger balance" returns output only if the window is big enough. If 
the window is too small, less seems to be started but there is no output 
(I have to stop it with "Ctrl-C", then "q").

The previous version did not have this problem, neither does the 
upstream 1.50.2 version...


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable-security'), (500, 'stable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.17.7+deb14+1-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages hledger depends on:
ii  libc6           2.41-12
ii  libffi8         3.5.2-2
ii  libgmp10        2:6.3.0+dfsg-5
ii  libnuma1        2.0.19-1
ii  libtinfo6       6.5+20250216-2
ii  sensible-utils  0.0.26
ii  zlib1g          1:1.3.dfsg+really1.3.1-1+b1

hledger recommends no packages.

hledger suggests no packages.

-- no debconf information

-- 
Félix

[toc] | [next] | [standalone]


#1270583

From"Simon Michael" <simon@joyful.com>
Date2025-11-18 01:10 +0100
Message-ID<LShse-dKLJ-17@gated-at.bofh.it>
In reply to#1270476
Thanks for the package update and bug report.

hledger's way of running the pager has changed; it now requires that hledger is built with GHC's -threaded flag. But Debian's hledger has been built with the non-threaded runtime. (`hledger +RTS --info | grep way` shows rts_v instead of rts_thr.)

The -threaded flag is enabled by default in hledger's cabal file. However it's also marked as "manual: False" which means cabal can toggle it off if it feels like it. (I assume Debian is building with cabal and not with stack.) Possibly that's what happened here ?

FYI, unrelated to this issue, there's also a bad slowdown in hledger 1.50-1.50.2 
(https://github.com/simonmichael/hledger/issues/2493). I aim to ship a 1.50.3 ASAP, fixing the slowdown and making -threaded mandatory.

[toc] | [prev] | [next] | [standalone]


#1270592

FromClint Adams <clint@debian.org>
Date2025-11-18 03:00 +0100
Message-ID<LSjaF-dLIH-5@gated-at.bofh.it>
In reply to#1270583
On Mon, Nov 17, 2025 at 02:07:21PM -1000, Simon Michael wrote:
>The -threaded flag is enabled by default in hledger's cabal file. However it's also marked as "manual: False" which means cabal can toggle it off if it feels like it. (I assume Debian is building with cabal and not with stack.) Possibly that's what happened here ?

There's a logic error at https://salsa.debian.org/haskell-team/DHG_packages/-/blob/master/p/haskell-hledger/debian/rules?ref_type=heads#L5 because that stopped being the correct path.

(We are similarly broken with darcs, aeson, debian, and hlint)

[toc] | [prev] | [next] | [standalone]


#1272033

FromNicholas D Steeves <sten@debian.org>
Date2025-11-29 01:40 +0100
Message-ID<LWhah-gvBi-1@gated-at.bofh.it>
In reply to#1270592
Clint Adams <clint@debian.org> writes:

> There's a logic error at https://salsa.debian.org/haskell-team/DHG_packages/-/blob/master/p/haskell-hledger/debian/rules?ref_type=heads#L5 because that stopped being the correct path.
>
> (We are similarly broken with darcs, aeson, debian, and hlint)

I hope the fix for haskell-hledger will also work for these four other
packages!

https://salsa.debian.org/haskell-team/DHG_packages/-/blob/master/p/haskell-hledger/debian/rules?ref_type=heads#L5

[toc] | [prev] | [next] | [standalone]


#1270729

FromNicholas D Steeves <sten@debian.org>
Date2025-11-19 00:00 +0100
Message-ID<LSCQ1-dZgQ-1@gated-at.bofh.it>
In reply to#1270583

[Multipart message — attachments visible in raw view] — view raw

"Simon Michael" <simon@joyful.com> writes:

> Thanks for the package update and bug report.

Yes, thank you, and sorry for not catching this (I don't use hledger
with a pager).

> hledger's way of running the pager has changed; it now requires that hledger is built with GHC's -threaded flag. But Debian's hledger has been built with the non-threaded runtime. (`hledger +RTS --info | grep way` shows rts_v instead of rts_thr.)
>
> The -threaded flag is enabled by default in hledger's cabal file. However it's also marked as "manual: False" which means cabal can toggle it off if it feels like it. (I assume Debian is building with cabal and not with stack.) Possibly that's what happened here ?

Could this be because the Debian source copy of the cabal file is not
the Hackage version (which upstream may have applied hot-fixes to)?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1120950#19

and/or is it related to the migration to debhelper?  And/or some other
tooling?

> FYI, unrelated to this issue, there's also a bad slowdown in hledger 1.50-1.50.2 
> (https://github.com/simonmichael/hledger/issues/2493). I aim to ship a 1.50.3 ASAP, fixing the slowdown and making -threaded mandatory.

Thank you!

[toc] | [prev] | [next] | [standalone]


#1270733

From"Simon Michael" <simon@joyful.com>
Date2025-11-19 01:00 +0100
Message-ID<LSDM5-dZVf-5@gated-at.bofh.it>
In reply to#1270729
hledger{,-ui,-web} 1.50.3 have been released on Hackage.

They now specify -threaded as a required build option; I'm curious if this will prevent wrong builds, even with that wrong Debian build script.

[toc] | [prev] | [next] | [standalone]


#1272032

FromNicholas D Steeves <sten@debian.org>
Date2025-11-29 01:40 +0100
Message-ID<LWhai-gvBi-3@gated-at.bofh.it>
In reply to#1270733

[Multipart message — attachments visible in raw view] — view raw

Hi Simon,

Sorry for the delay.  The answer you requested is below.

"Simon Michael" <simon@joyful.com> writes:

> hledger{,-ui,-web} 1.50.3 have been released on Hackage.
>
> They now specify -threaded as a required build option; I'm curious if this will prevent wrong builds, even with that wrong Debian build script.

I just tested this, and I confirm that hledger 1.50.3 builds with
"-threaded" when the fix for GHC's moved files is removed.  That said, I
built it against hledger-lib 1.50.3, because I was lazy and didn't think
that it would make a difference (ie: I skimmed hledger-lib's cabal file
1.50.2 to 1.50.3 diff).  Will a not-lazy test be required?

Cheers,
Nicholas

[toc] | [prev] | [next] | [standalone]


#1270584

From"Simon Michael" <simon@joyful.com>
Date2025-11-18 01:10 +0100
Message-ID<LShse-dKLJ-9@gated-at.bofh.it>
In reply to#1270476
Thanks for the package update and bug report.

hledger's way of running the pager has changed; it now requires that hledger is built with GHC's -threaded flag. But Debian's hledger has been built with the non-threaded runtime. (`hledger +RTS --info | grep way` shows rts_v instead of rts_thr.)

The -threaded flag is enabled by default in hledger's cabal file. However it's also marked as "manual: False" which means cabal can toggle it off if it feels like it. (I assume Debian is building with cabal and not with stack.) Possibly that's what happened here ?

FYI, unrelated to this issue, there's also a bad slowdown in hledger 1.50-1.50.2 
(https://github.com/simonmichael/hledger/issues/2493). I aim to ship a 1.50.3 ASAP, fixing the slowdown and making -threaded mandatory.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web