From 707d1e1e7e89aaedd7825c753b1b525e0eb43823 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 27 Aug 2025 18:26:03 +0200 Subject: [PATCH] kcolorscheme, kiconthemes: add a hack to fix cmake build --- .../kde/kcolorscheme/kcolorscheme_6.17.0.bb | 15 +++++++++++++++ .../kde/kiconthemes/kiconthemes_6.17.0.bb | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/dynamic-layers/meta-qt6/recipes-qt/kde/kcolorscheme/kcolorscheme_6.17.0.bb b/dynamic-layers/meta-qt6/recipes-qt/kde/kcolorscheme/kcolorscheme_6.17.0.bb index ac3bb31..15fad7f 100644 --- a/dynamic-layers/meta-qt6/recipes-qt/kde/kcolorscheme/kcolorscheme_6.17.0.bb +++ b/dynamic-layers/meta-qt6/recipes-qt/kde/kcolorscheme/kcolorscheme_6.17.0.bb @@ -19,4 +19,19 @@ DEPENDS = " \ inherit qt6-cmake gettext pkgconfig +do_configure:prepend() { + # Those files are provided by 'kconfig' package but dont make it into STAGING_SYSROOT + #| The imported target "KF6::kconfig_compiler" references the file + #| + #| "../6.17.0/recipe-sysroot/usr/libexec/kf6/kconfig_compiler_kf6" + #| + #| but this file does not exist. + # add a hack to avoid cmake confusion: + mkdir -p ${STAGING_LIBEXECDIR}/kf6 + touch ${STAGING_LIBEXECDIR}/kf6/kconf_update + touch ${STAGING_LIBEXECDIR}/kf6/kconfig_compiler_kf6 +} + FILES:${PN} += "${libdir}/qml ${datadir}/qlogging-categories6" + +RDEPENDS:${PN} += "kconfig" diff --git a/dynamic-layers/meta-qt6/recipes-qt/kde/kiconthemes/kiconthemes_6.17.0.bb b/dynamic-layers/meta-qt6/recipes-qt/kde/kiconthemes/kiconthemes_6.17.0.bb index a72984b..e3459c5 100644 --- a/dynamic-layers/meta-qt6/recipes-qt/kde/kiconthemes/kiconthemes_6.17.0.bb +++ b/dynamic-layers/meta-qt6/recipes-qt/kde/kiconthemes/kiconthemes_6.17.0.bb @@ -22,4 +22,19 @@ DEPENDS = " \ inherit qt6-cmake gettext pkgconfig +do_configure:prepend() { + # Those files are provided by 'kconfig' package but dont make it into STAGING_SYSROOT + #| The imported target "KF6::kconfig_compiler" references the file + #| + #| "../6.17.0/recipe-sysroot/usr/libexec/kf6/kconfig_compiler_kf6" + #| + #| but this file does not exist. + # add a hack to avoid cmake confusion: + mkdir -p ${STAGING_LIBEXECDIR}/kf6 + touch ${STAGING_LIBEXECDIR}/kf6/kconf_update + touch ${STAGING_LIBEXECDIR}/kf6/kconfig_compiler_kf6 +} + FILES:${PN} += "${libdir}/qml ${libdir}/plugins/kiconthemes6 ${datadir}/qlogging-categories6" + +RDEPENDS:${PN} += "kconfig"