From ea754ab414e3d4938adda301861ccf98df3b164f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 25 Jul 2025 08:20:26 -0700 Subject: [PATCH] qtwebengine: Disable building on musl targets Chromium needs lot of patches to build with musl e.g. see meta-browser [1] for patches Until there is interest to port qtwebengine to musl mark it incompatible [1] https://github.com/OSSystems/meta-browser/tree/master/meta-chromium/recipes-browser/chromium/files/musl Change-Id: Icb862000b957f89bf793b2cda4fada23c38bfe01 Reviewed-by: Samuli Piippo (cherry picked from commit 8827bfefbcacd28d9855a2ec4f8f4673a8c2559b) Reviewed-by: Qt Cherry-pick Bot --- recipes-qt/packagegroups/packagegroup-qt6-addons.bb | 2 ++ recipes-qt/qt6/chromium-gn.inc | 1 + recipes-qt/qt6/qtdoc_git.bb | 2 +- recipes-qt/qt6/qtwebview_git.bb | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-qt/packagegroups/packagegroup-qt6-addons.bb b/recipes-qt/packagegroups/packagegroup-qt6-addons.bb index 1e53e49..087cd48 100644 --- a/recipes-qt/packagegroups/packagegroup-qt6-addons.bb +++ b/recipes-qt/packagegroups/packagegroup-qt6-addons.bb @@ -73,3 +73,5 @@ RDEPENDS:${PN}:append:x86-64 = "\ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtpdf', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'webengine', 'qtwebengine qtwebview', '', d)} \ " + +RDEPENDS:${PN}:remove:libc-musl = "qtpdf qtwebengine qtwebview" diff --git a/recipes-qt/qt6/chromium-gn.inc b/recipes-qt/qt6/chromium-gn.inc index b2eac7f..ea48dc6 100644 --- a/recipes-qt/qt6/chromium-gn.inc +++ b/recipes-qt/qt6/chromium-gn.inc @@ -4,6 +4,7 @@ inherit linuxloader inherit qemu COMPATIBLE_MACHINE = "(-)" +COMPATIBLE_MACHINE:libc-musl = "(-)" COMPATIBLE_MACHINE:aarch64 = "(.*)" COMPATIBLE_MACHINE:armv6 = "(.*)" COMPATIBLE_MACHINE:armv7a = "(.*)" diff --git a/recipes-qt/qt6/qtdoc_git.bb b/recipes-qt/qt6/qtdoc_git.bb index b62fc66..cd9f78a 100644 --- a/recipes-qt/qt6/qtdoc_git.bb +++ b/recipes-qt/qt6/qtdoc_git.bb @@ -37,7 +37,7 @@ DEPENDS:append:armv7a = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtp DEPENDS:append:armv7ve = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtpdf', '', d)}" DEPENDS:append:x86 = " qtquick3dphysics" DEPENDS:append:x86-64 = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'qtpdf', '', d)} qtquick3dphysics" - +DEPENDS:remove:libc-musl = "qtpdf" PACKAGECONFIG ?= "examples" INSANE_SKIP:${PN}-ptest += "buildpaths" diff --git a/recipes-qt/qt6/qtwebview_git.bb b/recipes-qt/qt6/qtwebview_git.bb index 5c1b090..c453aa3 100644 --- a/recipes-qt/qt6/qtwebview_git.bb +++ b/recipes-qt/qt6/qtwebview_git.bb @@ -15,6 +15,7 @@ include recipes-qt/qt6/qt6.inc DEPENDS += "qtbase qtdeclarative qtdeclarative-native qtwebengine" COMPATIBLE_MACHINE = "(-)" +COMPATIBLE_MACHINE:libc-musl = "(-)" COMPATIBLE_MACHINE:aarch64 = "(.*)" COMPATIBLE_MACHINE:armv6 = "(.*)" COMPATIBLE_MACHINE:armv7a = "(.*)"