diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-6.10.1-QTBUG-142514.patch b/dev-qt/qtdeclarative/files/qtdeclarative-6.10.1-QTBUG-142514.patch new file mode 100644 index 0000000000000..088c6418f053b --- /dev/null +++ b/dev-qt/qtdeclarative/files/qtdeclarative-6.10.1-QTBUG-142514.patch @@ -0,0 +1,20 @@ +Recommended backport by upstream kde/plasma to fix plasmashell crashes. + +https://bugs.kde.org/show_bug.cgi?id=513527 +https://mail.kde.org/pipermail/distributions/2026-January/001667.html +https://qt-project.atlassian.net/browse/QTBUG-142514 +https://codereview.qt-project.org/c/qt/qtdeclarative/+/704031 +--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp ++++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp +@@ -1580,8 +1580,7 @@ + } else { + // If the object is C++-owned, we still have to release the weak reference we have +- // to it. +- ddata->jsWrapper.clear(); +- if (lastCall && ddata->propertyCache) +- ddata->propertyCache.reset(); ++ // to it. If the "main" wrapper is not ours, we should leave it alone, though. ++ if (ddata->jsWrapper.as() == this) ++ ddata->jsWrapper.clear(); + } + } diff --git a/dev-qt/qtdeclarative/qtdeclarative-6.10.1-r1.ebuild b/dev-qt/qtdeclarative/qtdeclarative-6.10.1-r2.ebuild similarity index 95% rename from dev-qt/qtdeclarative/qtdeclarative-6.10.1-r1.ebuild rename to dev-qt/qtdeclarative/qtdeclarative-6.10.1-r2.ebuild index 64f02eaea6a0e..99a5c039b8c10 100644 --- a/dev-qt/qtdeclarative/qtdeclarative-6.10.1-r1.ebuild +++ b/dev-qt/qtdeclarative/qtdeclarative-6.10.1-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021-2025 Gentoo Authors +# Copyright 2021-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -34,6 +34,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-6.10.1-QTBUG-142331.patch + "${FILESDIR}"/${PN}-6.10.1-QTBUG-142514.patch ) src_configure() {