gnucash-svn build error on gentoo

Boyd Kelly (Coast Systems) bkelly at coastone.ca
Sat Mar 4 02:42:57 EST 2006


Thanks Josh!  Much appreciated info.

bk 

-----Original Message-----
From: Josh Sled [mailto:jsled at asynchronous.org] 
Sent: March 3, 2006 8:08 PM
To: Boyd Kelly (Coast Systems)
Cc: gnucash-devel at gnucash.org
Subject: Re: gnucash-svn build error on gentoo

On Thu, 2006-03-02 at 07:33 -0800, Boyd Kelly (Coast Systems) wrote:
> I have been trying the gentoo gnucash-svn recently and was able to 
> build with no problems till about Feb 22.  Any ideas what may be 
> causing the following?  Thanks very much for any help.
[deletia]
> You're building from SVN...  But your build system is broken
> Don't do that.   Complain to your build-system creator.
> make[3]: *** [_gnc-svninfo.h] Error 1

Derek had originally made some changes to compensate for the svn ebuild
not working on gentoo; around the 22nd he un-did those changes.  I've
been meaning to fix the ebuild to accomodate this, but I've not found
time yet.  Until an svn ebuild is fixed, you can use the 1.9.x ebuild
(in the source tree and at
http://bugs.gentoo.org/show_bug.cgi?id=122337 ), or just manually
checkout and build from svn.


The way we put the revision number of the build into a header file (and
thus into the splash screen, &c.) uses svnversion, which reads the
metadata from the .svn directory.  As per the "fix" of
http://bugs.gentoo.org/show_bug.cgi?id=96386 , subversion.eclass doesn't
keep the .svn directories, and thus is broken; I'm reminded of the
phrase "premature optimization is the root of all evil"... :/

In any case, I think subversion.eclass just shouldn't be used, and
instead `src_unpack` should be something like [[[

SVN_REPO="http://svn.gnucash.org/repo/gnucash/trunk"
src_unpack() {
    svn checkout ${SVN_REPO} ${S}
    cd ${S}
    ./autogen.sh || die "cannot autogen"
}

]]]
With that, the `src_compile` and `src_install` functions from the
gnucash-1.9.x.ebuild should work fine as they are.

--
...jsled
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a}@${b}`



More information about the gnucash-devel mailing list