Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673430 - kde-apps/akonadi-search with mixed KDE Frameworks: cmake mistakenly raises minimum version to ECM version found
Summary: kde-apps/akonadi-search with mixed KDE Frameworks: cmake mistakenly raises mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://phabricator.kde.org/D17684
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-19 13:00 UTC by Martin Bednar
Modified: 2018-12-22 12:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bednar 2018-12-19 13:00:05 UTC
akonadi-search doesn't enforce framework version.
manually updating krunner solves the issue.
Very non-standard procedure -- partially updated frameworks and manually updating kmail.

-- Found KF5: success (found suitable version "5.53.0", minimum required is "5.51.0") found components:  I18n Config Crash KCMUtils
CMake Error at CMakeLists.txt:44 (find_package):
  Could not find a configuration file for package "KF5Runner" that is
  compatible with requested version "5.53.0".

  The following configuration files were considered but not accepted:

    /usr/lib64/cmake/KF5Runner/KF5RunnerConfig.cmake, version: 5.52.0
    /usr/lib/cmake/KF5Runner/KF5RunnerConfig.cmake, version: 5.52.0
Comment 1 Andreas Sturmlechner gentoo-dev 2018-12-19 13:04:43 UTC
All kde-apps/ ebuilds are setting minimum required Frameworks version, akonadi-search included.

I can only assume you are building live sources.
Comment 2 Andreas Sturmlechner gentoo-dev 2018-12-19 13:06:25 UTC
I assume that looking at akonadi-search 18.12 branch, which still has Frameworks 5.51.0 defined as minimum.
Comment 3 Martin Bednar 2018-12-19 13:10:12 UTC
akonadi-search-18.12.0
I see it too. This makes no sense...
Comment 4 Martin Bednar 2018-12-19 13:11:56 UTC
Could it be that some frameworks require the same version of other frameworks? I had a bunch on version 53, and some on 52. Some transitive mess?
Comment 5 Andreas Sturmlechner gentoo-dev 2018-12-19 13:16:17 UTC
The problem here is that upstream is using "KF5_VERSION" cmake var to define the minimum version (which is 5.51.0), but this is overridden with the "version found" value by the first call to find_package which is typically ECM and already updated to 5.53.0 in your case.
Comment 6 Martin Bednar 2018-12-19 13:25:16 UTC
Damn, that's some turnaround time. Thanks!
Comment 7 Andreas Sturmlechner gentoo-dev 2018-12-20 20:45:33 UTC
Fix landed upstream, meanwhile several other PIM packages received fixes to the same example.
Comment 8 Larry the Git Cow gentoo-dev 2018-12-22 11:43:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41836d5c8693a2ae264e54548c81b564b7ba4d8

commit a41836d5c8693a2ae264e54548c81b564b7ba4d8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-12-20 20:41:17 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-12-22 11:43:26 +0000

    kde-apps/akonadi-search: Fix cmake for odd Frameworks version mix
    
    Reported-by: Martin Bednar <martin@serafean.cz>
    Closes: https://bugs.gentoo.org/673430
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../akonadi-search/akonadi-search-18.12.0.ebuild   |  2 +
 .../files/akonadi-search-18.12.0-cmake.patch       | 62 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2018-12-22 12:13:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=d77da763447580a4dcf3776d8915b016b69bfeb0

commit d77da763447580a4dcf3776d8915b016b69bfeb0
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-12-20 20:41:17 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-12-22 12:10:24 +0000

    kde-apps/akonadi-search: Fix cmake for odd Frameworks version mix
    
    Reported-by: Martin Bednar <martin@serafean.cz>
    Closes: https://bugs.gentoo.org/673430
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../akonadi-search-18.12.49.9999.ebuild            |  2 +
 .../files/akonadi-search-18.12.0-cmake.patch       | 62 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)