Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 664836

Summary: app-office/hledger - command line accounting program, for tracking money, time, or other commodities
Product: Gentoo Linux Reporter: Anton Kochkov <anton.kochkov>
Component: New packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: UNCONFIRMED ---    
Severity: normal CC: chris.kerr, dschridde+gentoobugs, haskell, jstein, slyfox, stasibear, usefuljunk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://hledger.org/
Whiteboard:
Package list:
Runtime testing required: ---

Description Anton Kochkov 2018-08-29 17:04:46 UTC
Gentoo already has app-office/ledger, but this project is dead and didn't update for years. There are two most active forks, and hledger (written in Haskell) is the most popular one.

http://hledger.org/

GitHub: https://github.com/simonmichael/hledger/
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-29 19:09:18 UTC
haskell overlay has it packaged for a while as
    https://github.com/gentoo-haskell/gentoo-haskell/tree/master/dev-haskell/hledger

If it works for you we can bring it in main gentoo tree as well.
Comment 2 anonymous 2018-10-21 00:13:33 UTC
*** Bug 669158 has been marked as a duplicate of this bug. ***
Comment 3 anonymous 2018-10-21 00:15:32 UTC
I want hledger and hledger-ui. You should move hledger and its associated programs from haskell overlay to gentoo overlay.

I don't use haskell overlay because of https://bugs.gentoo.org/555266 and https://bugs.gentoo.org/449094
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-21 10:11:38 UTC
(In reply to crocket from comment #3)
> I don't use haskell overlay because of https://bugs.gentoo.org/555266 and
> https://bugs.gentoo.org/449094

These problems are not specific to ::haskell overlay.
Comment 5 anonymous 2018-10-21 11:00:09 UTC
You're right that https://bugs.gentoo.org/449094 affects every overlay.

You can work around https://bugs.gentoo.org/555266 with stabilization process. But, haskell overlay doesn't stick to this process.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-21 12:45:19 UTC
(In reply to crocket from comment #5)
> You're right that https://bugs.gentoo.org/449094 affects every overlay.

::gentoo tree is not exempted from it either.

> You can work around https://bugs.gentoo.org/555266 with stabilization
> process. But, haskell overlay doesn't stick to this process.

stabilization in gentoo does not prevent that from happening. Recent example: bug #633312
Comment 7 anonymous 2018-10-21 14:15:48 UTC
(In reply to Sergei Trofimovich from comment #6)
> > You can work around https://bugs.gentoo.org/555266 with stabilization
> > process. But, haskell overlay doesn't stick to this process.
> 
> stabilization in gentoo does not prevent that from happening. Recent
> example: bug #633312

That bug doesn't seem to be related to https://bugs.gentoo.org/555266
Comment 8 anonymous 2018-10-21 14:17:05 UTC
Anyway, it would be good to see hledger and its associated programs on gentoo overlay.
Comment 9 anonymous 2018-10-22 02:13:31 UTC
I thought about how to use haskell overlay without hassles.

I ran "emerge -p hledger hledger-ui" and added packages to be installed to /etc/portage/packages.accept_keywords/haskell_overlay

Since specific versions of haskell overlay packages are unmasked, a gentoo upgrade will not automatically upgrade haskell overlay packages.

It is stabilization done by a user.
Comment 10 Beetle B. 2018-12-21 01:46:11 UTC
Another vote for this. It is one of the more well known Haskell apps out there.

hledger
hledger-ui
hledger-web
hledger-lib

I tried installing it from the Haskell overlay. After lots and lots of prompts to add this or that to package.accept_keywords, and with a lot of manual interventions, I still couldn't get it to build. The stumbling point is resourcet - I just cannot install any version of it in the overlay that hledger would need. After two nights of this I gave up.

This requires a lot more expertise than I have. Please bring into the Portage tree.
Comment 11 Anton Kochkov 2020-03-26 18:01:13 UTC
hledger is the most active ledger forks/projects - just see its release notes history: https://hledger.org/release-notes.html

It would be really awesome to have it out of the box. After all, there are way less popular packages in the Gentoo main tree...
Comment 12 Dennis Schridde 2020-08-29 16:36:09 UTC
Re: Summary: ... app-office/ledger fork

Is hledger really a fork?  I thought it's a rewrite in Haskell, where ledger was written in C++?
Comment 13 Beetle B. 2020-08-29 19:19:56 UTC
At this stage it is neither. It does not support all of Ledger's features, and has its own features that Ledger doesn't.
Comment 14 Chris Kerr 2024-03-28 20:16:11 UTC
Thanks to whoever added ppc64 support to ghc and haskell!

I have built hledger from the haskell overlay on ppc64 with FEATURES=test

Here is the list of packages that needed adding to package.accept_keywords i.e. that would need to be added to the main ::gentoo portage


dev-haskell/decimal::haskell ~*
dev-haskell/githash::haskell ~*
dev-haskell/utility-ht::haskell ~*
dev-haskell/isomorphism-class::haskell ~*
dev-haskell/csv::haskell ~*
dev-haskell/pager::haskell ~*
dev-haskell/pretty-simple::haskell ~*
dev-haskell/uglymemo::haskell ~*
dev-haskell/tabular::haskell ~*
dev-haskell/lucid::haskell ~*
dev-haskell/control-monad-free::haskell ~*
dev-haskell/deferred-folds::haskell ~*
dev-haskell/wizards::haskell ~*
dev-haskell/text-builder-dev::haskell ~*
dev-haskell/cassava-megaparsec::haskell ~*
dev-haskell/text-builder::haskell ~*
dev-haskell/text-ansi::haskell ~*
dev-haskell/hledger-lib::haskell ~*
app-office/hledger::haskell ~*

# Required for FEATURES=test on hledger dependencies
dev-haskell/rebase::haskell ~*
dev-haskell/rerebase::haskell ~*
dev-haskell/vector-instances::haskell ~*
dev-haskell/bifunctors::haskell ~*
dev-haskell/either::haskell ~*
dev-haskell/groups::haskell ~*
dev-haskell/selective::haskell ~*
dev-haskell/semigroupoids::haskell ~*
dev-haskell/keys::haskell ~*
dev-haskell/pointed::haskell ~*