Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434144 - kde-base/kdepimlibs missed boost dependency in KdepimLibsConfig.cmake.in
Summary: kde-base/kdepimlibs missed boost dependency in KdepimLibsConfig.cmake.in
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 434044 (view as bug list)
Depends on:
Blocks: boost-1.50
  Show dependency tree
 
Reported: 2012-09-06 17:29 UTC by Alex Turbov
Modified: 2012-11-09 15:06 UTC (History)
1 user (show)

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


Attachments
patch to add missed implicit dependency (kdepimlibs-4.9.1-add-missed-boost-dep.patch,756 bytes, patch)
2012-09-06 17:31 UTC, Alex Turbov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Turbov 2012-09-06 17:29:25 UTC
kdepimlibs uses boost header-only libs but doesn't provides this #include dependency in it's KdepimLibsConfig.cmake after install, so other applications (like pykde) fail to compile (w/ boost-1.50) because they detect only kdepimlibs and do not detect boost in their CMakeLists.txt (and it is quite Ok! why to detect smth if you don't use it directly??)

Reproducible: Always

Steps to Reproduce:
1. make sure you have >=boost-1.50-r2 installed
2. make sure there is no /usr/include/boost
3. just try to emerge KDE 4.9.1
Actual Results:  
pykde failed to compile because of kdepimlibs. which doesn't provides an implicit depedency on boost in it's KdepimLibsConfig.cmake (which is used to detect kdepimlibs by others)


rejected upstream bug report https://bugs.kde.org/show_bug.cgi?id=306323&list_id=197338
Comment 1 Alex Turbov 2012-09-06 17:31:17 UTC
Created attachment 323096 [details, diff]
patch to add missed implicit dependency
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2012-09-07 12:23:49 UTC
When i understand upstream right this is a duplicate of bug #434044 ?
Comment 3 Alex Turbov 2012-09-07 12:26:09 UTC
(In reply to comment #2)
> When i understand upstream right this is a duplicate of bug #434044 ?

not a duplicate but blocks.
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2012-09-07 12:33:20 UTC
But upstream says that this approach is totally wrong and should be fixed in pykde...
Comment 5 Alex Turbov 2012-09-07 12:54:48 UTC
(In reply to comment #4)
> But upstream says that this approach is totally wrong and should be fixed in
> pykde...

Ok, I'll try to be polite (but it's really hard)...
Just ask any SANE developer: what he expect from `find_package(...)` in cmake, or running `pkg-config --cflags ...`, or autoconf macros authors... should that configuration tools return a *COMPLETE* compiler options needed for successful compilation of his project which is depend on smth? Or is it Ok to call a bunch of other detectors to find depecdencies of its dependecy??

pykde DO NOT use boost explicitly! so WHY pykde developers should detect it???
I've got a broad experience as maintainer of closed and open source project based on autotools(+pkg-config) and cmake, and first time in my life met such a stupid case... just suppose if I wrote a library with a bunch of dependencies (boost, poco, qt4, kdelibs, lot of others), but in redistributable configuration file (.pc, .m4 or .cmake) just provide only -I/prefix/of/mylibrary and -lmylib... so my users HAVE to (re)detect all that IMPLICIT dependencies by themself... I guess than mylib will have the only user (me) in that case... or it must be really *brilliant*, so users will use it and write a sane configuration tool for me, but I'll reject the patches! (as KDE upstream now do)... damn stupid!
Comment 6 Alex Turbov 2012-09-07 13:06:39 UTC
(In reply to comment #4)
> But upstream says that this approach is totally wrong and should be fixed in
> pykde...

try to ask upstream for reasons of that stupid behaviour...
why they want to force OTHERS (pykde devs maybe some other projects) to do their job...
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-09-10 14:45:10 UTC
Patch added in 4.9.1-r1 and later. Thanks. Upstream is not really behaving constructive.
Comment 8 Johannes Huber (RETIRED) gentoo-dev 2012-09-15 18:47:41 UTC
*** Bug 434044 has been marked as a duplicate of this bug. ***