Summary: | Too much linkage ... | ||
---|---|---|---|
Product: | [Developer tools] buildsystem | Reporter: | Sune Vuorela <debian> |
Component: | KDE4 (cmake) | Assignee: | Alexander Neundorf <neundorf> |
Status: | RESOLVED LATER | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sune Vuorela
2008-04-18 15:35:31 UTC
This is at least partly the same as this one: http://public.kitware.com/Bug/view.php?id=6846 so please add further comments on that aspect over there please. Why does it increase the number of required packages ? The libs should really only appear there if they are used (at least by some base library), so they really should be required. But I can have a look whether there are some unnecessary duplictes. Alex I wrote a patch (for CMake 2.6) which: * Makes use of the new IMPORTED targets to import kdelibs library dependency information (instead of old _LIB_DEPENDS) * Makes use of LINK_INTERFACE_LIBRARIES [1] target property to minimise the number of libraries exported via public interface to the ones absolutely necessary. * Compatible with CMake 2.4, simply the old way is used. However, if KDELibs was built with CMake 2.6, CMake 2.4 cannot be used to build other KDE apps. Patches are available at http://svn.debian.org/wsvn/pkg-kde/branches/kde4/packages/kdelibs/debian/patches/?rev=0&sc=0 (97th and 98th) Checkout http://svn.debian.org/wsvn/pkg-kde/branches/kde4/packages/kdelibs/debian/changelog?op=file&rev=0&sc=0 for a bit more details. Currently we are in progress to recompile whole KDE with them to discover deficiencies. 1. http://www.vtk.org/Bug/view.php?id=3490 Alex, do you support my work or do you think I'm pushing too far with all this? In the end, it will hurt Debian users because some KDE apps will fail to compile out-of-the-box (without fixed target_link_libraries). Some KDE apps (including offcial module) assume recursive and implicit dependences of ${ZLIB_LIBRARY} ${X11_X11_LIB} etc, but this is not a very big problem. However, if I drop implicit ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} (which are not strictly needed for every app and lib), things get very ugly (with many linkages failing). Completely independent from whether you are right or not, DON'T DO THAT. There is not yet any stable 2.6.0 release, you shouldn't make anything depend on the RCs. KDE4 requires cmake 2.4.5, you make it require cmake >= 2.6.0. We just had one user on the kdevelop list claiming that KDE requires cmake 2.6, and it surely doesn't. By modifying it so much from the original sources in svn, we end up with two very different builds, and we/I can't support builds which differ from KDE svn. Once we require cmake 2.6.x for KDE, we can and probably will do that. So if you want to modify anything in the KDE build, please discuss it before on kde-buildsystem@kde.org. I strongly suggest that you use cmake 2.4.5 or 2.4.8 for building KDE for the packages. Alex |