Package Details: ledger-git 20150808-1

Git Clone URL: https://aur.archlinux.org/ledger-git.git (read-only)
Package Base: ledger-git
Description: A double-entry accounting system with a command-line reporting interface
Upstream URL: http://ledger-cli.org
Licenses: BSD
Conflicts: ledger
Provides: ledger
Submitter: joni
Maintainer: joni
Last Packager: joni
Votes: 23
Popularity: 0.232582
First Submitted: 2009-05-28 01:14
Last Updated: 2015-08-18 09:06

Dependencies (10)

Required by (1)

Sources (1)

Latest Comments

maralorn commented on 2016-02-07 16:03

As mentioned in http://bugs.ledger-cli.org/show_bug.cgi?id=1144

I get this weird behavior, when using haskell:
# cat test.ledger
2015-10-10=2015-10-09 Test
Account1 2 EUR
Account2

# ledger -f test.ledger print
2015-10-10=2015-10-10 Test
Account1 2 EUR
Account2

Notice the secondary date has changed. This problem doesn't occur, when I build the package myself with ./acprep update && make from the same repo and commit. I am quite puzzled by the phenomenon.

Thanks!

csllbr commented on 2015-09-07 14:34

is it possible to add build support for python?

@@ -42,7 +42,7 @@ prepare() {

build() {
cd ledger; rm -rf build
- ./acprep "${_build:-opt}" --python --output=./build --prefix=/usr make all doc -- "${_defines[@]/#/-D}"
+ ./acprep "${_build:-opt}" --output=./build --prefix=/usr make all doc -- "${_defines[@]/#/-D}"
}

Thanks!

lothar_m commented on 2015-08-15 16:23

I'm unable to build the package at the moment.
The following error is returned when running "makepkg -s"

error: could not apply 48aec0f... boost::none_t no longer convertible from literal 0 in 1.58
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
==> ERROR: A failure occurred in prepare().
Aborting...

I've also tried to build without the "git cherry-pick" command but without success.
Anyone has any ideas?

ikke commented on 2015-07-28 16:30

The issue with boost 1.58 has just been fixed. Branch next builds again for me.

joni commented on 2015-05-12 21:32

Fixed, thanks.

csllbr commented on 2015-05-12 18:08

install: cannot stat ‘../doc/LICENSE’: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...


Any updates?

joni commented on 2015-05-11 15:09

Fixed upstream.

kjk commented on 2015-05-06 19:23

check the ledger package maintained by korjjj. There is a patch available, it worked for me when I applied it ad-hoc, and the aforementioned PKGBUILD applies it and that works too. It ought to work for this package. The patch just wraps small sections of the code in five of the .h files to handle Boost changes.

csllbr commented on 2015-04-28 18:27

The latest update of boost and boost-libs to 1.58 broke the build process. I guess we have to wait for the upstream fix. As always, downgrading solved the problem for me:

sudo pacman -U /var/cache/pacman/pkg/boost-libs-1.57.0-4-x86_64.pkg.tar.xz /var/cache/pacman/pkg/boost-1.57.0-4-x86_64.pkg.tar.xz


joni commented on 2015-02-03 12:47

Thanks! updated.

neven commented on 2015-02-02 21:10

namcap reports some wrong dependencies:
* boost instead of boost-libs
* PCRE, GMP, expat are redundant; deps of an outdated branch

Thanks for maintaining :)

atweiden commented on 2015-01-05 16:59

Please add texlive-plainextra to makedepends. It is needed to build the docs.

atweiden commented on 2015-01-04 19:04

Docs fail to compile for me.

