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
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.
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"
*** Bug 322231 has been marked as a duplicate of this bug. ***
Needed some more fiddling. Fixed, please test. :)
I confirm it works here today with koffice 2.2.0.
works for me too.