[Kde-pim] Review Request 122231: Use ecm_optional_add_subdirectory to allow disabling parts of kdepim

Bernd Steinhauser linux at bernd-steinhauser.de
Sun Apr 19 20:30:30 BST 2015



> On Jan. 23, 2015, 10:16 p.m., Laurent Montel wrote:
> > I am against it.
> > It's not really useful.
> > I removed it because I didn't want it. We can't test all case so it will create more bug that useful.
> > So sorry no.
> > 
> > Regards.
> 
> Bernd Steinhauser wrote:
>     Ok, I see. What about a reduced patch to reduce the varity of options, but at least allow to disable some parts?
>     
>     Reason is, that kdepim right now is huge and takes over 2h for me to compile.
>     
>     I.e. I have no interest in testing blogilo (which needs libkgapi, which I'm also not interested in), knotes and kontact/korganizer.
> 
> Sandro Knauß wrote:
>     well you can simply add the targets you want to compile by hand aka:
>     
>     make kmail akonadiconsole install/fast
>     
>     to compile only kmail and akonadiconsole + all relevant libs and install them. This is how i do it while developing.
> 
> Bernd Steinhauser wrote:
>     So in this case, we would have to provide a specific installation file for each optional compilation?
>     
>     That doesn't really sound like a viable option.
>     
>     Compiling like this works fine and is actually the better option compared to the beforementioned patch, but installation isn't, afaics. Any ideas?
> 
> Sandro Knauß wrote:
>     You have to run make install/fast in every subdir you care about:
>     make kmail akonadiconsole
>     cd kmail
>     make install/fast
>     cd ../akonadiconsole
>     make install/fast
>     
>     unfortunatelly you have also to do this for each dependecy like messagecomposer/messageviewer etc.
>     
>     So i would recommend to compile everything one time and than the make install/fast in the maindir works.
>     
>     With the move to Qt5 some apps will move to own repos so there will be less that you can skip :)
>     
>     But we should move this discussion from the review  the kde-pim ml and discard the review.

Ok, I'll drop it. I will write a mail to the kdepim mailing list about this in the next few days.

If things end up in individual repositories (reasonably small), that would be much appreciated, also from the package maintaining point of view.


- Bernd


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122231/#review74642
-----------------------------------------------------------


On Jan. 23, 2015, 9:07 p.m., Bernd Steinhauser wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122231/
> -----------------------------------------------------------
> 
> (Updated Jan. 23, 2015, 9:07 p.m.)
> 
> 
> Review request for KDEPIM.
> 
> 
> Repository: kdepim
> 
> 
> Description
> -------
> 
> kdepim is a very large thing, so it is desirable to have the possibility to deactivate some parts.
> In KDE4, macro_optional_add_subdirectory was used for this but during the migration was converted to an unconditional add_subdirectory.
> The patch changes this behaviour by using the function ecm_optional_add_subdirectory provided by extra-cmake-modules.
> 
> I performed this change for every subdir, that was previously using the afore-mentioned macro. 
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 4988004 
> 
> Diff: https://git.reviewboard.kde.org/r/122231/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Bernd Steinhauser
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list