Bug 342477 - required component reported as optional during cmake configuration
Summary: required component reported as optional during cmake configuration
Status: RESOLVED DUPLICATE of bug 342015
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-04 11:32 UTC by kavol
Modified: 2015-01-04 19:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2015-01-04 11:32:34 UTC
Trying to compile libkdepim without Baloo, the compilation failed due to hard dependency on it. However, cmake reported Baloo as an optional component.

The respective CMakeLists reads 'TYPE REQUIRED' but the output is

...
-- The following OPTIONAL packages have not been found:

 * Baloo (required version >= 4.14.0) , The Baloo libraries , <http://www.kde.org>
   Baloo provides search capabilities in KMail and Akonadi
...

This has been discussed in bug 342015 and it was suggested in comment #3 to file the particular issue about wrong cmake output as a kdelibs bug, so here it is.

Reproducible: Always

Steps to Reproduce:
1. install kdepim build dependencies but not Baloo
2. unpack kdepim-4.14.3.tar.xz
3. cmake .

Actual Results:  
...

-- The following OPTIONAL packages have been found:

 * Perl
 * KdepimLibs (required version >= 4.14.3) , The KDEPIM libraries , <http://www.kde.org>
 * Boost (required version >= 1.34.0) , Boost C++ Libraries , <http://www.boost.org>
   Boost is required for building most KDEPIM applications
 * Akonadi (required version >= 1.12.90) , Akonadi server libraries , <http://pim.kde.org/akonadi>
   Akonadi is required to build KDEPIM
 * ZLIB , The Zlib compression library , <http://www.zlib.net>
 * Gpgme
 * Threads
 * PkgConfig
 * OpenSSL
 * Grantlee (required version >= 0.3.0) , The Grantlee Template System , <http://www.gitorious.org/grantlee/pages/Home>
   Grantlee is requires for kmail and templating, theming for KJots, KaddressBook, KNotes and MessageViewer(KMail).
 * Xsltproc , XSLT processor from libxslt
   Required to generate D-Bus interfaces.
 * QJSON , QJSON , <http://qjson.sourceforge.net/>
   Qt library for handling JSON data
 * LibKGAPI2 (required version >= 2.2.0) , KDE-based library for accessing various Google services , <https://projects.kde.org/libkgapi>
   LibKGAPI is required to build Google Drive Storage Service
 * Assuan2

-- The following RECOMMENDED packages have been found:

 * QGpgme , The QGpgMe library , <http://www.kde.org>
   QGpgME is required to build KMail, KOrganizer and Kleopatra

-- The following REQUIRED packages have been found:

 * Automoc4
 * Phonon (required version >= 4.3.80)
 * KDE4Internal
 * KDE4 (required version >= 4.13.0)
 * X11
 * Qt4

-- The following OPTIONAL packages have not been found:

 * Baloo (required version >= 4.14.0) , The Baloo libraries , <http://www.kde.org>
   Baloo provides search capabilities in KMail and Akonadi
 * Prison , The Prison library , <http://projects.kde.org/prison>
   Needed to show mobile barcodes of your contacts

...

(cmake exits without error)

Expected Results:  
...

-- The following OPTIONAL packages have been found:

 * Perl
 * KdepimLibs (required version >= 4.14.3) , The KDEPIM libraries , <http://www.kde.org>
 * Boost (required version >= 1.34.0) , Boost C++ Libraries , <http://www.boost.org>
   Boost is required for building most KDEPIM applications
 * Akonadi (required version >= 1.12.90) , Akonadi server libraries , <http://pim.kde.org/akonadi>
   Akonadi is required to build KDEPIM
 * ZLIB , The Zlib compression library , <http://www.zlib.net>
 * Gpgme
 * Threads
 * PkgConfig
 * OpenSSL
 * Grantlee (required version >= 0.3.0) , The Grantlee Template System , <http://www.gitorious.org/grantlee/pages/Home>
   Grantlee is requires for kmail and templating, theming for KJots, KaddressBook, KNotes and MessageViewer(KMail).
 * Xsltproc , XSLT processor from libxslt
   Required to generate D-Bus interfaces.
 * QJSON , QJSON , <http://qjson.sourceforge.net/>
   Qt library for handling JSON data
 * LibKGAPI2 (required version >= 2.2.0) , KDE-based library for accessing various Google services , <https://projects.kde.org/libkgapi>
   LibKGAPI is required to build Google Drive Storage Service
 * Assuan2

-- The following RECOMMENDED packages have been found:

 * QGpgme , The QGpgMe library , <http://www.kde.org>
   QGpgME is required to build KMail, KOrganizer and Kleopatra

-- The following REQUIRED packages have been found:

 * Automoc4
 * Phonon (required version >= 4.3.80)
 * KDE4Internal
 * KDE4 (required version >= 4.13.0)
 * X11
 * Qt4

-- The following OPTIONAL packages have not been found:

 * Prison , The Prison library , <http://projects.kde.org/prison>
   Needed to show mobile barcodes of your contacts

-- The following REQUIRED packages have not been found:

 * Baloo (required version >= 4.14.0) , The Baloo libraries , <http://www.kde.org>
   Baloo provides search capabilities in KMail and Akonadi

...

(cmake exits with error)

Well, note that in fact I'd rather expected that Baloo is _really optional_, but since it isn't, see the bug 342015, it should not be reported as such ...

my kdelibs version is 4.14.3 (cannot be selected from the list in the Version field, hence 'unspecified')
Comment 1 Christophe Marin 2015-01-04 19:47:13 UTC

*** This bug has been marked as a duplicate of bug 342015 ***