<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>203979</bug_id>
          
          <creation_ts>2008-01-01 18:16 0000</creation_ts>
          <short_desc>app-office/gnucash-2.2.2 fails to build</short_desc>
          <delta_ts>2008-01-07 18:43:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>reini@crimer.de</reporter>
          <assigned_to>tove@gentoo.org</assigned_to>
          <cc>ed@catmur.co.uk</cc>
    
    <cc>gnome-office@gentoo.org</cc>
    
    <cc>halcy0n@gentoo.org</cc>
    
    <cc>jsled-gentoo@asynchronous.org</cc>
    
    <cc>systemdesignworks@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>reini@crimer.de</who>
            <bug_when>2008-01-01 18:16:16 0000</bug_when>
            <thetext>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 &gt;= 0.5.1... no
checking for libgoffice-0.4 &gt;= 0.4.0... no
checking for libgoffice-0.3 &gt;= 0.3.0... no
checking for libgoffice-1 &gt;= 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 &apos;src_compile&apos; &apos;src_compile&apos; &apos;--disable-debug&apos; &apos;--disable-ofx&apos; &apos;--disable-hbci&apos; &apos;--disable-doxygen&apos;
 *               ebuild.sh, line  507:  Called die
 * The specific snippet of code:
 *                      die &quot;econf failed&quot;
 *  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 &apos;/var/tmp/portage/app-office/gnucash-2.2.2/temp/build.log&apos;.
 * The ebuild environment file is located at &apos;/var/tmp/portage/app-office/gnucash-2.2.2/temp/environment&apos;.




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=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=prescott -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-O2 -march=prescott -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.mirror.pw.edu.pl/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo&quot;
LANG=&quot;de_DE.UTF8&quot;
LC_ALL=&quot;de_DE.UTF-8&quot;
LINGUAS=&quot;de&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;de&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa fbdev&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2008-01-01 20:59:21 0000</bug_when>
            <thetext>Dup of Bug#202862.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-01-01 21:50:17 0000</bug_when>
            <thetext>no, this bug looks like gnucash just doesn&apos;t check for a libgoffice-0.6.pc
This is the kind of problems to be expected with versionned .pc file.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2008-01-01 22:24:55 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; no, this bug looks like gnucash just doesn&apos;t check for a libgoffice-0.6.pc
&gt; This is the kind of problems to be expected with versionned .pc file.

