Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122337 - gnucash 1.9.0 / 2.0.0 (version bump)
Summary: gnucash 1.9.0 / 2.0.0 (version bump)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 125468
Blocks:
  Show dependency tree
 
Reported: 2006-02-10 01:34 UTC by Tobias Sager
Modified: 2007-07-31 03:22 UTC (History)
34 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnucash-1.9.0.ebuild (gnucash-1.9.0.ebuild,934 bytes, text/plain)
2006-02-10 12:28 UTC, Martin Klaffenboeck
Details
Revised ebuild with DEPENDS, redefined install path, comments (gnucash-1.9.0.ebuild,2.99 KB, text/plain)
2006-02-16 12:33 UTC, Josh Sled
Details
Revised ebuild with better DEPENDS, gconf schema install, slotting. (gnucash-1.9.0.ebuild,3.33 KB, text/plain)
2006-02-19 08:43 UTC, Josh Sled
Details
Ebuild for gnucash-1.9.1 (gnucash-1.9.1.ebuild,1.65 KB, text/plain)
2006-02-22 19:41 UTC, Jose Marino
Details
ebuild for gnucash-1.9.1 with patches that fix sandbox violations (ebuild_patches.tar.gz,2.25 KB, application/octet-stream)
2006-02-22 23:02 UTC, Jose Marino
Details
gnucash-1.9.2 ebuild (gnucash-1.9.2.ebuild,4.38 KB, text/plain)
2006-03-05 19:19 UTC, Josh Sled
Details
gnucash-1.9.5.ebuild (gnucash-1.9.5.ebuild,4.38 KB, text/plain)
2006-04-25 09:35 UTC, Ed Catmur
Details
gnucash-1.9.5-uninitialized-fix.patch (gnucash-1.9.5-uninitialized-fix.patch,679 bytes, patch)
2006-04-25 09:36 UTC, Ed Catmur
Details | Diff
gnucash-1.9.5-uninitialized-fix.patch (gnucash-1.9.5-uninitialized-fix.patch,659 bytes, patch)
2006-05-01 03:50 UTC, Jan Pieczkowski
Details | Diff
SLOT="0", un-/opt'ed ebuild with docs install (gnucash-1.9.6.ebuild,2.64 KB, text/plain)
2006-05-27 09:30 UTC, Josh Sled
Details
1.9.7 ebuild (new 1.9.0 docs) (gnucash-1.9.7.ebuild,2.62 KB, text/plain)
2006-06-06 13:20 UTC, Josh Sled
Details
gnc-valgrind.patch (gnc-valgrind.patch,662 bytes, patch)
2006-06-08 21:37 UTC, Ed Catmur
Details | Diff
gnucash-2.0.0.ebuild (gnucash-2.0.0.ebuild,2.27 KB, text/plain)
2006-07-10 21:12 UTC, Bret Towe
Details
gnucash-2.0.0.ebuild (gnucash-2.0.0.ebuild,2.29 KB, text/plain)
2006-07-11 12:05 UTC, Bret Towe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Sager 2006-02-10 01:34:45 UTC
First unstable version on the way to 2.0.
New: GTK2 support!
Comment 1 Martin Klaffenboeck 2006-02-10 12:00:53 UTC
This is not a version bump, because this is now for gnome2, so many dependencies change.
Comment 2 Martin Klaffenboeck 2006-02-10 12:28:03 UTC
Created attachment 79454 [details]
gnucash-1.9.0.ebuild

A first gnucash-1.9.0 ebuild.
Note:  This does not contain dependency information, but if you are used to unstable packages, you will be able to use the --oneshot option to emerge the dependencies after configure failure first.
Comment 3 Sebastian Spaeth 2006-02-12 06:26:28 UTC
If you use the provided ebuild, please ~amd64 as arch from the beginning. It works just as well as the ~x86 version.
Comment 4 Josh Sled 2006-02-16 12:33:24 UTC
Created attachment 79960 [details]
Revised ebuild with DEPENDS, redefined install path, comments

I started with the gnucash-1.8.11 depends list, but updated it for both 1.9.0's dependencies (from configure.in) and some USE flagage.  I've made the *default* install be into /opt/${P}, so users can run this without trashing their 1.8.x install.  At the same time, the dev docs are installed into /usr/share/doc/${P}, as normal.

