Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203979 - app-office/gnucash-2.2.2 fails to build
Summary: app-office/gnucash-2.2.2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-01 18:16 UTC by Reinhard Kreim
Modified: 2008-01-07 18:43 UTC (History)
5 users (show)

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


Attachments
goffice-0.6.patch (goffice-0.6.patch,464 bytes, patch)
2008-01-05 00:27 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Reinhard Kreim 2008-01-01 18:16:16 UTC
gnucash cant find libgoffice. Might be broken because of an update of goffice

Reproducible: Always

Steps to Reproduce:
1.emerge gnucash
2.
3.

Actual Results:  
Cannot find libgoffice.


stack trace.

checking for libgoffice-0.5 >= 0.5.1... no
checking for libgoffice-0.4 >= 0.4.0... no
checking for libgoffice-0.3 >= 0.3.0... no
checking for libgoffice-1 >= 0.0.4... no
configure: error: Cannot find libgoffice.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-office/gnucash-2.2.2/work/gnucash-2.2.2/config.log
 *
 * ERROR: app-office/gnucash-2.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   46:  Called src_compile
 *             environment, line 2703:  Called econf 'src_compile' 'src_compile' '--disable-debug' '--disable-ofx' '--disable-hbci' '--disable-doxygen'
 *               ebuild.sh, line  507:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/gnucash-2.2.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/gnucash-2.2.2/temp/environment'.




eix -I goffice:

x11-libs/goffice
     Available versions:
        (0.2)   0.2.1
        (0.4)   (~)0.4.3
        (0.6)   (~)0.6.1
        {debug doc gnome}
     Installed versions:  0.6.1(0.6)(16:38:00 23.12.2007)(gnome -debug)



emerge --info:

Portage 2.1.4_rc14 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r5 i686)
=================================================================
System uname: 2.6.23-gentoo-r5 i686 Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz
Timestamp of tree: Tue, 01 Jan 2008 16:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirror.pw.edu.pl/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.UTF8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 a52 aac aalib acl acpi akode alsa amr arts async audiofile automount avahi bash-completion berkdb bidi bitmap-fonts bl blas bonjour branding bzip2 cairo caps cblas cdda cddb cdio cdparanoia cdr chroot cli conntest cpudetection cracklib crypt cscope css cups curl custom-cflags daap dbus deprecated directfb divx dri dts dv dvd dvdr dvdread eds emboss enca encode esd evo extrafilters fam fame fbcon fbcondecor fbsplash ffmpeg fftw firefox flac fontconfig foomaticdb fortran fping ftp gadu gd gdbm ggi gif gimp glib glitz gmedia gnutls gpm groupwise gstreamer gtk gtkhtml hal hdaps hddtemp howl-compat hpn iconv icu idn imagemagick imap imlib immqt-bc inkjar ipv6 isdnlog jack java javascript jpeg jpeg2k kde kerberos krb4 lame lapack lcms ldap lesstif libcaca libnotify live logrotate lzo mad mailwrapper matroska mdnsresponder-compat meanwhile midi mikmod mjpeg mmx mmxext mng mod motif mp3 mpeg mpi mplayer msn mudflap musepack music musicbrainz mysql nas ncurses neXt network nls nntp nptl nptlonly nsplugin oav odbc ogg openal openexr opengl openmp oss pam pcre pdf perl php physfs plotutils png portaudio postgres povray ppds pppd prediction pyste python qq qt3 qt3support qt4 quicktime rar rdesktop readline real realmedia reflection regex remix rtc rtsp samba sametime sasl scanner scenarios sdl sdl-image sensord session shout silc skey skins slp sndfile songs speex spell spl sqlite sse sse2 ssl startup-notification stream subtitles svg svga swat syslog talkfilters tcl tcpd tetex tga themes theora threads tidy tiff timidity tk tools truetype truetype-fonts type1-fonts umfpack unicode usb utempter v4l v4l2 vcd vdr vidix vim-pager vim-syntax vim-with-x visualization voice vorbis wavpack wifi win32codecs winbind wmf wmp wxwindows x264 x86 xanim xcomposite xforms xine xinerama xml xorg xosd xpm xprint xv xvid xvmc yv12 zephyr zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Josh Sled 2008-01-01 20:59:21 UTC
Dup of Bug#202862.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-01 21:50:17 UTC
no, this bug looks like gnucash just doesn't check for a libgoffice-0.6.pc
This is the kind of problems to be expected with versionned .pc file.
Comment 3 Josh Sled 2008-01-01 22:24:55 UTC
(In reply to comment #2)
> no, this bug looks like gnucash just doesn't check for a libgoffice-0.6.pc
> This is the kind of problems to be expected with versionned .pc file.

Well, there's no assurance that gnucash can even build (let alone run) against goffice-0.6.  At the time the check was updated to include 0.5.1, 0.6 didn't exist, yet.  (Presumably it's versioned because there is incompatability that requires a version bump, so code changes might be required to get it to build against 0.6...)

Regardless, making the gnucash ebuild be more specific about which versions of goffice are supported is correct; I thought that's what Bug#202862 was, but looking at it more closely, I guess I was mistaken. :/  Sorry for the noise.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-01 22:34:30 UTC
no problem. I'll let tove fix this though since he probably knows gnucash better.
Comment 5 Tobias Müller 2008-01-02 15:41:57 UTC
Some problem here.

I masked >=x11-libs/goffice-0.6 and everyting worked. Maybe ebuild should block >=x11-libs/goffice-0.6.
Comment 6 Fred Röhner 2008-01-02 21:07:13 UTC
symbolic linking in '/usr/lib/pkgconfig' with 
"# ln -s libgoffice-0.6.pc libgoffice-0.5.pc"
does the job: emerges smooth, runs smooth!
Comment 7 Josh Sled 2008-01-02 21:16:08 UTC
(In reply to comment #6)
> symbolic linking in '/usr/lib/pkgconfig' with 
> "# ln -s libgoffice-0.6.pc libgoffice-0.5.pc"
> does the job: emerges smooth, runs smooth!

While an interesting datapoint, I hope you know this is a horrible idea…
Comment 8 Leonardo Ferreira Fontenelle 2008-01-04 10:34:35 UTC
Same problem here.
Comment 9 Ed Catmur 2008-01-05 00:27:34 UTC
Created attachment 140144 [details, diff]
goffice-0.6.patch

Patch.
Comment 10 Balazs Nemeth 2008-01-05 14:57:05 UTC
(In reply to comment #9)
> Created an attachment (id=140144) [edit]
> goffice-0.6.patch
> 
> Patch.
> 

With your patch it compiles fine :)
Comment 11 Torsten Veller (RETIRED) gentoo-dev 2008-01-05 17:09:00 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > no, this bug looks like gnucash just doesn't check for a libgoffice-0.6.pc
> > This is the kind of problems to be expected with versionned .pc file.
> 
> Well, there's no assurance that gnucash can even build (let alone run) against
> goffice-0.6.  At the time the check was updated to include 0.5.1, 0.6 didn't
> exist, yet.  (Presumably it's versioned because there is incompatability that
> requires a version bump, so code changes might be required to get it to build
> against 0.6...)

Well, it builds and runs. A quick check didn't show any differences in the functions gnucash uses. Speak up if i miss anything. I'll commit a patched version later.
Comment 12 WayneSherman 2008-01-06 11:54:50 UTC
I just did a portage/system update today (2008-01-06) which installed x11-libs/goffice-0.6.1 in a new slot.  I then ran:

emerge --ask --verbose --depclean

It reported x11-libs/goffice-0.2.1 as uneeded and I unmerged it.  Now gnu-cash doesn't run.  Error message is:

"gnucash-bin: error while loading shared libraries: libgoffice-1.so.2: cannot open shared object file: No such file or directory"

Is this related to the problem under discussion here?  Should I manually re-emerge goffice-0.2.1?
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-01-06 13:21:20 UTC
(In reply to comment #12)
> I just did a portage/system update today (2008-01-06) which installed
> x11-libs/goffice-0.6.1 in a new slot.  I then ran:
[snip]
> Is this related to the problem under discussion here?  Should I manually
> re-emerge goffice-0.2.1?

This is unrelated to this bug, just use revdep-rebuild.
Comment 14 Josh Sled 2008-01-06 16:18:51 UTC
(In reply to comment #9)
> Created an attachment (id=140144) [edit]
> goffice-0.6.patch
> 
> Patch.

Upstream's version on 2.2 branch for upcoming 2.2.3: http://svn.gnucash.org/trac/changeset/16829

Thanks!
Comment 15 WayneSherman 2008-01-06 22:23:30 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > I just did a portage/system update today (2008-01-06) which installed
> > x11-libs/goffice-0.6.1 in a new slot.  I then ran:
> [snip]
> > Is this related to the problem under discussion here?  Should I manually
> > re-emerge goffice-0.2.1?
> 
> This is unrelated to this bug, just use revdep-rebuild.

I did run "revdep-rebuild -X -- -av".  Yesterday, here is the order I run my update:

  emerge --sync
  emerge --ask --verbose --update --newuse --deep --tree world
  revdep-rebuild -X -- -av
  dispatch-conf
  emerge --ask --verbose --depclean

After I posted, I did a one-shot emerge of goffice-0.2.1 and gnu-cash works again.  But something is still wrong in portage because if I run:

  revdep-rebuild -X -- -av
  emerge --ask --verbose --depclean

It still wants to remove 0.2.1:

  >>> These are the packages that would be unmerged:

   x11-libs/goffice
      selected: 0.2.1
     protected: none
       omitted: 0.6.1

If I remove it again, will it cause gnu-cash not to work again?
Comment 16 Mark Loeser (RETIRED) gentoo-dev 2008-01-07 00:39:05 UTC
(In reply to comment #15)
>   revdep-rebuild -X -- -av
>   emerge --ask --verbose --depclean
> 
> It still wants to remove 0.2.1:
> 
>   >>> These are the packages that would be unmerged:
> 
>    x11-libs/goffice
>       selected: 0.2.1
>      protected: none
>        omitted: 0.6.1
> 
> If I remove it again, will it cause gnu-cash not to work again?
> 

Remove the old version of goffice, then run revdep-rebuild.
Comment 17 WayneSherman 2008-01-07 04:44:02 UTC
(In reply to comment #16)
> Remove the old version of goffice, then run revdep-rebuild.

Something is still broken.  I ran

  emerge --ask --verbose --depclean

and let it remove goffice-0.2.1.  Then I ran:

  revdep-rebuild -X -- -av

and it wanted to re-emerge gnucash with the following command:

  emerge --oneshot --ask --verbose =app-office/gnucash-2.2.2

This failed with:

  checking for libgoffice-0.5 >= 0.5.1... no
  checking for libgoffice-0.4 >= 0.4.0... no
  checking for libgoffice-0.3 >= 0.3.0... no
  checking for libgoffice-1 >= 0.0.4... no
  configure: error: Cannot find libgoffice.

Any other suggestions?

I am thinking I will re-install goffice-0.2.1 and try to remove it again later when gnucash-2.2.3 is released.
Comment 18 Torsten Veller (RETIRED) gentoo-dev 2008-01-07 08:46:21 UTC
-2.2.2-r1 is in tree and fixes the goffice-0.6 problems.

Wait an hour, sync, and install -2.2.2-r1 and be happy.
If you can wait longer, you'll probably get -2.2.3.