Well, there&apos;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&apos;t exist, yet.  (Presumably it&apos;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&apos;s what Bug#202862 was, but looking at it more closely, I guess I was mistaken. :/  Sorry for the noise.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-01-01 22:34:30 0000</bug_when>
            <thetext>no problem. I&apos;ll let tove fix this though since he probably knows gnucash better.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoo@email.twam.info</who>
            <bug_when>2008-01-02 15:41:57 0000</bug_when>
            <thetext>Some problem here.

I masked &gt;=x11-libs/goffice-0.6 and everyting worked. Maybe ebuild should block &gt;=x11-libs/goffice-0.6.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Fred@Familie-Roehner.de</who>
            <bug_when>2008-01-02 21:07:13 0000</bug_when>
            <thetext>symbolic linking in &apos;/usr/lib/pkgconfig&apos; with 
&quot;# ln -s libgoffice-0.6.pc libgoffice-0.5.pc&quot;
does the job: emerges smooth, runs smooth!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2008-01-02 21:16:08 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; symbolic linking in &apos;/usr/lib/pkgconfig&apos; with 
&gt; &quot;# ln -s libgoffice-0.6.pc libgoffice-0.5.pc&quot;
&gt; does the job: emerges smooth, runs smooth!

While an interesting datapoint, I hope you know this is a horrible idea…
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>leonardof@gnome.org</who>
            <bug_when>2008-01-04 10:34:35 0000</bug_when>
            <thetext>Same problem here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ed@catmur.co.uk</who>
            <bug_when>2008-01-05 00:27:34 0000</bug_when>
            <thetext>Created an attachment (id=140144)
goffice-0.6.patch

Patch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>balage@makacs.duf.hu</who>
            <bug_when>2008-01-05 14:57:05 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Created an attachment (id=140144) [edit]
&gt; goffice-0.6.patch
&gt; 
&gt; Patch.
&gt; 

With your patch it compiles fine :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2008-01-05 17:09:00 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; no, this bug looks like gnucash just doesn&apos;t check for a libgoffice-0.6.pc
&gt; &gt; This is the kind of problems to be expected with versionned .pc file.
&gt; 
&gt; Well, there&apos;s no assurance that gnucash can even build (let alone run) against
&gt; goffice-0.6.  At the time the check was updated to include 0.5.1, 0.6 didn&apos;t
&gt; exist, yet.  (Presumably it&apos;s versioned because there is incompatability that
&gt; requires a version bump, so code changes might be required to get it to build
&gt; against 0.6...)

Well, it builds and runs. A quick check didn&apos;t show any differences in the functions gnucash uses. Speak up if i miss anything. I&apos;ll commit a patched version later.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>systemdesignworks@gmail.com</who>
            <bug_when>2008-01-06 11:54:50 0000</bug_when>
            <thetext>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&apos;t run.  Error message is:

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

Is this related to the problem under discussion here?  Should I manually re-emerge goffice-0.2.1?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-01-06 13:21:20 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; I just did a portage/system update today (2008-01-06) which installed
&gt; x11-libs/goffice-0.6.1 in a new slot.  I then ran:
[snip]
&gt; Is this related to the problem under discussion here?  Should I manually
&gt; re-emerge goffice-0.2.1?

This is unrelated to this bug, just use revdep-rebuild.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2008-01-06 16:18:51 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; Created an attachment (id=140144) [edit]
&gt; goffice-0.6.patch
&gt; 
&gt; Patch.

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

Thanks!
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>systemdesignworks@gmail.com</who>
            <bug_when>2008-01-06 22:23:30 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; (In reply to comment #12)
&gt; &gt; I just did a portage/system update today (2008-01-06) which installed
&gt; &gt; x11-libs/goffice-0.6.1 in a new slot.  I then ran:
&gt; [snip]
&gt; &gt; Is this related to the problem under discussion here?  Should I manually
&gt; &gt; re-emerge goffice-0.2.1?
&gt; 
&gt; This is unrelated to this bug, just use revdep-rebuild.

I did run &quot;revdep-rebuild -X -- -av&quot;.  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:

  &gt;&gt;&gt; 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?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>halcy0n@gentoo.org</who>
            <bug_when>2008-01-07 00:39:05 0000</bug_when>
            <thetext>(In reply to comment #15)
&gt;   revdep-rebuild -X -- -av
&gt;   emerge --ask --verbose --depclean
&gt; 
&gt; It still wants to remove 0.2.1:
&gt; 
&gt;   &gt;&gt;&gt; These are the packages that would be unmerged:
&gt; 
&gt;    x11-libs/goffice
&gt;       selected: 0.2.1
&gt;      protected: none
&gt;        omitted: 0.6.1
&gt; 
&gt; If I remove it again, will it cause gnu-cash not to work again?
&gt; 

Remove the old version of goffice, then run revdep-rebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>systemdesignworks@gmail.com</who>
            <bug_when>2008-01-07 04:44:02 0000</bug_when>
            <thetext>(In reply to comment #16)
&gt; 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 &gt;= 0.5.1... no
  checking for libgoffice-0.4 &gt;= 0.4.0... no
  checking for libgoffice-0.3 &gt;= 0.3.0... no
  checking for libgoffice-1 &gt;= 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2008-01-07 08:46:21 0000</bug_when>
            <thetext>-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&apos;ll probably get -2.2.3.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>140144</attachid>
            <date>2008-01-05 00:27 0000</date>
            <desc>goffice-0.6.patch</desc>
            <filename>goffice-0.6.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvbmZpZ3VyZS5pbgkyMDA4LzAxLzA1IDAwOjI1OjU1CTEuMQorKysgY29uZmlndXJlLmlu
CTIwMDgvMDEvMDUgMDA6MjY6NDQKQEAgLTExMjAsNyArMTEyMCw3IEBAIHRoZW4KICAgICAjIGNo
ZWNrcyBmb3IgZ29mZmljZQogICAgIGdvZmZpY2U9MAogICAgIGdvZmZpY2Vfd2l0aF9jYWlybz0w
Ci0gICAgUEtHX0NIRUNLX01PRFVMRVMoR09GRklDRSwgbGliZ29mZmljZS0wLjUgPj0gMC41LjEs
IFsKKyAgICBQS0dfQ0hFQ0tfTU9EVUxFUyhHT0ZGSUNFLCBsaWJnb2ZmaWNlLTAuNiA+PSAwLjYu
MCwgWwogICAgICAgQUNfREVGSU5FKEhBVkVfR09GRklDRV8wXzUsMSxbU3lzdGVtIGhhcyBnb2Zm
aWNlIDAuNS4xIG9yIGJldHRlcl0pCiAgICAgICBBQ19ERUZJTkUoR09GRklDRV9XSVRIX0NBSVJP
LDEsW0dPZmZpY2UgaGFzIGJlZW4gYnVpbHQgd2l0aCBjYWlybyBzdXBwb3J0XSkKICAgICAgIGdv
ZmZpY2U9MQo=
</data>        

          </attachment>
    </bug>

</bugzilla>