Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 311805

Summary: [kde overlay] app-office/koffice-libs-2.2.0 still broken
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: niels_ole, roberto.castagnola, serge.ratke
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Capricelli 2010-03-28 17:29:42 UTC
even though #311063 was closed, the ebuild is still broken. Compilation works ok, but the link fails with:

[100%] Building CXX object
plugins/textshape/CMakeFiles/textshape.dir/commands/RejectChangeCommand.o       
Linking CXX shared library ../../lib/libkoreport.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lkdchart
collect2: ld returned 1 exit status
make[2]: *** [lib/libkoreport.so.6.0.0] Error 1
make[1]: *** [libs/koreport/CMakeFiles/koreport.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


There has been some discussion on #gentoo-kde about this. It seems like there's some loop in dependencies. Kchart depends on koffice-libs and some part of koffice-libs depends on some part of kcart... or something like this.

Reproducible: Always
Comment 1 Niels Ole Salscheider 2010-05-31 11:22:37 UTC
This is still a problem for koffice-libs-2.2.

The problem is that libkoreport (part of koffice-libs) links to libkdchart which is part of kchart. I am not sure if libkdchart should become part of koffice-libs (by upstream) or if we need some sort of hack. CMake cannot resolve this automatically if KOffice is split into different parts.
Comment 2 Niels Ole Salscheider 2010-05-31 12:00:36 UTC
I should have had a look at the ebuild before posting... The following patch seems to solve the problem for me:

--- koffice-libs-2.2.0.ebuild.orig      2010-05-31 13:52:44.331147606 +0200
+++ koffice-libs-2.2.0.ebuild   2010-05-31 13:53:03.598147804 +0200
@@ -38,11 +38,13 @@
        kounavail/
        plugins/
        tools/
+       kchart/kdchart
+       kchart/shape
 "
 #      doc/api/"
 KMEXTRACTONLY="
+       kchart
        doc/koffice.desktop
-       kchart/kdchart/
 "
 
 KMSAVELIBS="true"
Comment 3 Dror Levin (RETIRED) gentoo-dev 2010-05-31 13:35:20 UTC
*** Bug 322231 has been marked as a duplicate of this bug. ***
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2010-06-02 21:47:58 UTC
Needed some more fiddling. Fixed, please test. :)
Comment 5 Thomas Capricelli 2010-06-03 18:36:01 UTC
I confirm it works here today with koffice 2.2.0.
Comment 6 Serge Ratke 2010-06-04 06:37:13 UTC
works for me too.