[PATCH] akonadi can't be built in kdesupport

Alexander Neundorf neundorf at kde.org
Mon Jun 15 20:21:30 CEST 2009


On Saturday 13 June 2009, Matthew Woehlke wrote:
> Slightly over-dramatic, but...
>
> I've gotten tired of having to bootstrap kdesupport because akonadi
> thinks it doesn't exist inside of there. I don't think this used to
> happen, but for some time it has been impossible to build (or even
> configure!) kdesupport after nuking the KDE install directory (which I
> have been doing often due to katepart continually breaking).
>
> Patch below fixes it. I will commit this in 1-2 weeks if I don't hear
> otherwise. (But please let me know if I can commit sooner!)
>
> Index: akonadi/cmake/modules/FindSoprano.cmake
> ===================================================================
> --- akonadi/cmake/modules/FindSoprano.cmake     (revision 981221)
> +++ akonadi/cmake/modules/FindSoprano.cmake     (working copy)
> @@ -37,6 +37,16 @@
>   #  set(SopranoIndex_FOUND TRUE)
>
>   #else(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND
> SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES)
> +# Are we using this inside kdesupport ?
>
> +# Then expect that Soprano is also part of kdesupport:
>
> +if(KDESupport_SOURCE_DIR)
>
> +  set(SOPRANO_INCLUDE_DIR ${KDESupport_SOURCE_DIR}/soprano)
>
> +  set(SOPRANO_INDEX_LIBRARIES sopranoindex)
>
> +  set(SOPRANO_CLIENT_LIBRARIES sopranoclient)
>
> +  set(SOPRANO_LIBRARIES soprano)
>
> +  set(SOPRANO_SERVER_LIBRARIES sopranoserver)

That doesn't work, since you also need the soprano libraries when building 
akonadi, and you don't know whether soprano has been already built, so with 
this it will fail at build time (which is worse than at cmake time).

Alex


More information about the Kde-buildsystem mailing list