I did not enable semantic-desktop USE-Flag here. This resulted in plasma-workspace not building, as neccessary headers in /usr/include/akonadi were missing, as well as needed libraries - semantic-desktop (and so akonadi) was not enabled for kdepimlibs. Enabling semantic-desktop globally (and so also for kdepimlibs) made plasma-workspace finish building. Reproducible: Always
I've hit the same issue with plasma-workspace-9999 earlier today.
-- Found KdepimLibs: /usr/lib64/cmake/KdepimLibs/KdepimLibsConfig.cmake -- Boost version: 1.42.0 CMake Error at /usr/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE): Could NOT find Akonadi (missing: Akonadi_CONFIG) Call Stack (most recent call first): /usr/share/apps/cmake/modules/FindAkonadi.cmake:40 (find_package_handle_standard_args) plasma/generic/dataengines/akonadi/CMakeLists.txt:2 (find_package) -- Configuring incomplete, errors occurred! * ERROR: kde-base/plasma-workspace-4.6.0 failed: * cmake failed
Same bug is still present in 4.6.0 ebuild
*** Bug 352895 has been marked as a duplicate of this bug. ***
*** Bug 353001 has been marked as a duplicate of this bug. ***
*** Bug 353050 has been marked as a duplicate of this bug. ***
Same bug is present in kdebase-meta-4.6.0. I have solved it by emerging kde-base/akonadi. In addition I emerge kde-base/kdepimlibs with semantic-desktop enabled. It seems to me that the problem is that the dependency kde-base/akonadi is missing in the e-build kdebase-meta-4.6.0.
*** Bug 353615 has been marked as a duplicate of this bug. ***
(In reply to comment #7) > Same bug is present in kdebase-meta-4.6.0. > I have solved it by emerging kde-base/akonadi. In addition I emerge > kde-base/kdepimlibs with semantic-desktop enabled. > > It seems to me that the problem is that the dependency kde-base/akonadi is > missing in the e-build kdebase-meta-4.6.0. > akonady requires old version of kdepim: localhost portage # emerge -pv kde-base/akonadi These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild U ] kde-base/kdepim-icons-4.4.9 [4.4.6] USE="(-aqua) (-kdeenablefinal) (-kdeprefix)" 8,872 kB [ebuild U ] app-office/akonadi-server-1.5.0 [1.3.1] USE="server%* sqlite -mysql* -postgres" 204 kB [ebuild R ] kde-base/kdepimlibs-4.6.0 USE="handbook semantic-desktop* (-aqua) -debug (-kdeenablefinal) (-kdeprefix) -ldap -test" 0 kB [ebuild N ] kde-base/libkdepim-4.4.9 USE="(-aqua) -debug (-kdeenablefinal) (-kdeprefix)" 0 kB [ebuild N ] kde-base/kdepim-runtime-4.4.9 USE="(-aqua) -debug (-kdeenablefinal) (-kdeprefix)" 612 kB [ebuild N ] kde-base/akonadi-4.4.9 USE="(-aqua) -debug (-kdeenablefinal) (-kdeprefix)" 0 kB
i am having a hard time trying to reproduce here. I wiped out my kde packages, and still I get: homeboy ~ # emerge -av1 plasma-workspace These are the packages that would be merged, in order: Calculating dependencies ... done! emerge: there are no ebuilds built with USE flags to satisfy ">=kde-base/kdelibs-4.6.0[aqua=,-kdeprefix,semantic-desktop]". !!! One of the following packages is required to complete your request: - kde-base/kdelibs-4.6.0-r1 (Change USE: +semantic-desktop) (dependency required by "kde-base/libkworkspace-4.6.0" [ebuild]) (dependency required by "kde-base/libtaskmanager-4.6.0" [ebuild]) (dependency required by "kde-base/plasma-workspace-4.6.0" [ebuild]) (dependency required by "plasma-workspace" [argument])
i need the following output from someone who hit the bug: emerge -pv kdelibs libkworkspace libtaskmanager plasma-workspace plus an emerge --info
Looks like the problem is that cmake configuration needs akonadi installed when kdepimlibs is found. More specifically, dataengines "calendar" and "akonadi" needs akonadi. To reproduce, try to build with kdepimlibs and without akonadi installed, it should trigger the bug and fail on cmake configure. This condition is on file plasma/generic/dataengines/CMakeLists.txt, line 30: 30 if(KDEPIMLIBS_FOUND) 31 add_subdirectory(akonadi) 32 add_subdirectory(calendar) 33 add_subdirectory(rss) 34 endif(KDEPIMLIBS_FOUND) I was able to fix this bug on my system inserting an additional condition to look for akonadi, as I don't have it installed: 30 if(KDEPIMLIBS_FOUND) 31 if(AKONADI_FOUND) 32 add_subdirectory(akonadi) 33 add_subdirectory(calendar) 34 endif(AKONADI_FOUND) 35 add_subdirectory(rss) 36 endif(KDEPIMLIBS_FOUND) I don't know if this is the right way to fix this, but it is an starting point. I am attaching my patch, if it can helps.
Created attachment 261469 [details, diff] Verifies if akonadi is installed to conditionally enable dataengines data need it
OK after an extended testing (which included wiping out my KDE installation), it seems that plasma-workspace needed kdepimlibs with akonadi-server support (pulled by semantic-desktop use flag). @Fabiano: your patch does seem to be OK, but in order to ensure that it won't have any side-effects, it should be taken upstream ASAP. Please file a reviewboard and pastebin the link here
The patch is in tree (and overlay) now, thanks a lot @Fabiano: my previous comment is still valid
> @Fabiano: > your patch does seem to be OK, but in order to ensure that it won't have any > side-effects, it should be taken upstream ASAP. Please file a reviewboard and > pastebin the link here Hi, sorry, I am not familiar with KDE development process. Can someone else handle this to upstream? If not, I may try to do so later, tough not sure when I will be able to find some time.
Ok i'll handle it, thank you anyway
for the record http://git.reviewboard.kde.org/r/100568/ and the relevant commit is: https://projects.kde.org/projects/kde/kdebase/kde-workspace/repository/revisions/5d49ab8a005166563e925e0768857517fea9228e/diff
This is probably related. I have removed the semantic-desktop use flag, and a few packages like nepomuk, akonadi, soprano that were not needed anymore. Now kdeplasma-addons is failing: [ 71%] Building CXX object runners/contacts/CMakeFiles/krunner_contacts.dir/contactsrunner.o Linking CXX shared module ../../lib/kcm_krunner_charrunner.so In file included from /var/tmp/paludis/kde-base-kdeplasma-addons-4.6.0/work/kdeplasma-addons-4.6.0_build/runners/events/../../../kdeplasma-addons-4.6.0/runners/events/events_config.h:29:0, from /var/tmp/paludis/kde-base-kdeplasma-addons-4.6.0/work/kdeplasma-addons-4.6.0_build/runners/events/moc_events_config.cpp:10, from /var/tmp/paludis/kde-base-kdeplasma-addons-4.6.0/work/kdeplasma-addons-4.6.0_build/runners/events/kcm_plasma_runner_events_automoc.cpp:4: /usr/include/KDE/Akonadi/Collection:1:38: fatal error: ../../akonadi/collection.h: No such file or directory compilation terminated. make[2]: *** [runners/events/CMakeFiles/kcm_plasma_runner_events.dir/kcm_plasma_runner_events_automoc.o] Error 1 make[1]: *** [runners/events/CMakeFiles/kcm_plasma_runner_events.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 71%] Building CXX object runners/contacts/CMakeFiles/krunner_contacts.dir/imageiconengine.o [ 71%] Built target krunner_charrunner /var/tmp/paludis/kde-base-kdeplasma-addons-4.6.0/work/kdeplasma-addons-4.6.0/runners/contacts/contactsrunner.cpp:26:51: fatal error: akonadi/contact/contactdefaultactions.h: No such file or directory compilation terminated. make[2]: *** [runners/contacts/CMakeFiles/krunner_contacts.dir/contactsrunner.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [runners/contacts/CMakeFiles/krunner_contacts.dir/all] Error 2
already reported, bug 353730
CMake Error at /usr/share/apps/cmake/modules/FindPackageHandleStandardArgs.cmake:198 (MESSAGE): Could NOT find Akonadi (missing: Akonadi_CONFIG) Call Stack (most recent call first): /usr/share/apps/cmake/modules/FindAkonadi.cmake:40 (find_package_handle_standard_args) plasma/generic/dataengines/akonadi/CMakeLists.txt:2 (find_package) -- Configuring incomplete, errors occurred! * ERROR: kde-base/plasma-workspace-4.6.3 failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 6940: Called kde4-meta_src_configure * environment, line 4294: Called kde4-base_src_configure * environment, line 3971: Called cmake-utils_src_configure * environment, line 2070: Called _execute_optionaly 'src_configure' * environment, line 1016: Called enable_cmake-utils_src_configure * environment, line 2390: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; * * If you need support, post the output of 'emerge --info =kde-base/plasma-workspace-4.6.3', * the complete build log and the output of 'emerge -pqv =kde-base/plasma-workspace-4.6.3'. * The complete build log is located at '/home/system/var_tmp_portage/portage/kde-base/plasma-workspace-4.6.3/temp/build.log'. * The ebuild environment file is located at '/home/system/var_tmp_portage/portage/kde-base/plasma-workspace-4.6.3/temp/environment'. * S: '/home/system/var_tmp_portage/portage/kde-base/plasma-workspace-4.6.3/work/plasma-workspace-4.6.3' Because: --- /usr/portage/kde-base/plasma-workspace/plasma-workspace-4.6.2-r1.ebuild 2011-04-20 00:01:15.000000000 +0300 +++ /usr/portage/kde-base/plasma-workspace/plasma-workspace-4.6.3.ebuild 2011-05-07 13:47:47.000000000 +0300 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/plasma-workspace-4.6.2-r1.ebuild,v 1.2 2011/04/19 20:56:06 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/plasma-workspace-4.6.3.ebuild,v 1.1 2011/05/07 10:47:47 scarabeus Exp $ EAPI=3 @@ -35,7 +35,7 @@ ) qalculate? ( sci-libs/libqalculate ) rss? ( - $(add_kdebase_dep kdepimlibs 'semantic-desktop?') + $(add_kdebase_dep kdepimlibs 'semantic-desktop=') $(add_kdebase_dep libplasmaclock 'holidays') ) !rss? ( $(add_kdebase_dep libplasmaclock '-holidays') ) @@ -72,8 +72,6 @@ PATCHES=( "${FILESDIR}/${PN}-4.4.2-xinerama_cmake_automagic.patch" - "${FILESDIR}/${PN}-4.6.2-optional_akonadi-server.patch" - "${FILESDIR}/${PN}-4.6.2-oldpimcrash.patch" ) pkg_setup() { What was akonadi patch removed from 4.6.3? This is a regression of an already-fixed bug.