Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946470 - kde-apps/marble-24.12.0[-kde]: Unknown CMake command "qt_policy".
Summary: kde-apps/marble-24.12.0[-kde]: Unknown CMake command "qt_policy".
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-12-14 15:03 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2024-12-15 12:42 UTC (History)
1 user (show)

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


Attachments
build log (build.log,5.65 KB, text/x-log)
2024-12-14 15:03 UTC, Sergey 'L29Ah' Alirzaev
Details
emerge --info (emerge.info,21.00 KB, text/plain)
2024-12-14 15:04 UTC, Sergey 'L29Ah' Alirzaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2024-12-14 15:03:50 UTC
Created attachment 914024 [details]
build log

-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.7.0", minimum required is "0.5.0")
-- Could NOT find KF6CoreAddons (missing: KF6CoreAddons_DIR)
-- Could NOT find KF6CoreAddons: found neither KF6CoreAddonsConfig.cmake nor kf6coreaddons-config.cmake 
-- Could NOT find KF6I18n (missing: KF6I18n_DIR)
-- Could NOT find KF6I18n: found neither KF6I18nConfig.cmake nor kf6i18n-config.cmake 
-- Could NOT find KF6Config (missing: KF6Config_DIR)
-- Could NOT find KF6Config: found neither KF6ConfigConfig.cmake nor kf6config-config.cmake 
-- Could NOT find KF6 (missing: CoreAddons I18n Config) (Required is at least version "6.5.0")
    Reason given by package: Missing the following required components: CoreAddons I18n Config

-- Could NOT find KF6Crash (missing: KF6Crash_DIR)
-- Could NOT find KF6Crash: found neither KF6CrashConfig.cmake nor kf6crash-config.cmake 
-- Could NOT find KF6Parts (missing: KF6Parts_DIR)
-- Could NOT find KF6Parts: found neither KF6PartsConfig.cmake nor kf6parts-config.cmake 
-- Could NOT find KF6 (missing: Crash Parts) (Required is at least version "6.5.0")
    Reason given by package: Missing the following required components: Crash Parts

CMake Error at CMakeLists.txt:113 (qt_policy):
  Unknown CMake command "qt_policy".


-- Configuring incomplete, errors occurred!
Comment 1 Sergey 'L29Ah' Alirzaev 2024-12-14 15:04:05 UTC
Created attachment 914025 [details]
emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2024-12-14 21:44:45 UTC
not again ...
Comment 3 Andreas Sturmlechner gentoo-dev 2024-12-15 00:25:35 UTC
Reproducible with USE=-kde and if really now KF6 packages are installed.
Comment 4 Larry the Git Cow gentoo-dev 2024-12-15 00:28:48 UTC
The bug has been referenced in the following commit(s):

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

commit ea33b74d9af8cc6e3e451c18cde7b9cdc0d10899
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-12-14 23:59:05 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-12-15 00:25:54 +0000

    kde-apps/marble: Drop unused dependencies, always run ecm_src_configure
    
    Upstream commits:
    9a8bd45e4b4f766ff3e5379504a0bf4e0edb9b21
    6ba72d68b57d41c97a1440cfbc9027f8052c1887
    
    IUSE kde: Replace bogus WITH_KF6 switch with deselecting all KF6 automagic.
    This is prerequisite to reproduce Unknown CMake command "qt_policy" error.
    
    Bug: https://bugs.gentoo.org/946470
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 kde-apps/marble/marble-24.12.49.9999.ebuild | 17 +++++++----------
 kde-apps/marble/marble-9999.ebuild          | 17 +++++++----------
 2 files changed, 14 insertions(+), 20 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2024-12-15 12:42:15 UTC
The bug has been closed via the following commit(s):

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

commit 2f280a59b1dbd4ce4dda3631a6824332fb814303
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-12-15 12:36:28 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-12-15 12:42:08 +0000

    kde-apps/marble: Fix build with USE="-kde"
    
    See also:
    https://invent.kde.org/education/marble/-/merge_requests/148
    https://invent.kde.org/education/marble/-/merge_requests/149
    
    Closes: https://bugs.gentoo.org/946470
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...-cmake-behaim-marble-maps-kf6-conditional.patch | 29 +++++++
 .../marble-24.12.0-cmake-drop-qt_policy.patch      | 69 ++++++++++++++++
 kde-apps/marble/marble-24.12.0-r1.ebuild           | 96 ++++++++++++++++++++++
 3 files changed, 194 insertions(+)