Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350850 - plasma-workspace-4.6.0 doesn't build without semantic-desktop
Summary: plasma-workspace-4.6.0 doesn't build without semantic-desktop
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 352895 353001 353050 353615 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-06 18:50 UTC by Franz Trischberger
Modified: 2011-05-07 16:20 UTC (History)
9 users (show)

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


Attachments
Verifies if akonadi is installed to conditionally enable dataengines data need it (plasma-workspace-4.6.0-fix_build_without_akonadi.patch,781 bytes, patch)
2011-02-04 01:18 UTC, Fabiano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2011-01-06 18:50:26 UTC
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
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-01-06 20:30:07 UTC
I've hit the same issue with plasma-workspace-9999 earlier today.
Comment 2 George 2011-01-27 05:02:29 UTC
-- 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
Comment 3 Markus Hauschild 2011-01-27 20:46:42 UTC
Same bug is still present in 4.6.0 ebuild
Comment 4 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-01-28 04:22:47 UTC
*** Bug 352895 has been marked as a duplicate of this bug. ***
Comment 5 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-01-28 04:25:50 UTC
*** Bug 353001 has been marked as a duplicate of this bug. ***
Comment 6 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-01-28 12:26:19 UTC
*** Bug 353050 has been marked as a duplicate of this bug. ***
Comment 7 Denis 2011-01-29 00:07:36 UTC
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. 
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-02-03 14:56:47 UTC
*** Bug 353615 has been marked as a duplicate of this bug. ***
Comment 9 Max S. Makarov 2011-02-03 15:13:58 UTC
(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

Comment 10 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-03 20:07:34 UTC
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])
Comment 11 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-03 22:25:29 UTC
i need the following output from someone who hit the bug:

emerge -pv kdelibs libkworkspace libtaskmanager plasma-workspace

plus an emerge --info
Comment 12 Fabiano 2011-02-04 01:17:06 UTC
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.
Comment 13 Fabiano 2011-02-04 01:18:55 UTC
Created attachment 261469 [details, diff]
Verifies if akonadi is installed to conditionally enable dataengines data need it
Comment 14 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-04 10:57:28 UTC
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
Comment 15 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-04 13:57:51 UTC
The patch is in tree (and overlay) now, thanks a lot

@Fabiano: my previous comment is still valid
Comment 16 Fabiano 2011-02-04 17:42:16 UTC
> @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.
Comment 17 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-04 17:44:58 UTC
Ok i'll handle it, thank you anyway
Comment 19 Mikko C. 2011-02-05 08:13:41 UTC
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

Comment 20 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2011-02-05 08:17:00 UTC
already reported, bug 353730
Comment 21 Zeev Tarantov 2011-05-07 16:20:48 UTC
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.