From 2505ae52c9dec8e3f2f8ca7cc862d844d87113f4 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Wed, 27 Aug 2025 20:08:35 +0200 Subject: [PATCH] breeze-icons: fix icons-dark build use 'generate-symbolic-dark' provided by native recipe instead of running target built binary --- ...MakeLists.txt-dont-use-target-binary.patch | 28 +++++++++++++++++++ .../kde/breeze-icons/breeze-icons_6.17.0.bb | 7 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons/0001-icons-dark-CMakeLists.txt-dont-use-target-binary.patch diff --git a/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons/0001-icons-dark-CMakeLists.txt-dont-use-target-binary.patch b/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons/0001-icons-dark-CMakeLists.txt-dont-use-target-binary.patch new file mode 100644 index 0000000..88bd177 --- /dev/null +++ b/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons/0001-icons-dark-CMakeLists.txt-dont-use-target-binary.patch @@ -0,0 +1,28 @@ +From 7a59af580210d064316ac07e606cba06b9cab9fd Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Wed, 27 Aug 2025 20:01:28 +0200 +Subject: [PATCH] icons-dark/CMakeLists.txt: dont use target binary + +Signed-off-by: Markus Volk + +Upstream-Status: Inappropriate [oe-specific] +--- + icons-dark/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/icons-dark/CMakeLists.txt b/icons-dark/CMakeLists.txt +index 567a7b1c..d03f8453 100644 +--- a/icons-dark/CMakeLists.txt ++++ b/icons-dark/CMakeLists.txt +@@ -15,7 +15,7 @@ if(WITH_ICON_GENERATION) + # No trainling slashes on dirs. It will break scripts. + add_custom_target(breeze-generate-symbolic-dark ALL + COMMENT "Generating symbolic dark icons" +- COMMAND $ ${CMAKE_SOURCE_DIR}/icons ${ICON_GEN_DIR} ++ COMMAND "generate-symbolic-dark" ${CMAKE_SOURCE_DIR}/icons ${ICON_GEN_DIR} + ) + # Auto-generate 24px monochrome icons from 22px versions + add_custom_target(breeze-generate-24px-versions-dark ALL +-- +2.50.1 + diff --git a/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons_6.17.0.bb b/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons_6.17.0.bb index b7bded9..0fc9d30 100644 --- a/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons_6.17.0.bb +++ b/dynamic-layers/meta-qt6/recipes-qt/kde/breeze-icons/breeze-icons_6.17.0.bb @@ -4,6 +4,7 @@ LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM += "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" SRC_URI = "git://invent.kde.org/frameworks/breeze-icons.git;protocol=https;nobranch=1" +SRC_URI += "file://0001-icons-dark-CMakeLists.txt-dont-use-target-binary.patch" SRCREV = "2a9b908671d4168fa94583f043c33f6b90aec3a7" DEPENDS = " \ @@ -18,9 +19,13 @@ DEPENDS = " \ inherit qt6-cmake pkgconfig +EXTRA_OECMAKE:class-native += "-DWITH_ICON_GENERATION=OFF" + do_install:class-native() { install -d ${D}${bindir} - install -m 755 ${B}/bin/qrcAlias ${D}${bindir} + for file in ${B}/bin/*; do + install -m 755 $file ${D}${bindir} + done } FILES:${PN} += "${libdir}/qml ${datadir}/icons"