Summary: | app-office/calligra-2.3.87 USE=calligra_features_plan - work/calligra-2.3.87/plan/libs/ui/kptsummarytaskgeneralpanel.cpp:35:57: fatal error: akonadi/contact/emailaddressselectiondialog.h: No such file or directory compilation terminated. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ondřej Kajínek <ondrej.kajinek> |
Component: | [OLD] KDE | Assignee: | Andreas K. Hüttel <dilfridge> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, office |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build_log
portage_output modified calligra-2.3.87.ebuild |
Description
Ondřej Kajínek
2012-02-26 17:57:10 UTC
Created attachment 303395 [details]
build_log
build.log from attempt to emerge calligra with plan feature
could not replicate. gentoo64 calligra # qfile emailaddressselectiondialog.h kde-base/kdepimlibs (/usr/include/akonadi/contact/emailaddressselectiondialog.h) ebuild has calligra_features_plan? ( kdepim ) && the emerge demanded the use flag kdepim. I find it diffcult to see how this occured. Is it posible you used USE=calligra_features_plan ebuild calligra-2.3.87.ebuild merge tather than emerge, because that will skirt the deps. Hi, I tried searching for emailaddressselectiondialog.h (qfile, locate), but I don't have it in my system (even akonadi directory isn't present in my /usr/include/ directory). Kde-base/kdepimlibs is installed (have been merged before, with KDE apps). I certainly used "emerge app-office/calligra", I've been trying to emerge it several times, on x86 and later on amd64, and on both machines I got the same error. Portage forced me to add kdepim flag when trying to emerge with calligra_features_plan, and also pulled several more dependencies. I'll try to re-emerge kde-base/kdepimlibs (now I've installed 4.7.4-r1 with all USE flags disabled) and then app-office/calligra, and will post the result. Thanks for your time and effort I found out that calligra with plan feature compiles correctly when kde-base/kdepimlibs is compiled with semantic-desktop USE flag enabled. Only in such case you get emailaddressselectiondialog.h in your /usr/include/ directory. I suppose that this header is pulled with app-office/akonadi-server, on which kdepimlibs[semantic-desktop] depend. I'll modify the calligra-2.3.87.ebuild and once again try to emerge calligra, and if it is successful, post the modified ebuild, if such solution would be acceptable. Created attachment 304909 [details]
portage_output
after emerging app-office/calligra, I got this when tried emerge -pvuDN world
Well... I add "calligra_features_plan? ( kde-base/kdepimlibs[semantic-desktop] )" to RDEPEND in calligra-2.3.87.ebuild so portage pulls all packages needed to compile app-office/calligra. Now I am able to emerge calligra without any problem, calligraplan runs. Problem is, that I have semantic-desktop flag disabled in all my packages (excluding kdelibs and kdepimlibs), portage starts to complain about slot conflicts (see portage_output in my previous post). So I have to enable semantic-desktop globally (or use any alternative to calligraplan) and re-emerge several packages (if you disable this flag and reinstall kdelibs and kdepimlibs, you also remove some libs needed by calligraplan). I don't think that this solution is "nice" (only working, with some headache), calligra compiles with calligra_feature_plan enabled, calligraplan runs. I'm a little disapointed, I hope there is an easier way. Problem is, that I have semantic-desktop flag disabled in all my packages (excluding kdelibs and kdepimlibs) ouch. Have a good reason? kde and co like use=semantic-desktop Actually the plan really uses akonadi. Which means that it NEEDS semanitc-desktop on. Sadly the semantic-desktop useflag is ment to be set only in make.conf so you can wether enable it globaly, or disable it globaly. If you finetune your semantic-desktop useflag then you should stop doing so as it only will result in broken system. @Andreas: as it seems in the cmakelists just add the dep there. I have modified calligra-2.3.87.ebuild (added the missing dependency and some ewarns about recompiling KDE apps with semantic-desktop flag enabled), I'm going to emerge calligra once again, and if the ebuild will seem fine to me, I'll post it here (or if it should be put on different place, I will do so). @Ian: yes, as you said, you have to enable semantic-desktop flag in kdelibs and kdepimlibs, otherwise calligra won't compile. And having these libs with semantic-desktop on forces you to enable it in all other KDE apps that use this flag (try updating your system, portage will suggest to disable this flag in libs, or to enable it in dolphin, amarok, etc), or recompile kde{,pim}libs without this flag (which breaks dependecies of calligraplan) => you'll end up with semantic-desktop enabled :) Created attachment 305903 [details]
modified calligra-2.3.87.ebuild
This ebuild contains dependency of calligraplan which are missing in official portage ebuild. And when emerging calligra with feature_plan, emerge will show warning about semantic-desktop flag (either globally enabled, or disabled, which leads to unability to run calligraplan).
Requirement added... thanks. thanks? why? :) solving this bug was quite easy and fun :) (and my very first experience with ebuilds) (In reply to comment #12) > thanks? why? :) solving this bug was quite easy and fun :) (and my very > first experience with ebuilds) :) feel free to join us on #gentoo-kde or any of the other gentoo irc channels on freenode, we're always glad for help :) |