/bin/texi2dvi: texinfo.tex appears to be broken.
This may be due to the environment variable TEX set to something
other than (plain) tex, a corrupt texinfo.tex file, or
to tex itself simply not working.
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Arch Linux) (preloaded format=etex)
restricted \write18 enabled.
entering extended mode
(./txiversion.tex
! I can't find file `texinfo.tex'.
l.1 \input texinfo.tex
@bye
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
! Emergency stop.
l.1 \input texinfo.tex
@bye
No pages of output.
Transcript written on txiversion.log.
/bin/texi2dvi: quitting.
doc/CMakeFiles/doc.dir/build.make:59: recipe for target 'doc/ledger3.pdf' failed
make[3]: *** [doc/ledger3.pdf] Error 1
CMakeFiles/Makefile2:163: recipe for target 'doc/CMakeFiles/doc.dir/all' failed
make[2]: *** [doc/CMakeFiles/doc.dir/all] Error 2
CMakeFiles/Makefile2:171: recipe for target 'doc/CMakeFiles/doc.dir/rule' failed
make[1]: *** [doc/CMakeFiles/doc.dir/rule] Error 2
Makefile:207: recipe for target 'doc' failed
make: *** [doc] Error 2
acprep: ERROR: Execution failed: make all doc
==> ERROR: A failure occurred in build().
Aborting...

joni commented on 2015-01-03 14:04

Thanks!

rwcarlsen commented on 2015-01-02 15:24

The following patch fixes the /usr/lib64 conflict:

--- ledger-git/PKGBUILD 2015-01-01 15:57:48.951870161 -0600
+++ ledger-git.patched/PKGBUILD 2015-01-01 22:31:24.786140238 -0600
@@ -11,7 +11,7 @@
## Uncomment this line if you want a debug build:
# _build=debug

-_defines=(BUILD_DOCS=ON)
+_defines=(BUILD_DOCS=ON CMAKE_INSTALL_LIBDIR=lib/)

## Uncomment this line if you want to include the ledger-mode:
# _defines+=BUILD_EMACSLISP=ON

rwcarlsen commented on 2015-01-02 04:45

--- ledger-git.backup/PKGBUILD 2015-01-01 15:57:48.951870161 -0600
The following patch fixes the /usr/lib64 conflict:

+++ ledger-git/PKGBUILD 2015-01-01 22:31:24.786140238 -0600
@@ -11,7 +11,7 @@
## Uncomment this line if you want a debug build:
# _build=debug

-_defines=(BUILD_DOCS=ON)
+_defines=(BUILD_DOCS=ON CMAKE_INSTALL_LIBDIR=lib/)

## Uncomment this line if you want to include the ledger-mode:
# _defines+=BUILD_EMACSLISP=ON

rwcarlsen commented on 2015-01-02 03:19

The new pacman 4.2 reports file conflicts if packages install into one of the symlinked directories like /lib, /usr/lib64, etc. The build-system for ledger will need to be updated/patched/reconfigured in order to be used with the new pacman.

myles commented on 2014-12-17 22:07

This line needs brackets like this: _defines+=(BUILD_EMACSLISP=ON)

myles commented on 2014-12-17 20:43

Hi, thanks for maintaining this package. Uncommenting _defines+=BUILD_EMACSLISP=ON no longer builds the emacs files.
Changing it to _defines+=" BUILD_EMACSLISP=ON" is looking
promising though.

myles commented on 2014-12-17 17:16

Hi, thanks for maintaining this package. Uncommenting _defines+=BUILD_EMACSLISP=ON no longer builds the emacs files.

Celti commented on 2014-11-07 01:24

You can fix the error by installing texlive-plainextra or not building the documentation. The former should probably be added to the makedepends for this.

trickyelf commented on 2014-10-26 19:53

I receive the following error when I attempt to install this:

...
[ 50%] Generating ledger3.pdf
/usr/bin/texi2dvi: texinfo.tex appears to be broken.
This may be due to the environment variable TEX set to something
other than (plain) tex, a corrupt texinfo.tex file, or
to tex itself simply not working.
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Arch Linux) (preloaded format=etex)
restricted \write18 enabled.
entering extended mode
(./txiversion.tex
! I can't find file `texinfo.tex'.
l.1 \input texinfo.tex
@bye
(Press Enter to retry, or Control-D to exit)
Please type another input file name:
! Emergency stop.
l.1 \input texinfo.tex
@bye
No pages of output.
Transcript written on txiversion.log.
/usr/bin/texi2dvi: quitting.
doc/CMakeFiles/doc.dir/build.make:59: recipe for target 'doc/ledger3.pdf' failed
make[3]: *** [doc/ledger3.pdf] Error 1
CMakeFiles/Makefile2:163: recipe for target 'doc/CMakeFiles/doc.dir/all' failed
make[2]: *** [doc/CMakeFiles/doc.dir/all] Error 2
CMakeFiles/Makefile2:171: recipe for target 'doc/CMakeFiles/doc.dir/rule' failed
make[1]: *** [doc/CMakeFiles/doc.dir/rule] Error 2
Makefile:207: recipe for target 'doc' failed
make: *** [doc] Error 2
acprep: ERROR: Execution failed: make doc

holos commented on 2014-02-20 20:32

seems the lack of documentation is still an issue [0]. I tried writing a patch [1] which seems to get the install part right, but the build part doesn't get run. I don't know cmake :/ In the mean time I just append the makeinfo lines in build():

cd doc
makeinfo --force --no-split -o ledger-mode.info ledger-mode.texi
makeinfo --force --no-split -o ledger3.info ledger3.texi

[0] http://bugs.ledger-cli.org/show_bug.cgi?id=1000
[1] http://sprunge.us/NaDG

joni commented on 2014-01-31 20:09

Please note that there may be build issues due to changes upstream (see https://github.com/ledger/ledger/pull/231). You can try reverting to a commit before that pull request was merged.

joni commented on 2014-01-25 14:23

Thanks to bluepill/EvilBit installing of ledger-mode can now be enabled (and works).

bluepill commented on 2014-01-04 12:19

Hi, as holos already mentioned, emacs ledger-mode can be built and installed by appending '-- -DBUILD_EMACSLISP=ON' to the acprep make line.

Problem is, the files won't compile with the current code. I fixed the issue in my fork of ledger [1] and filed a pull request [2].

Until it's merged, just replace the repo and add the above line.

[1] https://github.com/EvilBit/ledger
[2] https://github.com/ledger/ledger/pull/229

holos commented on 2013-12-16 20:24

nevermind the vim plugin, it is now in a separate repo

holos commented on 2013-12-16 02:00

to build and install the lisp files, append `-- -DBUILD_EMACSLISP=ON` to the acprep make line. Additionally, it would be nice to add the vim plugins to the package:

local _vimdir="$pkgdir/usr/share/vim/vimfiles"
install -Dm644 contrib/vim/compiler/ledger.vim "$_vimdir/compiler/ledger.vim"
install -Dm644 contrib/vim/ftplugin/ledger.vim "$_vimdir/ftplugin/ledger.vim"
install -Dm644 contrib/vim/indent/ledger.vim "$_vimdir/indent/ledger.vim"
install -Dm644 contrib/vim/syntax/ledger.vim "$_vimdir/syntax/ledger.vim"

holos commented on 2013-12-16 01:59

to build and install emacs, append `-- -DBUILD_EMACSLISP=ON` to the acprep make line. Additionally, it would be nice to add the vim plugins to the package:

local _vimdir="$pkgdir/usr/share/vim/vimfiles"
install -Dm644 contrib/vim/compiler/ledger.vim "$_vimdir/compiler/ledger.vim"
install -Dm644 contrib/vim/ftplugin/ledger.vim "$_vimdir/ftplugin/ledger.vim"
install -Dm644 contrib/vim/indent/ledger.vim "$_vimdir/indent/ledger.vim"
install -Dm644 contrib/vim/syntax/ledger.vim "$_vimdir/syntax/ledger.vim"

kurz commented on 2013-11-05 08:46

Would it be possible to include the emacs lisp files? right now, the package doesn't install these :(

joni commented on 2013-10-23 19:57

This likely broke when ledger switched to cmake. I will push a fix upstream.

immae commented on 2013-10-20 21:14

hi,
The package lacks texinfo files, which are essential to help to use ledger(they are in doc/*.texi in the git repo), since the manpage contains only a few informations.

Can you add them to the package ?

dlin commented on 2013-06-10 05:27

==> Starting pkgver()...
/var/abs/local/ledger-git/PKGBUILD: line 27: cd: ledger: Not a directory
==> Starting prepare()...
/var/abs/local/ledger-git/PKGBUILD: line 33: cd: ledger: Not a directory

Could you follow the standard prototype to modify the PKGBUILD?
/usr/share/pacman/PKGBUILD-git.proto

joni commented on 2013-01-14 20:45

Pull request for man pages is pending: https://github.com/ledger/ledger/pull/119
I haven't decided yet what version of the lisp files to install (ledger.el or ldg-*).

ecraven commented on 2013-01-14 09:24

would it be possible to include the emacs lisp files and the man page? right now, the package doesn't install these :(

joni commented on 2013-01-03 18:21

Can you post your results and the expected output to the mailing list (see http://list.ledger-cli.org/ )? Try running 'python2 test/RegressTests.py /usr/bin/ledger $(pwd) test/regress' in the git repository and report failed tests, too. (CAE63F5C-c.test and 647D5DB9.test are known to fail)

oneeyed commented on 2013-01-03 10:58

Indeed, I confirm that "next" is badly broken, as a simple "ledger balance" fails on some multi-currency transactions, while "ledger register" handles them fine.

oneeyed commented on 2013-01-03 10:47

joni: that (the switch to "next") may explain why my "balance" command doesn't work anymore with transactions using alternate currencies. I'll have to modify the PKGBUILD manually and go back to master.

joni commented on 2013-01-01 23:47

This is a bug in the master branch in that it does not honor the '--output' option. I switched the PKGBUILD to use the next branch for the time being as it is stable and does not see to many changes at the moment.

xilef commented on 2013-01-01 02:13

PKGBUILD seems out of date. The following changes built for me:

package () {
- cd "$srcdir/$_gitname/build"
+ cd "$srcdir/$_gitname"

- install -D -m644 ../doc/LICENSE $pkgdir/usr/share/licenses/custom/ledger-git/license.txt
+ install -D -m644 doc/LICENSE $pkgdir/usr/share/licenses/custom/ledger-git/license.txt

xilef commented on 2013-01-01 00:41

PKGBUILD seems out of date. The following changes built for me:

package () {
- cd "$srcdir/$_gitname/build"
+ cd "$srcdir/$_gitname"

- install -D -m644 ../doc/LICENSE $pkgdir/usr/share/licenses/custom/ledger-git/license.txt
+ install -D -m644 doc/LICENSE $pkgdir/usr/share/licenses/custom/ledger-git/license.txt

oneeyed commented on 2012-10-06 12:19

Despite the instructions in PKGBUILD, ledger is installed with a /usr/local prefix, not /usr.

kgunders commented on 2012-08-19 18:15

UPDATE: Now builds for me, although I have not had time to actually use it.

kgunders commented on 2012-05-23 08:36

FYI-- Not working for me....

acprep: INFO: Noticing include directory => /usr/include/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file acprep, line 623
==> ERROR: A failure occurred in build().
Aborting...

Ciao00

joni commented on 2012-05-21 14:35

This PKGBUILD now builds the 'master' branch by default. Please note that ledger switched to a cmake build process on its 'next' branch so I'm already including it in the make dependencies.

myles commented on 2012-05-18 13:48

This builds the 'next' branch (the alpha version), but I wonder if it would be better to build the 'master' branch (the beta version) by default, as John Wiegley would prefer?
34c34
< git clone $_gitroot $_gitname
---
> git clone -b master $_gitroot $_gitname

I tried to build the alpha version today but it failed, the beta works fine.

joni commented on 2012-03-06 17:20

See also https://github.com/jwiegley/ledger/issues/55
Until this is fixed you can remove --no-python from the PKGBUILD.

vademecum commented on 2012-02-18 11:12

ledger doesn't build with python support by default anymore. This breaks building this package.

Output:
Submodule path 'lib/utfcpp': checked out '2233ec933f5661c7050b94d3b14f5f9f51ae3d55'
acprep: ERROR: Caught exception
Traceback (most recent call last):
File "./acprep", line 361, in run
exit_code = self.main(*main_args)
File "./acprep", line 561, in main
self.configure_args.remove('--enable-python')
ValueError: list.remove(x): x not in list

Corresponding commit: https://github.com/jwiegley/ledger/commit/7e6dbcd64ca1edb3a68b686e1d0a3ecdb71a8816

myles commented on 2011-03-22 12:35

I needed this to compile with boost 1.46.0-4:
CPPFLAGS="-DBOOST_IOSTREAMS_USE_DEPRECATED -DBOOST_FILESYSTEM_VERSION=2"

myles commented on 2011-03-22 12:33

I needed this to compile:
CPPFLAGS="-DBOOST_IOSTREAMS_USE_DEPRECATED -DBOOST_FILESYSTEM_VERSION=2"

Anonymous comment on 2011-03-18 05:41

This compile to a 164 MB package uncompressed. Could you strip all the binaries?

Thanks

joni commented on 2010-12-18 15:15

thanks, updated the PKGBUILD.

myles commented on 2010-12-05 15:39

To compile with boost 1.45 (and maybe 1.44 too) I did needed to do this:
CPPFLAGS=-DBOOST_IOSTREAMS_USE_DEPRECATED ./acprep update

madalu commented on 2010-11-28 23:54

Ledger-git fails to build with boost 1.45 (no surpise there - it seems to have problems with each new boost upgrade). In any case, here's the error message:

configure: error: "Could not find boost_iostreams library (set CPPFLAGS and LDFLAGS?)"
See `config.log' for more details
acprep: ERROR: Execution failed: sh configure CPPFLAGS=-DNDEBUG=1 -isystem /usr/local/include CFLAGS=-march=native -O2 -pipe -O3 -fomit-frame-pointer CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fpch-deps -Wconversion -pthread -O3 -fomit-frame-pointer -pipe LDFLAGS=-Wl,--hash-style=gnu -Wl,--as-needed -O3 -fomit-frame-pointer -L/usr/local/lib -L/usr/lib --with-included-gettext --enable-pch --disable-static --prefix=/usr

I do have the libraries it complains about

locate boost_iostreams

/usr/lib/libboost_iostreams-mt.a
/usr/lib/libboost_iostreams-mt.so
/usr/lib/libboost_iostreams-mt.so.1.45.0
/usr/lib/libboost_iostreams.a
/usr/lib/libboost_iostreams.so
/usr/lib/libboost_iostreams.so.1.45.

Thanks!

madalu commented on 2010-10-19 14:14

With the recent python update, I believe this package requires all invocations of python to be changed to:

#!/usr/bin/env python2

or

#!/usr/bin/python2

sholmes88 commented on 2010-07-02 23:32

I don't think cvs needs to be in the makedepends anymore. I don't have it installed on my box and the package is building as I speak.