Still need to get the goffice/gsf and qof conditional builds setup correctly, as well as the use the gconf schema install that the gnome2 class should provide.
Comment 5 Josh Sled 2006-02-16 12:37:09 UTC
(In reply to comment #4)
> Created an attachment (id=79960) [edit]
> Revised ebuild with DEPENDS, redefined install path, comments

More notes:

- The '~'s for non-{x86,amd64} should be removed; my misunderstanding.

- There are ~5 sandbox violations by the gnucash makefiles, one for each gconf-schema install; the makefiles attempt to call mkdir against the "wrong" path.

Comment 6 Jose Marino 2006-02-18 14:04:01 UTC
Modified two dependency lines:

--- gnucash-1.9.0.ebuild-old    2006-02-18 14:58:03.000000000 -0700
+++ gnucash-1.9.0.ebuild        2006-02-18 14:59:08.000000000 -0700
@@ -21,7 +21,6 @@
        >=dev-libs/popt-1.5
         >=x11-libs/gtk+-2.4*
         >=gnome-base/libgnomeui-2.4*
-        >=media-libs/gdk-pixbuf-0.22.0*
         >=gnome-base/libgnomeprint-2.10*
         >=gnome-base/libgnomeprintui-2.10*
         >=gnome-base/libglade-2.4*
@@ -58,7 +57,6 @@
 #      =app-text/docbook-xml-dtd-4.1.2*

 DEPEND="${RDEPEND}
-       >=dev-libs/slib-2.3.8
        dev-util/pkgconfig
        nls? ( sys-devel/gettext )"
Comment 7 Josh Sled 2006-02-19 08:43:04 UTC
Created attachment 80186 [details]
Revised ebuild with better DEPENDS, gconf schema install, slotting.

This version has the following changes:
- Slotting, which is useful as the stated goal is to not overwrite (or remove) the user's existing stable install.
- removed not-{x86,amd64} "~"s.
- Better (R)DEPENDS:
  - removed '*'s from '>=' depends
  - gdk-pixbuf removed
  - slib uniqified
  - >=goffice-0.0.4; this means you'll need to keyword goffice-0.1.0 (and thus libgsf-1.13.3)... but that's only right and correct.
- TABs, not spaces (, no matter how silly TABs are.)
- gconf schema installation, but I needed to override the gnome2.eclass versions due to package location.
- cleaned up $Header$.
Comment 8 Josh Sled 2006-02-22 17:32:21 UTC
For the record, this version works fine with 1.9.1, with a simple rename.
Comment 9 Jose Marino 2006-02-22 19:41:22 UTC
Created attachment 80494 [details]
Ebuild for gnucash-1.9.1

Uses default install locations (/usr)
Comment 10 Jose Marino 2006-02-22 19:45:31 UTC
I keep getting sandbox violations because of trying to install in /opt. They could be solved by recreating the whole file structure under /opt before hand, or sed'ing this kind of lines out of the Makefiles:
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
.....

If instead we let econf install in the default locations (under /usr) everything is a lot easier. We don't have to override the gnome2.eclass and the whole ebuild becomes simpler.

See #9 for an ebuild for gnucash-1.9.1 using default install positions. It compiles and installs fine.

When running it for the first time I get a non critical error. It complains about not being able to "find the default values". It's like the gconf configuration files are not getting installed properly. Don't know what is causing it.
Comment 11 Josh Sled 2006-02-22 19:53:30 UTC
(In reply to comment #10)
> I keep getting sandbox violations because of trying to install in /opt. They
> could be solved by recreating the whole file structure under /opt before hand,
> or sed'ing this kind of lines out of the Makefiles:
> test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
> test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"

The sandbox violations aren't because of installing into /opt, but because of -- as you say -- the incorrect non-DESTDIR'ed mkdir calls.  In short, I think, the gnucash makefile should respect the wacky gconf environment option to not actually do installs.



> If instead we let econf install in the default locations (under /usr)
> everything is a lot easier. We don't have to override the gnome2.eclass and the
> whole ebuild becomes simpler.

It's easier, but it's incorrect.  This is an unstable test series, not a stable release.  There's an expected many months before the stable version is available.  We [gnucash, and gentoo I hope] want users to have both installed at the same time: the unstable version for testing and the stable version for safely getting things done.

A simplification of the ebuild to install in /usr should be the one in portage when 2.0 is released, but until then let's let users have the best of both worlds, eh?
Comment 12 Jose Marino 2006-02-22 23:02:32 UTC
Created attachment 80500 [details]
ebuild for gnucash-1.9.1 with patches that fix sandbox violations

I guess it makes sense to install under /opt. I just wanted to get it up and running to start playing with it.

I modified your ebuild and added 4 patches that fix the sandbox violations. It compiled and installed under /opt fine on an amd64. I haven't tried to run it yet.
Comment 13 Chan Min Wai 2006-02-23 19:44:02 UTC
Does this include the Modular X support?
Comment 14 Jose Marino 2006-02-24 17:25:35 UTC
In an amd64 the ebuild installs libraries under /opt/gnucash-1.9.1/lib64
Maybe it should do it under /opt/gnucash-1.9.1/lib

Other than that it emerges and runs fine. I added this line at the end of /etc/gconf/2/path
xml:readonly:/opt/gnucash-1.9.1/etc/gconf/gconf.xml.defaults

And run gnucash with the following script:

#!/bin/sh
PACKAGE=gnucash-1.9.1
export PATH=/opt/${PACKAGE}/bin:$PATH
export LD_LIBRARY_PATH=/opt/${PACKAGE}/lib64:$LD_LIBRARY_PATH
gnucash
Comment 15 Jose Marino 2006-02-24 17:37:17 UTC
ignore previous posting, I had some leftover files from trying to install it under /usr

After deleting them it complains about not finding the defauls
Comment 16 Peter Gustafson 2006-02-28 05:58:52 UTC
I'm trying to emerge for ~amd64 and it fails not finding libgsf-gnome-1.pc.  epm -q ligsf reveals I have libgsf-1.13.3.  I suspect this relates to the USE=-gnome I use.

-------------
checking for libgsf >= 1.12.2... found
checking for libgsf-1 >= 1.12.2 libgsf-gnome-1 >= 1.12.2... Package libgsf-gnome-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `libgsf-gnome-1.pc' to the PKG_CONFIG_PATH environment variable No package 'libgsf-gnome-1' found
configure: error: Library requirements (libgsf-1 >= 1.12.2 libgsf-gnome-1 >= 1.12.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/gnucash-1.9.1/work/gnucash-1.9.1/config.log

!!! ERROR: app-office/gnucash-1.9.1 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
-----------


# emerge info
Portage 2.0.54 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 audiofile avi berkdb bitmap-fonts blas bonobo bzip2 clisp crypt cups curl eds emacs emboss encode esd exif expat f77 fam ffmpeg flac foomaticdb fortran gcj gdbm gif gimpprint ginac glut gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 java jikes jpeg junit kerberos lcms libclamav libwww lua lzw lzw-tiff mad mhash mikmod mng motif mp3 mpeg ncurses new-login nvidia oav ofx ogg oggvorbis openal opengl oss other_var1 other_var2 pam pcre pda pdflib perl php pic png ppds python quicktime quotes readline real recode samba sane scanner sdl spell ssl subversion tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l vorbis xine xml2 xmms xpm xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 17 Josh Sled 2006-02-28 19:58:39 UTC
(In reply to comment #16)
> I'm trying to emerge for ~amd64 and it fails not finding libgsf-gnome-1.pc. 
> epm -q ligsf reveals I have libgsf-1.13.3.  I suspect this relates to the
> USE=-gnome I use.

That'd be it; gnucash (and it's deps) require gnome.  The ebuild should use built_with_use from eutils to ensure this.
Comment 18 Peter Gustafson 2006-03-01 11:23:50 UTC
Just confirming that by adding 

gnome-extra/libgsf gnome

to my package.use file and remerging, my problem went away.  I think that this is the only package which needs this change.


(In reply to comment #17)
> That'd be it; gnucash (and it's deps) require gnome.  The ebuild should use
> built_with_use from eutils to ensure this.
Comment 19 Josh Sled 2006-03-05 19:19:38 UTC
Created attachment 81482 [details]
gnucash-1.9.2 ebuild

This version -- a version-named copy of http://svn.gnucash.org/repo/gnucash/tags/1.9.2/packaging/gnucash-1.9.x.ebuild from the source tree -- has the following changes:
* `built_with_use gnome` checks for libgsf and goffice.
* revised gconf schema installation which Should Work.
* no Makfile patches, since they're now in the source tree.
* a commented-out (+ reason) make_desktop_entry rule
* expanded ChangeLog* and README* installations
Comment 20 Peter Gustafson 2006-03-06 09:43:09 UTC
Hi Josh,  
I built it today with goffice -gnome and it seems to work fine.  Why add built_with_use for goffice?   Perhaps I'm missing something?  Thanks,

From my prior experience I agree libgsf +gnome is required.

> * `built_with_use gnome` checks for libgsf and goffice.
Comment 21 Laurent Duperval 2006-03-06 16:25:30 UTC
Quick question, if I want to install this and make sure the 1.8.x version remains, do I need to do anything particular or will 

emerge =app-office/gnucash-1.9.2 

do the trick?

Yes, it's a noobie question... please don't shoot me! :-)
Comment 22 Josh Sled 2006-03-06 16:28:24 UTC
(In reply to comment #21)
> Quick question, if I want to install this and make sure the 1.8.x version
> remains, do I need to do anything particular or will 
> 
> emerge =app-office/gnucash-1.9.2 

You'll need to add it to /etc/portage/package.keywords, but yes, that'll work.  It's slotted specifically so you can have them both co-installed.
Comment 23 younker 2006-03-07 06:17:03 UTC
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../lib/libqof/qof -I../../lib/libqof/qof -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I /usr/include/g-wrap -O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -msse2 -fforce-addr -momit-leaf-frame-pointer -pipe -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gw-engine.lo -MD -MP -MF .deps/gw-engine.Tpo -c gw-engine.c  -fPIC -DPIC -o .libs/gw-engine.o
cc1: warnings being treated as errors
gw-engine.c: In function 'gw__tmp424_xaccQueryAddDateMatch_wrapper':
gw-engine.c:16436: warning: 'gw__scm_extras[0]' is used uninitialized in this function
make[5]: *** [gw-engine.lo] 错误 1
make[5]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/engine'
make[4]: *** [all-recursive] 错误 1
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/engine'
make[3]: *** [all] 错误 2
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/engine'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2'
make: *** [all] 错误 2

!!! ERROR: app-office/gnucash-1.9.2 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Portage 2.1_pre5-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.3.6-r3, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.12.0_pre16
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -msse2 -fforce-addr -momit-leaf-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -msse2 -fforce-addr -momit-leaf-frame-pointer -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp ftp://gg3.net/pub/linux/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo ftp://ftp.isu.edu.tw/pub/Linux/Gentoo"
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-Wl,-O2"
LINGUAS="zh_CN"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/myportage /usr/local/gnome-experimental /usr/local/bmg-main /usr/local/xgl-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X accessibility alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo bzip2 bzlib bzlibi cairo cdparanoia cdr cjk cpdflib crypt cups dba dbus divx4linux dnotify doc dvd dvdr eds emboss encode esd exif ffmpeg firefox flac font-server foomaticdb gd-external gdbm gif glc glitz gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib innodb jack java jpeg kde kdeenablefinal kerberos kernel_linux ldap libg++ libnotify libwww live logitech-mouse mad mikmod mime mmx mng mozilla mp3 mpeg mule ncurses nls no_wxgtk1 nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre pdflib perl php png postgres python qt quicktime readline real rplay rtc samba spell sse sse2 ssl stroke subversion svg tcpd tiff truetype truetype-fonts udev usb vcd vorbis win32codecs wmf xine xml xml2 xv xvid zlib elibc_glibc linguas_zh_CN userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, MAKEOPTS

Comment 24 Josh Sled 2006-03-07 06:41:52 UTC
> cc1: warnings being treated as errors
> gw-engine.c: In function 'gw__tmp424_xaccQueryAddDateMatch_wrapper':
> gw-engine.c:16436: warning: 'gw__scm_extras[0]' is used uninitialized in this
> function

This is the standard "gwrap 1.3.4 generates code that doesn't compile against gcc4 without warnings that gnucash -Werror's out on."  You might want to modify the ebuild to configure with --disable-error-on-warning, but that's a bad workaround.    I guess we need a gwrap-1.9.6 ebuild that we can dep on when >=gcc-4.
Comment 25 Ken 2006-03-07 20:23:58 UTC
Making all in core-utils
make[3]: Entering directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/core-utils'
rm -f gnucash g-wrapped
ln -sf . gnucash
ln -sf . g-wrapped
touch .scm-links
FLAVOR=gnome /usr/bin/guile -c \
          "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
           (primitive-load \"./gw-core-utils-spec.scm\") \
           (gw:generate-wrapset \"gw-core-utils\")"
FLAVOR=gnome /usr/bin/guile -c \
          "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
           (primitive-load \"./gw-core-utils-spec.scm\") \
           (gw:generate-wrapset \"gw-core-utils\")"
ERROR: no code for module (g-wrap gw-glib-spec)

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
ERROR: no code for module (g-wrap gw-glib-spec)

Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15.1 x86_64)
=================================================================
System uname: 2.6.15.1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.tds.net/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://jetsam/gentoo-portage"
USE="amd64 X a52 aac alsa audiofile avi berkdb bitmap-fonts bzip2 cairo canvas cdr crypt curl daap dbus dvd dvdr eds emboss encode exif expat fam ffmpeg firefox foomaticdb fortran gif gimp glut gnome gstreamer gtk gtk2 gtkhtml guile hal idn imagemagick imlib ipod ipv6 jpeg lcms lzw lzw-tiff mad mikmod mng mono mp3 mpeg mysql mythtv nautilus ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pcre pdflib perl png python quicktime readline rtc sdl spell sqlite ssl svg theora threads tiff truetype truetype-fonts type1-fonts udev usb userlocales v4l v4l2 vorbis xine xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

I've remerged guile, swig, g-wrap, and no joy.
Comment 26 Priit Laes (IRC: plaes) 2006-03-08 05:55:33 UTC
(In reply to comment #25)
> Making all in core-utils
> make[3]: Entering directory
> `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/core-utils'
> rm -f gnucash g-wrapped
> ln -sf . gnucash
> ln -sf . g-wrapped
> touch .scm-links
> FLAVOR=gnome /usr/bin/guile -c \
>           "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
>            (primitive-load \"./gw-core-utils-spec.scm\") \
>            (gw:generate-wrapset \"gw-core-utils\")"
> FLAVOR=gnome /usr/bin/guile -c \
>           "(set! %load-path (cons \"/usr/share/guile\" %load-path)) \
>            (primitive-load \"./gw-core-utils-spec.scm\") \
>            (gw:generate-wrapset \"gw-core-utils\")"
> ERROR: no code for module (g-wrap gw-glib-spec)
The problem is that g-wrap-1.3.x requires glib-1.x. If it doesn't find it it doesn't build gw-glib stuff... The solution would be adding g-wrap-1.9.x series to the portage and adding it as a dep for gnucash 1.9 (or 2.x).
Comment 27 Priit Laes (IRC: plaes) 2006-03-08 06:07:51 UTC
This bug should depend on #125468

Now I ran into another problem:

checking for g-wrap module directory... /usr/share/guile/site
checking g-wrap-wct.h usability... no
checking g-wrap-wct.h presence... no
checking for g-wrap-wct.h... no
configure: error:

   cannot find g-wrap-wct.h where g-wrap claims it should be.
   are you on Debian or Ubuntu and still using g-wrap 1.9.6-2?
   See:  http://bugzilla.gnome.org/show_bug.cgi?id=330539



!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/config.log

!!! ERROR: app-office/gnucash-1.9.2 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile
  gnucash-1.9.2.ebuild, line 73:   Called econf 'compile' '--prefix' '/opt/gnucash-1.9.2' '--mandir=/opt/gnucash-1.9.2/man' '--infodir=/opt/gnucash-1.9.2/info' '--datadir=/opt/gnucash-1.9.2/share' '--sysconfdir=/opt/gnucash-1.9.2/etc' '--localstatedir=/opt/gnucash-1.9.2/var/lib' '--disable-debug' '--disable-sql' '--disable-ofx' '--disable-doxygen'

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

But...

box770 ~ # equery files g-wrap |grep g-wrap-wct.h
/usr/include/g-wrap-wct.h
Comment 28 Priit Laes (IRC: plaes) 2006-03-08 06:29:00 UTC
(In reply to comment #27)
> This bug should depend on #125468
> 
> Now I ran into another problem:
> 
> checking for g-wrap module directory... /usr/share/guile/site
> checking g-wrap-wct.h usability... no
> checking g-wrap-wct.h presence... no
> checking for g-wrap-wct.h... no
> configure: error:
> 
>    cannot find g-wrap-wct.h where g-wrap claims it should be.
>    are you on Debian or Ubuntu and still using g-wrap 1.9.6-2?
>    See:  http://bugzilla.gnome.org/show_bug.cgi?id=330539

This problem seems to be libffi specific. As I do not have "gcj" in my USE flags I do not have libffi in my system. As the libffi description says:

Description: libffi (from gcc) does not commonly build unless gcj is compiled, but is used by other projects, like GNUstep.

Hell just broke loose.. :) Gotta try if building libffi works.
Comment 29 Priit Laes (IRC: plaes) 2006-03-08 06:45:23 UTC
(In reply to comment #28)
> (In reply to comment #27)
> >    cannot find g-wrap-wct.h where g-wrap claims it should be.
> >    are you on Debian or Ubuntu and still using g-wrap 1.9.6-2?
> >    See:  http://bugzilla.gnome.org/show_bug.cgi?id=330539
> 
After building dev-libs/libffi it completes the configure phase and even start compiling until:

make[3]: Entering directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/core-utils'
rm -f gnucash g-wrapped
ln -sf . gnucash
ln -sf . g-wrapped
touch .scm-links
FLAVOR=gnome /usr/bin/guile -c \
          "(set! %load-path (cons \"/usr/share/guile/site\" %load-path)) \
           (primitive-load \"./gw-core-utils-spec.scm\") \
           (gw:generate-wrapset \"gw-core-utils\")"
FLAVOR=gnome /usr/bin/guile -c \
          "(set! %load-path (cons \"/usr/share/guile/site\" %load-path)) \
           (primitive-load \"./gw-core-utils-spec.scm\") \
           (gw:generate-wrapset \"gw-core-utils\")"
ERROR: no code for module (srfi srfi-34)
make[3]: *** [gw-core-utils.scm] Error 2
make[3]: *** Waiting for unfinished jobs....
ERROR: no code for module (srfi srfi-34)
make[3]: *** [gw-core-utils.h] Error 2
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src/core-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.9.2/work/gnucash-1.9.2'
make: *** [all] Error 2

!!! ERROR: app-office/gnucash-1.9.2 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 30 younker 2006-03-08 15:02:24 UTC
emerge g-wrap 1.9.6 then emerge gnucash, successful.
Comment 31 Priit Laes (IRC: plaes) 2006-03-09 04:20:39 UTC
(In reply to comment #30)
> emerge g-wrap 1.9.6 then emerge gnucash, successful.

Yep, confirmed. 
Comment 32 Norman Jonas 2006-03-09 10:54:25 UTC
Someone ( the reporter / assignee ) should add bug #125468 as dependancy.
Comment 33 Ed Catmur 2006-03-15 07:40:01 UTC
Minor, but it'd be useful if the ebuild were to move gnucash.desktop to /usr/share/applications (from /opt), fixing the exe path to /opt/gnucash-##/bin/gnucash, and fixing the icon path similarly.
Comment 34 younker 2006-03-20 16:17:51 UTC
1.9.3 released , but can't build with glib 2.10.x due to GMemChunk
Comment 35 Josh Sled 2006-03-29 05:22:06 UTC
(In reply to comment #34)
> 1.9.3 released , but can't build with glib 2.10.x due to GMemChunk

Modify the ebuild to pass "--enable-deprecated-glib" to configure (via EXTRA_ECONF).  The underlying problem was fixed in SVN >1.9.3.
Comment 36 younker 2006-04-07 04:52:39 UTC
1.9.4 released, but can't build too. 
Comment 37 David Grant 2006-04-07 17:19:32 UTC
I can compile and install 1.9.4 fine, but how do I run it? I understand it is slotted. I see the binary in /opt/gnucash-1.9.4/bin but it would be nice if it was in /usr/bin
Comment 38 Josh Sled 2006-04-07 17:43:01 UTC
(In reply to comment #37)
> I can compile and install 1.9.4 fine, but how do I run it? I understand it is
> slotted. I see the binary in /opt/gnucash-1.9.4/bin but it would be nice if it
> was in /usr/bin

`/opt/gnucash-1.9.4/bin/gnucash`.
Comment 39 James Tomlinson 2006-04-16 05:07:19 UTC
I have tried and failed the 1.9.4 version with gcc4.1. I had to update g-wrap as described in bug #125468 to get this far:

gw-engine.c: In function 'gw__tmp609_xaccTransIsOpen_wrapper':
gw-engine.c:11261: error: 'gw_wcp_is_ow__arg_pos' undeclared (first use in this function)
gw-engine.c:11261: error: (Each undeclared identifier is reported only once
gw-engine.c:11261: error: for each function it appears in.)
gw-engine.c:11261: error: expected ')' before ']' token
gw-engine.c:11261: error: expected statement before ']' token
gw-engine.c:11267: error: 'gw_wcp_is_o' undeclared (first use in this function)
gw-engine.c:11268: error: expected ')' before 'gw__scm_arg0'
cc1: warnings being treated as errors
gw-engine.c:11295: warning: ISO C90 forbids mixed declarations and code
gw-engine.c:11298: error: invalid storage class for function 'gw__tmp611_xaccSplitDestroy_wrapper'
gw-engine.c:11298: warning: no previous prototype for 'gw__tmp611_xaccSplitDestroy_wrapper'
gw-engine.c:11348: error: invalid storage class for function 'gw__tmp613_xaccTransAppendSplit_wrapper'
gw-engine.c:11348: warning: no previous prototype for 'gw__tmp613_xaccTransAppendSplit_wrapper'
gw-engine.c:11422: error: invalid storage class for function 'gw__tmp615_xaccTransSetDate_wrapper'
gw-engine.c:11422: warning: no previous prototype for 'gw__tmp615_xaccTransSetDate_wrapper'
gw-engine.c:11573: error: invalid storage class for function 'gw__tmp617_gnc_transaction_set_date_wrapper'
gw-engine.c:11573: warning: no previous prototype for 'gw__tmp617_gnc_transaction_set_date_wrapper'
gw-engine.c:11643: error: invalid storage class for function 'gw__tmp619_xaccTransSetNum_wrapper'
gw-engine.c:11643: warning: no previous prototype for 'gw__tmp619_xaccTransSetNum_wrapper'

...etc...

gw-engine.c:23198: error: expected declaration or statement at end of input
make[5]: *** [gw-engine.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -I../../lib/libc -I../../src/core-utils -I../../src -I../../src/gnc-module -I../../src/business/business-core/ -I../../lib/libqof/qof -I../../lib/libqof/qof -DGNUCASH -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -std=gnu99 -march=k8 -O2 -pipe -fomit-frame-pointer -ftracer -fno-ident -falign-functions=64 -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT engine-helpers.lo -MD -MP -MF .deps/engine-helpers.Tpo -c engine-helpers.c  -fPIC -DPIC -o .libs/engine-helpers.o
make[5]: Leaving directory `/var/tmp/portage/gnucash-1.9.4/work/gnucash-1.9.4/src/engine'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.9.4/work/gnucash-1.9.4/src/engine'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.9.4/work/gnucash-1.9.4/src/engine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.4/work/gnucash-1.9.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.9.4/work/gnucash-1.9.4'
make: *** [all] Error 2

!!! ERROR: app-office/gnucash-1.9.4 failed.
Call stack:
  ebuild.sh, line 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  gnucash-1.9.4.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Emerge --info:

Portage 2.1_pre7-r5 (default-linux/x86/2005.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo i686)
=================================================================
System uname: 2.6.16-gentoo i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -ftracer -fno-ident -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer -ftracer -fno-ident -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mythbox/gentoo-portage"
USE="x86 3dnow 3dnowext X aac ace acpi alsa apm asf atm avi berkdb bindist bitmap-fonts bzip2 cairo cdr cpudetection crypt cups custom-cflags dhcp divx4linux dri dvd dvdr dvdread emboss encode esd firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog java jpeg libg++ libwww live mad mikmod mmx mp3 mpeg mppe-mppc nas ncurses network nls nocd nowin nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pdflib perl png ppds pppd python quicktime readline rtc sdl spell sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis win32codecs xgetdefault xml2 xmms xv xvid zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux userland_GNU video_cards_vesa video_cards_nvidia video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
:
Comment 40 Henrique Ferreiro 2006-04-17 07:59:53 UTC
I have this problem with gnucash-1.9.4:

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../.. -I../../../.. -I../../../.. -I../../../../src -I../../../../src/gnc-module -std=gnu99 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium-m -mtune=pentium-m -pipe -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT foo-gwrap.lo -MD -MP -MF .deps/foo-gwrap.Tpo -c foo-gwrap.c  -fPIC -DPIC -o .libs/foo-gwrap.o
cc1: warnings being treated as errors
foo-gwrap.c:68: warning: data definition has no type or storage class
foo-gwrap.c:68: warning: type defaults to 'int' in declaration of 'ter'
foo-gwrap.c:68: warning: parameter names (without types) in function declarationfoo-gwrap.c:69: error: expected identifier or '(' before '}' token
foo-gwrap.c:71: warning: data definition has no type or storage class
foo-gwrap.c:71: warning: type defaults to 'int' in declaration of 'gw_wrapset_initialized'
foo-gwrap.c:72: error: expected identifier or '(' before '}' token

I am using g-wrap-1.9.6
Comment 41 James Tomlinson 2006-04-18 04:02:19 UTC
Well whatever the issue I had above has been resolved in 1.9.5. So I can report a success with gcc4.1 and g-wrap-1.9.6.
Comment 42 younker 2006-04-18 05:51:20 UTC
I still failed to build 1.9.5 with g-wrap 1.9.6 and gcc 4.1

so could anyone post your ebuild for it here?
Comment 43 Peter Gustafson 2006-04-24 15:24:23 UTC
I can't get 1.9.5 to compile on ~x86.  The error is below.  Note I tried to recompile libglade and that didn't help.

The error message is below:


druid-gnc-xml-import.c: In function `gxi_string_combo_changed_cb':
druid-gnc-xml-import.c:1152: warning: `curr_conv' might be used uninitialized in this function
make[5]: *** [druid-gnc-xml-import.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -DPREFIX=\"/opt/gnucash-1.9.5\" -DSYSCONFDIR=\"/opt/gnucash-1.9.5/etc/gnucash\" -DDATADIR=\"/opt/gnucash-1.9.5/share/gnucash\" -DLIBDIR=\"/opt/gnucash-1.9.5/lib/gnucash\" -I../../src/core-utils -I../../src/gnc-module -I../../src/engine -I../../src/backend/file -I../../src/network-utils -I../../src/app-utils -I../../src -I../../lib/glib26 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.8 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I /usr/include/g-wrap -I../../lib/libqof/qof -I../../lib/libqof/qof -I/usr/include/libgoffice-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -DORBIT2=1 -pthread -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -O3 -march=pentium3 -fomit-frame-pointer -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -MT gnc-amount-edit.lo -MD -MP -MF .deps/gnc-amount-edit.Tpo -c gnc-amount-edit.c  -fPIC -DPIC -o .libs/gnc-amount-edit.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -DPREFIX=\"/opt/gnucash-1.9.5\" -DSYSCONFDIR=\"/opt/gnucash-1.9.5/etc/gnucash\" -DDATADIR=\"/opt/gnucash-1.9.5/share/gnucash\" -DLIBDIR=\"/opt/gnucash-1.9.5/lib/gnucash\" -I../../src/core-utils -I../../src/gnc-module -I../../src/engine -I../../src/backend/file -I../../src/network-utils -I../../src/app-utils -I../../src -I../../lib/glib26 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.8 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libglade-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I /usr/include/g-wrap -I../../lib/libqof/qof -I../../lib/libqof/qof -I/usr/include/libgoffice-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -DORBIT2=1 -pthread -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/gconf/2 -O3 -march=pentium3 -fomit-frame-pointer -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -MT gnc-commodity-edit.lo -MD -MP -MF .deps/gnc-commodity-edit.Tpo -c gnc-commodity-edit.c  -fPIC -DPIC -o .libs/gnc-commodity-edit.o
make[5]: Leaving directory `/var/tmp/portage/gnucash-1.9.5/work/gnucash-1.9.5/src/gnome-utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.9.5/work/gnucash-1.9.5/src/gnome-utils'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.9.5/work/gnucash-1.9.5/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.5/work/gnucash-1.9.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.9.5/work/gnucash-1.9.5'
make: *** [all] Error 2

!!! ERROR: app-office/gnucash-1.9.5 failed.
!!! Function src_compile, Line 85, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

**************
Notes
**************
emerge -av gnucash:
[ebuild     U ] app-office/gnucash-1.9.5 [1.9.4] -chipcard -debug -doc -hbci +ofx -postgres +quotes 0 kB [1] 

emerge info:
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3, 2.6.16-suspend2-r1 i686)
=================================================================
System uname: 2.6.16-suspend2-r1 i686 Intel(R) Pentium(R) III Mobile CPU      1066MHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi afs alsa apache2 audiofile avi berkdb bitmap-fonts blas bonobo bzip2 cli clisp crypt cups curl dri eds emacs emboss encode esd exif expat f77 fam ffmpeg flac foomaticdb fortran gcj gd gdbm gif gimpprint ginac glut gmp gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imlib ipv6 isdnlog java jikes jpeg junit kerberos lcms libcaca libclamav libg++ libwww mad matroska mikmod mng motif mp3 mpeg ncurses new-login nvidia oav ofx ogg oggvorbis openal opengl oss other_var1 other_var2 pam pcre pda pdflib perl php pic png ppds pppd python quicktime quotes readline real recode reflection sane sdl session slang spell spl ssl subversion tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb v4l vorbis wmf xine xml2 xmms xorg xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 44 Ed Catmur 2006-04-24 20:01:24 UTC
Use this patch:
http://svn.gnucash.org/trac/changeset/13798?format=diff

Please don't post emerge info to ebuild bugs; the page is long enough as it is.
Comment 45 Ed Catmur 2006-04-25 09:35:58 UTC
Created attachment 85466 [details]
gnucash-1.9.5.ebuild

Apply above patch, various fixes. (QA, etc.) Problems with parallel make so emake -j1.
Comment 46 Ed Catmur 2006-04-25 09:36:39 UTC
Created attachment 85467 [details, diff]
gnucash-1.9.5-uninitialized-fix.patch

Patch to fix build.
Comment 47 Peter Gustafson 2006-04-25 13:57:53 UTC
Thanks Ed,

This worked for me as gnucash-svn (best solution, I'll keep it) but failed as gnucash.  The error message was:


Do you want me to merge these packages? [Yes/No] yes
>>> emerge (1 of 1) app-office/gnucash-1.9.5 to /
>>> md5 files   ;-) gnucash-1.9.5.ebuild
>>> md5 files   ;-) gnucash-1.9.4.ebuild
>>> md5 files   ;-) files/digest-gnucash-1.9.5
>>> md5 files   ;-) files/digest-gnucash-1.9.4
>>> md5 files   ;-) files/gnucash-1.9.5-uninitialized-fix.patch
>>> md5 src_uri ;-) gnucash-1.9.5.tar.gz
>>> Unpacking source...
>>> Unpacking gnucash-1.9.5.tar.gz to /var/tmp/portage/gnucash-1.9.5/work
 * Applying gnucash-1.9.5-uninitialized-fix.patch ...

 * Failed Patch: gnucash-1.9.5-uninitialized-fix.patch !
 *  ( /usr/local/portage/app-office/gnucash/files/gnucash-1.9.5-uninitialized-fix.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/gnucash-1.9.5/temp/gnucash-1.9.5-uninitialized-fix.patch-22598.out


!!! ERROR: app-office/gnucash-1.9.5 failed.
!!! Function epatch, Line 339, Exitcode 0
!!! Failed Patch: gnucash-1.9.5-uninitialized-fix.patch!
!!! If you need support, post the topmost build error, NOT this status message.
Comment 48 Josh Sled 2006-04-25 14:38:27 UTC
(In reply to comment #47)
> This worked for me as gnucash-svn (best solution, I'll keep it) but failed as
> gnucash.  The error message was:

Like the patch failed because the (effectively) same changes were made in svn the day after the 1.9.5 release (IIRC).

If you want gnucash-svn, no need to patch.  Moreover, if you're having a build problem with gnucash-svn, you should follow up on gnucash-devel so we can fix it in SVN (i.e., you really *shouldn't* patch).
Comment 49 Ed Catmur 2006-04-25 16:21:50 UTC
(In reply to comment #48)
> Like the patch failed because the (effectively) same changes were made in svn
> the day after the 1.9.5 release (IIRC).

The ebuild I uploaded doesn't apply the patch if downloading from SVN.

The patch should apply OK to the unpacked 1.9.5 sources, though; check you downloaded it OK.
Comment 50 Jan Pieczkowski 2006-05-01 03:50:19 UTC
Created attachment 85902 [details, diff]
gnucash-1.9.5-uninitialized-fix.patch

I had the same problem with the patch; turns out it had DOS-style linebreaks in it, causing patch to fail. This is the same patch now, only that it has UNIX-style linebreaks now. (obsoletes prior patch)
Comment 51 younker 2006-05-16 04:12:01 UTC
Failed configuration for 1.9.6

checking for g-wrap module directory... /usr/share/guile/site
checking g-wrap-wct.h usability... no
checking g-wrap-wct.h presence... no
checking for g-wrap-wct.h... no
configure: error:

   cannot find g-wrap-wct.h where g-wrap claims it should be.
   are you on Debian or Ubuntu and still using g-wrap 1.9.6-2?
   See:  http://bugzilla.gnome.org/show_bug.cgi?id=330539



!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6/config.log

!!! ERROR: app-office/gnucash-1.9.6 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  gnucash-1.9.6.ebuild, line 73:   Called econf '--prefix' '/opt/gnucash-1.9.6' '--mandir=/opt/gnucash-1.9.6/man' '--infodir=/opt/gnucash-1.9.6/info' '--datadir=/opt/gnucash-1.9.6/share' '--sysconfdir=/opt/gnucash-1.9.6/etc' '--localstatedir=/opt/gnucash-1.9.6/var/lib' '--disable-debug' '--enable-sql' '--disable-ofx' '--enable-doxygen' '--disable-hbci'
  ebuild.sh, line 533:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 52 Josh Sled 2006-05-16 05:58:12 UTC
(In reply to comment #51)
> Failed configuration for 1.9.6

What version of g-wrap do you have installed?
Comment 53 younker 2006-05-16 16:25:32 UTC
(In reply to comment #52)
> (In reply to comment #51)
> > Failed configuration for 1.9.6
> 
> What version of g-wrap do you have installed?
> 

G-Wrap 1.9.6, the ebuild is from  http://bugs.gentoo.org/show_bug.cgi?id=125468
Comment 54 Josh Sled 2006-05-16 17:10:14 UTC
(In reply to comment #53)
> (In reply to comment #52)
> > (In reply to comment #51)
> > > Failed configuration for 1.9.6
> > 
> > What version of g-wrap do you have installed?
> > 
> 
> G-Wrap 1.9.6, the ebuild is from  http://bugs.gentoo.org/show_bug.cgi?id=125468

It doesn't fail here after upgrading to g-wrap-1.9.6 using that ebuild (which I've been meaning to try for a while anyways)...

- What version of guile?

- What are the config.log lines just above the section you output?  Specifically, starting with "checking for guile-config..." to " the failure?

- Do you also have g-wrap-1.3.4-r1 installed?
Comment 55 younker 2006-05-17 04:37:58 UTC
guile 1.6.7, g-wrap 1.9.6, glibc 2.4 and gcc 4.1

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -I../../lib/libc -I../../src -I../../src/core-utils -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -std=gnu99 -O2 -march=pentium4 -mtune=pentium4 -mfpmath=sse -msse2 -momit-leaf-frame-pointer -pipe -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Werror -Wdeclaration-after-statement -Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gnc-module.lo -MD -MP -MF .deps/gnc-module.Tpo -c gnc-module.c  -fPIC -DPIC -o .libs/gnc-module.o
gw-gnc-module.c:371: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
gw-gnc-module.c:373: error: expected ')' before numeric constant
gw-gnc-module.c:377: error: expected ')' before numeric constant
gw-gnc-module.c:381: error: expected ')' before numeric constant
gw-gnc-module.c:385: error: expected ')' before numeric constant
cc1: warnings being treated as errors
gw-gnc-module.c:388: warning: data definition has no type or storage class
gw-gnc-module.c:388: warning: type defaults to 'int' in declaration of 'gw_wrapset_register'
gw-gnc-module.c:388: warning: parameter names (without types) in function declaration
gw-gnc-module.c:388: error: conflicting types for 'gw_wrapset_register'
/usr/include/g-wrap/core-runtime.h:200: error: previous declaration of 'gw_wrapset_register' was here
gw-gnc-module.c:389: error: expected identifier or '(' before '}' token
gw-gnc-module.c:391: warning: data definition has no type or storage class
gw-gnc-module.c:391: warning: type defaults to 'int' in declaration of 'gw_wrapset_initialized'
gw-gnc-module.c:392: error: expected identifier or '(' before '}' token
make[5]: *** [gw-gnc-module.lo] 错误 1
make[5]: *** 正在等待未完成的任务....
make[5]: Leaving directory `/var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6/src/gnc-module'
make[4]: *** [all-recursive] 错误 1
make[4]: Leaving directory `/var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6/src/gnc-module'
make[3]: *** [all] 错误 2
make[3]: Leaving directory `/var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6/src/gnc-module'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/var/tmp/portage/gnucash-1.9.6/work/gnucash-1.9.6'
make: *** [all] 错误 2

!!! ERROR: app-office/gnucash-1.9.6 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  gnucash-1.9.6.ebuild, line 85:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 56 Josh Sled 2006-05-17 06:35:54 UTC
(In reply to comment #55)
> guile 1.6.7, g-wrap 1.9.6, glibc 2.4 and gcc 4.1
> 
>  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../..
[...]

Can we move this to the gnucash-devel list <https://lists.gnucash.org/mailman/listinfo/gnucash-devel>?  I've a vague feeling it's not a gentoo issue so much as a gcc4.1 issue, and you'll probably get better support there...
Comment 57 Josh Sled 2006-05-17 07:06:42 UTC
1.9.6 was released; the tarball contains `packaging/gnucash-1.9.x.ebuild`, or from http://svn.gnucash.org/repo/gnucash/tags/1.9.6/packaging/gnucash-1.9.x.ebuild for your portage overlay.  That ebuild is most of Ed's 1.9.5 ebuild as attached here, without the now unneeded patch removed and the gconf restarting added back in.

1.9.6 is the first beta; I'd like to un-slot this starting with the 1.9.7 ebuild.
Comment 58 Ed Catmur 2006-05-17 08:40:25 UTC
The code to restart gconf daemons is a little over-engineered; killall -SIGHUP gconfd-2 would work just as well. See bug 132862.

Comment 59 Josh Sled 2006-05-27 09:30:37 UTC
Created attachment 87668 [details]
SLOT="0", un-/opt'ed ebuild with docs install

Leading toward the stable release, this version is SLOT="0", removes all the /opt-related noise, and installs the latest release of the docs (1.8.5).  As this is no longer sloted, this WILL OVERWRITE your 1.8.11 install.
Comment 60 Josh Sled 2006-06-06 13:20:46 UTC
Created attachment 88558 [details]
1.9.7 ebuild (new 1.9.0 docs)

With improved .desktop creation and new gnucash-docs-1.9.0 release install.
Comment 61 Ed Catmur 2006-06-08 21:13:59 UTC
Two cosmetic issues:
* line 3 should be "$Header: $" (if there's a reason, don't worry)
* last 3 lines of src_compile have 4-space indents; Gentoo style uses tabs

Also, compile failure if valgrind support enabled:
gnc-main-window.c: In function 'gnc_main_window_cmd_extensions_callgrind':
gnc-main-window.c:3090: error: expected expression before ')' token
gnc-main-window.c:3091: error: '_qzz_res' undeclared (first use in this
function)
gnc-main-window.c:3091: error: (Each undeclared identifier is reported only
once
gnc-main-window.c:3091: error: for each function it appears in.)
gnc-main-window.c:3091: error: expected expression before ')' token
gnc-main-window.c:3093: error: expected expression before ')' token
gnc-main-window.c:3094: error: expected expression before ')' token

Discussion and patch at http://bugzilla.gnome.org/show_bug.cgi?id=344353
Comment 62 Ed Catmur 2006-06-08 21:37:50 UTC
Created attachment 88738 [details, diff]
gnc-valgrind.patch

Patch mirrored here for convenience.
Comment 63 Hans de Graaff gentoo-dev Security 2006-06-12 23:16:59 UTC
GnuCash should depend on Finance::Quote 1.11, as this version fixes problems with getting currency quotes. If Finance::Quote 1.10 or lower is used this results in a system error dialog in GnuCash with no clue as to what is wrong. See http://bugzilla.gnome.org/show_bug.cgi?id=344546 for reference.
Comment 64 Bill Skellenger 2006-06-27 19:10:33 UTC
GnuCash dev should also depend on gtkhtml >= 3.10.1.  There's a bug in gtkhtml that make the "width" field of a report appear to do nothing.

See: http://bugzilla.gnome.org/show_bug.cgi?id=328114
Comment 65 Sergey Okhapkin 2006-07-10 06:43:18 UTC
(In reply to comment #0)
> First unstable version on the way to 2.0.
> New: GTK2 support!
> 

GnuCash 2.0.0 is released.
Comment 66 Thomas Raschbacher gentoo-dev 2006-07-10 07:20:47 UTC
changed title to include 2.0.0 version number to avoid duplicate bugs and CC'd myself
Comment 67 Bret Towe 2006-07-10 21:12:03 UTC
Created attachment 91424 [details]
gnucash-2.0.0.ebuild

updated ebuild for 2.0
doc_ver to 2.0.0
moved amd64 only dep to all arch dep no point in that
incorpated gtkhtml and finance-quote version requirements
whitespace cleanup
added "" around cd line (workdir could have spaces in it)
got rid of useless comment up top
removed unstable from description
renamed myconf_warnings to myconf and removed the warning build items
  would only causes headaches now (did for me)
Comment 68 Bret Towe 2006-07-10 21:13:31 UTC
the valgrind item i left out as i wasnt sure if it was included already by
upstream and since there isnt a use flag for valgrind i dont see a point
in adding it really
Comment 69 Donnie Berkholz (RETIRED) gentoo-dev 2006-07-10 23:32:55 UTC
Few notes on the ebuild:

Why hardcode DOC_VER?
Why is doxygen RDEPEND rather than DEPEND?
built_with_use should use full category/package
Why bother with myconf, when you never use it for anything?
It's worth reconfirming whether parallel make is broken, and trying for a real fix.
If you're quoting WORKDIR, you should also be quoting D and S since they're subdirs of it.
Comment 70 Josh Sled 2006-07-11 05:57:03 UTC
(In reply to comment #68)
> the valgrind item i left out as i wasnt sure if it was included already by
> upstream and since there isnt a use flag for valgrind i dont see a point
> in adding it really

Yes, it was included upstream in 1.9.8.


(In reply to comment #69)
> Why hardcode DOC_VER?

It can vary differently than $PV.

> Why bother with myconf, when you never use it for anything?

myconf should probably be set to '--disable-error-on-warning' explicitly.

> It's worth reconfirming whether parallel make is broken, and trying for a real
> fix.

I can't think of any changes made that would have fixed this.  While I can't say with certainty, it's safe to assume it's still broken.
Comment 71 Bret Towe 2006-07-11 12:05:54 UTC
Created attachment 91493 [details]
gnucash-2.0.0.ebuild

moved doxygen to depend
gave built_with_use full cat/package
ditched myconf since -Werror isnt added unless asked
quoted D and S
didnt mess with -j1 since i dont have an smp to test it out on
Comment 72 Seemant Kulleen (RETIRED) gentoo-dev 2006-07-11 17:10:15 UTC
Thanks everyone for hanging in there with me for this.  Thanks to all of you who submitted ebuilds and patches etc.  2.0.0 is finally in cvs, rsync'able in about 30 minutes for you.

Thanks again!