Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qt6-declarative for openSUSE:Factory 
checked in at 2024-11-08 11:56:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qt6-declarative (Old)
 and      /work/SRC/openSUSE:Factory/.qt6-declarative.new.2017 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qt6-declarative"

Fri Nov  8 11:56:19 2024 rev:44 rq:1222121 version:6.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/qt6-declarative/qt6-declarative.changes  
2024-11-05 15:39:45.458897494 +0100
+++ 
/work/SRC/openSUSE:Factory/.qt6-declarative.new.2017/qt6-declarative.changes    
    2024-11-08 11:59:05.924758674 +0100
@@ -1,0 +2,7 @@
+Wed Nov  6 19:20:07 UTC 2024 - Fabian Vogt <fv...@suse.com>
+
+- Add patch (pending upstream) to fix properties getting GC'd:
+  (QTBUG-128789, kde#494804)  
+  * 0001-WIP-speculative-gc-fix.patch
+
+-------------------------------------------------------------------

New:
----
  0001-WIP-speculative-gc-fix.patch

BETA DEBUG BEGIN:
  New:  (QTBUG-128789, kde#494804)  
  * 0001-WIP-speculative-gc-fix.patch
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qt6-declarative.spec ++++++
--- /var/tmp/diff_new_pack.0skIS0/_old  2024-11-08 11:59:08.908883119 +0100
+++ /var/tmp/diff_new_pack.0skIS0/_new  2024-11-08 11:59:08.912883286 +0100
@@ -47,6 +47,8 @@
 Patch5:         0001-QQuickAccessibleAttached-Let-implicit-names-work-whe.patch
 # PATCH-FIX-UPSTREAM
 Patch6:         0001-QQuickItem-map-To-From-Item-Account-for-not-having-a.patch
+# PATCH-FIX-UPSTREAM 
(https://codereview.qt-project.org/c/qt/qtdeclarative/+/601299)
+Patch7:         0001-WIP-speculative-gc-fix.patch
 BuildRequires:  memory-constraints
 BuildRequires:  pkgconfig
 BuildRequires:  python3-base
@@ -174,8 +176,8 @@
 %package -n libQt6Qml6
 Summary:        Qt 6 Qml library
 License:        GPL-2.0-only OR GPL-3.0-or-later OR LGPL-3.0-only
-Requires:       (qml-autoreqprov if rpm-build)
 Requires:       qt6-declarative-imports
+Requires:       (qml-autoreqprov if rpm-build)
 
 %description -n libQt6Qml6
 The Qt 6 Qml library.
@@ -433,6 +435,7 @@
 This package provides private headers of libQt6QuickWidgets that do not have 
any
 ABI or API guarantees.
 
+
 ### Private only libraries ###
 
 %package -n libQt6LabsPlatform6
@@ -880,6 +883,7 @@
 Development files for the Qt 6 QuickVectorImage library.
 This library does not have any ABI or API guarantees.
 
+
 ### Static libraries ###
 
 %package -n qt6-packetprotocol-devel-static

++++++ 0001-WIP-speculative-gc-fix.patch ++++++
>From 8d58aab6a8bca6a7c4a1a01d087594714b766c56 Mon Sep 17 00:00:00 2001
From: Fabian Kosmale <fabian.kosm...@qt.io>
Date: Thu, 31 Oct 2024 17:14:12 +0100
Subject: [PATCH] WIP: speculative gc fix

Change-Id: I3c1151998771ff8eaeea4925da6bbe3861460c82
---
 src/qml/qml/qqmlcontext.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/qml/qml/qqmlcontext.cpp b/src/qml/qml/qqmlcontext.cpp
index cf6736deb978..45eb72d23ef1 100644
--- a/src/qml/qml/qqmlcontext.cpp
+++ b/src/qml/qml/qqmlcontext.cpp
@@ -11,6 +11,9 @@
 #include "qqmlinfo.h"
 #include "qqmlabstracturlinterceptor.h"
 
+
+#include "private/qv4qobjectwrapper_p.h"
+
 #include <qjsengine.h>
 #include <QtCore/qvarlengtharray.h>
 #include <private/qmetaobject_p.h>
@@ -260,6 +263,9 @@ void QQmlContext::setContextProperty(const QString &name, 
const QVariant &value)
 */
 void QQmlContext::setContextProperty(const QString &name, QObject *value)
 {
+    if (auto e = engine(); e && value) {
+        QV4::QObjectWrapper::ensureWrapper(e->handle(), value);
+    }
     setContextProperty(name, QVariant::fromValue(value));
 }
 
-- 
2.47.0

Reply via email to