dev-qt/qtdeclarative: backport unity build fix to the 6.10 branch

Still chances, but "seems" unlikely that this will be in the final
release at this point. If gets in, the patch will fail and make it
easy to know we can remove it on release anyway unlike the UNITY=no.

Worth backporting given qtdeclarative is one of the Qt module that
takes longer to build on average, and unity helps reduce a fair deal.

(not really tested yet, just in prepration for the release testing)

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2026-03-30 21:06:45 -04:00
parent 0264d39bc8
commit ec232a00e2
2 changed files with 21 additions and 5 deletions
@@ -0,0 +1,17 @@
https://codereview.qt-project.org/c/qt/qtdeclarative/+/723105
--- a/src/qmlcompiler/qqmlsa.cpp
+++ b/src/qmlcompiler/qqmlsa.cpp
@@ -1379,5 +1379,5 @@
QQmlJSScopesById::MostLikelyCallback<QQmlJSScope::ConstPtr> result;
PassManagerPrivate::visitor(*d->m_manager)->addressableScopes().possibleScopes(
- id.toString(), QQmlJSScope::scope(context), Default, result);
+ id.toString(), QQmlJSScope::scope(context), QQmlJSScopesByIdOption::Default, result);
return QQmlJSScope::createQQmlSAElement(result.result);
}
@@ -1391,5 +1391,5 @@
QQmlJSScopesById::MostLikelyCallback<QString> result;
PassManagerPrivate::visitor(*d->m_manager)->addressableScopes().possibleIds(
- QQmlJSScope::scope(element), QQmlJSScope::scope(context), Default, result);
+ QQmlJSScope::scope(element), QQmlJSScope::scope(context), QQmlJSScopesByIdOption::Default, result);
return result.result;
}
@@ -32,6 +32,10 @@ BDEPEND="
~dev-qt/qtshadertools-${PV}:6
"
PATCHES=(
"${FILESDIR}"/${PN}-6.10.3-unity-build.patch
)
src_configure() {
local mycmakeargs=(
$(cmake_use_find_package qmlls Qt6LanguageServerPrivate)
@@ -40,11 +44,6 @@ src_configure() {
$(qt_feature jit qml_jit)
$(qt_feature network qml_network)
$(qt_feature ssl qml_ssl)
# qqmljstypepropagator.cpp:391:76: error: reference to 'Default' is ambiguous
# Not really looked into but does not seem to happen in >=6.11,
# so just disable it for 6.10.3 as it'll be temporary.
-DQT_UNITY_BUILD=no
)
qt6-build_src_configure