Package Details: gnucash 2.6.17-3

Git Clone URL: https://aur.archlinux.org/gnucash.git (read-only)
Package Base: gnucash
Description: A personal and small-business financial-accounting application
Upstream URL: http://www.gnucash.org
Licenses: GPL
Submitter: City-busz
Maintainer: Schmeidenbacher
Last Packager: Schmeidenbacher
Votes: 24
Popularity: 16.724750
First Submitted: 2017-06-30 07:39
Last Updated: 2017-07-07 14:07

Latest Comments

Schmeidenbacher commented on 2017-07-13 19:48

@corecode: I would rather not do it directly in this package, as python2 is a relatively large dependency for that, which probably not everybody using this package wants.

Before the switch to AUR4 there was a gnucash-python file, which enabled the python 2 bindings.

So i (re)created the gnucash-python package. If you want the python bindings enabled you can just install that other one. It has it's conflict field set to gnucash, so that you just need to install it and it will cleanly remove the non-python version by itself. Same is true for the other way around. If you install this package it will replace the gnucash-python one as well.

(Link the the other package: https://aur.archlinux.org/packages/gnucash-python/)

If you want, in can orphan the python-gnucash package and let you maintain it. Just let me know if you want to.

corecode commented on 2017-07-13 13:31

could you include python scripting? I use

PYTHON=`which python2` ./configure ... --enable-python

dxu commented on 2017-07-10 02:05

With regards to the manual build, the gnucash developers are aware that the webkitgtk2 dependency needs to be dropped (in favor of webkit2gtk). It looks like they are confident work will be done soon [0].

This means this package should be able to return to the official repositories within a few months.

[0]: https://bugzilla.gnome.org/show_bug.cgi?id=751635

Schmeidenbacher commented on 2017-07-07 18:52

@dtbaumann: Interestingly enough … that doesn't seem to be the case. I just built it with both dependencies. Both went through. And both packages worked after installation. So i checked which guile libraries are actually used by both build versions of gnucash.

Turns out both were using /usr/lib/libguile.so.17.4.0 and /usr/lib/libguile-srfi-srfi-1-v-3.so.3.0.2 both being found in guile1.8 and being installed as a secondary dependency via gnucash's slib dependency.

So for now i won't change the package again. Unless it really fails to work for someone. I might change it in a future version though.

dtbaumann commented on 2017-07-07 17:32

@Schmeidenbacher ... and in this case the dependency probably has to be changed back to guile2.0 (which is what gnucash and the compilation uses)

Schmeidenbacher commented on 2017-07-07 14:09

Here as well @dtbaumann. The build ran through on my normal system without the need for a clean chroot. Added the change in the PKGBUILD.

dtbaumann commented on 2017-07-07 12:39

gnucash still uses guile2.0 but during compilation guile 2.2 is used if available. This results in the described error messages

;;; WARNING: loading compiled file /usr/lib/gnucash/scm/ccache/2.0/gnucash/engine.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

and possibly in the segfaults.

Adding

make GUILD=/usr/bin/guild2.0

in the build() resolves the error messages. Gnucash then compiles and starts clean here (2.6.17-2)

Schmeidenbacher commented on 2017-07-05 19:33

Now i got the segfault reproduced. But only if i try to compile it on my "messy" system. So something i have installed on my machine interferes with the build process.

It works perfectly in a clean chroot on the same machine though, which also means that AUR-helpers won't do you any good with this package it seems.

For more information about clean chroots: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot

Here are my build steps.

I ensure that my /tmp (which is a RAM disk in my case) is suitable

sudo mount -o remount,exec,dev,suid /tmp/

Then i create a folder to keep the chroot in

mkdir /tmp/chroot/ -p

Then i create the clean chroot with only the base-devel group in it

mkarchroot /tmp/chroot/root base-devel

And then i do the build in a temporary copy of the clean chroot with the two prebuild dependencies added which aren't in the official repos and need to be added in by hand :

makechrootpkg -T -r /tmp/chroot/ -I goffice0.8-0.8.17-4-x86_64.pkg.tar.xz -I webkitgtk2-2.4.11-6-x86_64.pkg.tar.xz -- -s

This builds without any segfault on several of my machines.

uhoso commented on 2017-07-05 18:56

I got the same segmantation fault as kingcreole.

pacman -S base-devel --needed said "There is nothing to do"

Schmeidenbacher commented on 2017-07-05 10:23

If you're missing pkg-config then you haven't installed the full base-devel group.

Please do a

pacman -S base-devel --needed

before you build a package. That will install only the missing packages from the base-devel group if any are missing.

I tested the package in a clean chroot with only the base-devel group in addition to the defined dependencies installed. And that built as expected.

All comments