Development on kdevelop4 is hindered by an inconsistency between your distributed libraries and your distributed development files for those libs. When building kdevelop4 from sources, the following error appears: /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lKDE4Workspace__processui The file that points the build system to search for libKDE4Workspace__processui is /usr/lib64/cmake/KDE4Workspace-4.4.5/KDE4WorkspaceConfig.cmake. Here is the harmful snippet: set(KDE4WORKSPACE_TARGET_PREFIX KDE4Workspace__) ... macro(_KDE4WORKSPACE_Set_Lib_Vars _prefix _lib) set(KDE4WORKSPACE_${_prefix}_LIBRARY ${KDE4WORKSPACE_TARGET_PREFIX}${_lib}) set(KDE4WORKSPACE_${_prefix}_LIBS ${KDE4WORKSPACE_TARGET_PREFIX}${_lib}) endmacro(_KDE4WORKSPACE_Set_Lib_Vars) ... _kde4workspace_set_lib_vars( PROCESSUI processui) I believe the appropriate version for your distro would be: macro(_KDE4WORKSPACE_Set_Lib_Vars _prefix _lib) set(KDE4WORKSPACE_${_prefix}_LIBRARY ${_lib}) set(KDE4WORKSPACE_${_prefix}_LIBS ${_lib}) endmacro(_KDE4WORKSPACE_Set_Lib_Vars) This change will also remove the need for hacks in other ebuilds, such as that mentioned in bug #272829 Reproducible: Always
There's probably only one guy around who really understands this. Adding him.
I put this on the agenda for the next KDE meeting; needs to be discussed.
When i build kdevelop-4.2.3 with cmake-2.8.6 and gcc-4.5.3, can't see such an error. Is this still valid?
(In reply to comment #3) > When i build kdevelop-4.2.3 with cmake-2.8.6 and gcc-4.5.3, can't see such an > error. Is this still valid? Yes it is, I can reproduce it.
Hmm, this is actually good idea. I've commited a change based on this suggestion for field tests in overlay. http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=085abde8e34fbc3d6e48d15d0d274a0276924c96 Note that libkworkspace needs to be rebuilt afterwards.
Maybe the move of this fix should be done before stabilisation.
Since we have not heard of any major explosions as result of this, the change has been moved to the main tree (combined with a revbump of libkworkspace in all versions).