public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qt6-qtdeclarative] epel9: 6.10.2
Date: Thu, 08 Oct 2026 17:40:46 GMT	[thread overview]
Message-ID: <179148124634.1.12186194987419393440.rpms-qt6-qtdeclarative-d0367ef746cb@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/qt6-qtdeclarative
Branch : epel9
Commit : d0367ef746cbca7e691a5d935d249f59941edf27
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2026-02-09T14:56:06+01:00
Stats  : +7/-380 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/qt6-qtdeclarative/c/d0367ef746cbca7e691a5d935d249f59941edf27?branch=epel9

Log:
6.10.2

---
diff --git a/.gitignore b/.gitignore
index 98daccb..2105d4f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,4 @@
 /qtdeclarative-everywhere-src-6.10.0-rc.tar.xz
 /qtdeclarative-everywhere-src-6.10.0.tar.xz
 /qtdeclarative-everywhere-src-6.10.1.tar.xz
+/qtdeclarative-everywhere-src-6.10.2.tar.xz

diff --git a/qt6-qtdeclarative.spec b/qt6-qtdeclarative.spec
index 193e157..c7a7721 100644
--- a/qt6-qtdeclarative.spec
+++ b/qt6-qtdeclarative.spec
@@ -15,8 +15,8 @@
 
 Summary: Qt6 - QtDeclarative component
 Name:    qt6-%{qt_module}
-Version: 6.10.1
-Release: 4%{?dist}
+Version: 6.10.2
+Release: 1%{?dist}
 
 License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
 Url:     http://www.qt.io
@@ -36,8 +36,6 @@ Source5: qv4global_p-multilib.h
 ## upstream patches
 # https://codereview.qt-project.org/c/qt/qtdeclarative/+/678924
 Patch0:  qtdeclarative-quickshapes-make-module-public.patch
-Patch1:  qtdeclarative-qtqml-invalidate-fallback-lookups-after-each-call-from-aot-code.patch
-Patch2:  qtdeclarative-qtqml-do-not-clear-objects-propertycaches-on-last-gc-run.patch
 
 ## upstreamable patches
 
@@ -738,6 +736,9 @@ make check -k -C tests ||:
 %endif
 
 %changelog
+* Mon Feb 09 2026 Jan Grulich <jgrulich@redhat.com> - 6.10.2-1
+- 6.10.2
+
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6.10.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
 

diff --git a/qtdeclarative-qtqml-do-not-clear-objects-propertycaches-on-last-gc-run.patch b/qtdeclarative-qtqml-do-not-clear-objects-propertycaches-on-last-gc-run.patch
deleted file mode 100644
index 9ce08be..0000000
--- a/qtdeclarative-qtqml-do-not-clear-objects-propertycaches-on-last-gc-run.patch
+++ /dev/null
@@ -1,133 +0,0 @@
-From dc2358e98b8ddab532866a403ffc09d1162ad0f9 Mon Sep 17 00:00:00 2001
-From: Ulf Hermann <ulf.hermann@qt.io>
-Date: Tue, 13 Jan 2026 11:53:27 +0100
-Subject: [PATCH] QtQml: Do not clear objects' propertyCaches on last GC run
-
-The property caches are not specific to the engine. The same object may
-be exposed to other engines and still require its property cache. When
-the clearing of the property caches on engine destruction was
-introduced, the property caches were still engine-specific and we had no
-choice but to clear them. Otherwise any further access would lead to a
-dereference of a dangling pointer.
-
-Furthermore, when clearing the JS wrapper for a QObject, check if it's
-actually the wrapper being deleted. We don't want to clear some other
-engine's wrapper.
-
-Amends commit 749a7212e903d8e8c6f256edb1836b9449cc7fe1.
-Amends commit c6b2dd879d02b21b18f80faab541f8f04286685a.
-
-Pick-to: 6.11 6.10
-Fixes: QTBUG-142514
-Change-Id: I40bb1aeca65225d56cb1d2ff498f5f1722216a70
-Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
----
-
-diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
-index a8dfd50..e61867b 100644
---- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
-+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
-@@ -1583,10 +1583,9 @@
-                     o->deleteLater();
-             } 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<QObjectWrapper>() == this)
-+                    ddata->jsWrapper.clear();
-             }
-         }
-     }
-diff --git a/tests/auto/qml/qjsengine/tst_qjsengine.cpp b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
-index b56b241..11bc62e 100644
---- a/tests/auto/qml/qjsengine/tst_qjsengine.cpp
-+++ b/tests/auto/qml/qjsengine/tst_qjsengine.cpp
-@@ -1119,7 +1119,7 @@
-         engine.newQObject(obj.data());
-         QVERIFY(QQmlData::get(obj.data())->propertyCache);
-     }
--    QVERIFY(!QQmlData::get(obj.data())->propertyCache);
-+    QVERIFY(QQmlData::get(obj.data())->propertyCache);
- }
- 
- void tst_QJSEngine::newQMetaObject() {
-diff --git a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-index 88cc102..8949d00 100644
---- a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-+++ b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-@@ -326,6 +326,7 @@
-     stringLength.qml
-     stringToByteArray.qml
-     structuredValueType.qml
-+    multiEnginePropertyCache.qml
-     takenumber.qml
-     testlogger.js
-     text.qml
-diff --git a/tests/auto/qml/qmlcppcodegen/data/multiEnginePropertyCache.qml b/tests/auto/qml/qmlcppcodegen/data/multiEnginePropertyCache.qml
-new file mode 100644
-index 0000000..222b2f8
---- /dev/null
-+++ b/tests/auto/qml/qmlcppcodegen/data/multiEnginePropertyCache.qml
-@@ -0,0 +1,20 @@
-+pragma Strict
-+import QtQml
-+
-+QtObject {
-+    id: root
-+
-+    property int foo: 0
-+    onFooChanged: root.close1()
-+
-+    property int bar: 0
-+    onBarChanged: close2()
-+
-+    function close1() {
-+        console.log("close1")
-+    }
-+
-+    function close2() {
-+        console.log("close2")
-+    }
-+}
-diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-index 3ce5627..8d98c02 100644
---- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-@@ -280,6 +280,7 @@
-     void stringLength();
-     void stringToByteArray();
-     void structuredValueType();
-+    void multiEnginePropertyCache();
-     void takeNumbers();
-     void takeNumbers_data();
-     void testIsnan();
-@@ -5795,6 +5796,26 @@
-     QCOMPARE(o->property("w2").value<WeatherModelUrl>(), w2);
- }
- 
-+void tst_QmlCppCodegen::multiEnginePropertyCache()
-+{
-+    QQmlEngine engine;
-+    QQmlComponent c(&engine, QUrl(u"qrc:/qt/qml/TestTypes/multiEnginePropertyCache.qml"_s));
-+    QVERIFY2(c.isReady(), qPrintable(c.errorString()));
-+    std::unique_ptr<QObject> o(c.create());
-+    QVERIFY(o);
-+
-+    {
-+        QJSEngine other;
-+        other.newQObject(o.get());
-+    }
-+
-+    QTest::ignoreMessage(QtDebugMsg, "close1");
-+    o->setProperty("foo", 1);
-+
-+    QTest::ignoreMessage(QtDebugMsg, "close2");
-+    o->setProperty("bar", 2);
-+}
-+
- void tst_QmlCppCodegen::takeNumbers()
- {
-     QFETCH(QByteArray, method);

diff --git a/qtdeclarative-qtqml-invalidate-fallback-lookups-after-each-call-from-aot-code.patch b/qtdeclarative-qtqml-invalidate-fallback-lookups-after-each-call-from-aot-code.patch
deleted file mode 100644
index 5d93d81..0000000
--- a/qtdeclarative-qtqml-invalidate-fallback-lookups-after-each-call-from-aot-code.patch
+++ /dev/null
@@ -1,242 +0,0 @@
-From 38f99f92126dc9eaedf7129e6022037a7e4b967f Mon Sep 17 00:00:00 2001
-From: Ulf Hermann <ulf.hermann@qt.io>
-Date: Tue, 02 Dec 2025 17:42:30 +0100
-Subject: [PATCH] QtQml: Invalidate fallback lookups after each call from AOT code
-
-Fallback property lookups are created for completely dynamic
-metaobjects. Anything about them may change between any two calls.
-
-Pick-to: 6.8 6.5
-Fixes: QTBUG-142331
-Change-Id: Ib732c37a6f27ab8105bea0eeae000af7eb9c36d7
-Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
-(cherry picked from commit 9af6d2d6d0046b3c8369e15eb4791957cdc7ab7b)
----
-
-diff --git a/src/qml/jsruntime/qv4lookup_p.h b/src/qml/jsruntime/qv4lookup_p.h
-index 083c3ec..ef36bf6 100644
---- a/src/qml/jsruntime/qv4lookup_p.h
-+++ b/src/qml/jsruntime/qv4lookup_p.h
-@@ -159,6 +159,10 @@
-             const QQmlPropertyData *propertyData;
-         } qobjectMethodLookup;
-         struct {
-+            // NB: None of this is actually cache-able. The metaobject may change at any time.
-+            //     We invalidate this data every time the lookup is invoked and thereby force a
-+            //     re-initialization next time.
-+
-             quintptr isConstant; // This is a bool, encoded as 0 or 1. Both values are ignored by gc
-             quintptr metaObject; // a (const QMetaObject* & 1) or nullptr
-             int coreIndex;
-diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
-index 4e3b4fc..3f0d9e3 100644
---- a/src/qml/qml/qqml.cpp
-+++ b/src/qml/qml/qqml.cpp
-@@ -1386,16 +1386,16 @@
- 
- static FallbackPropertyQmlData findFallbackPropertyQmlData(QV4::Lookup *lookup, QObject *object)
- {
--    QQmlData *qmlData = QQmlData::get(object);
--    if (qmlData && qmlData->isQueuedForDeletion)
--        return {qmlData, nullptr, PropertyResult::Deleted};
-+    // We've just initialized the lookup. So everything must be fine here.
- 
-+    QQmlData *qmlData = QQmlData::get(object);
-+
-+    Q_ASSERT(!qmlData || !qmlData->isQueuedForDeletion);
-     Q_ASSERT(!QQmlData::wasDeleted(object));
- 
-     const QMetaObject *metaObject
-             = reinterpret_cast<const QMetaObject *>(lookup->qobjectFallbackLookup.metaObject - 1);
--    if (!metaObject || metaObject != object->metaObject())
--        return {qmlData, nullptr, PropertyResult::NeedsInit};
-+    Q_ASSERT(metaObject == object->metaObject());
- 
-     return {qmlData, metaObject, PropertyResult::OK};
- }
-@@ -2585,6 +2585,7 @@
-         break;
-     case QV4::Lookup::Call::ContextGetterScopeObjectPropertyFallback:
-         result = loadFallbackProperty(lookup, qmlScopeObject, target, this);
-+        lookup->call = QV4::Lookup::Call::ContextGetterGeneric;
-         break;
-     default:
-         return false;
-@@ -2616,6 +2617,7 @@
-         break;
-     case QV4::Lookup::Call::ContextGetterScopeObjectPropertyFallback:
-         result = writeBackFallbackProperty(lookup, qmlScopeObject, source);
-+        lookup->call = QV4::Lookup::Call::ContextGetterGeneric;
-         break;
-     default:
-         return false;
-@@ -2816,6 +2818,7 @@
-         result = lookup->asVariant
-                 ? loadFallbackAsVariant(lookup, object, target, this)
-                 : loadFallbackProperty(lookup, object, target, this);
-+        lookup->call = QV4::Lookup::Call::GetterGeneric;
-         break;
-     default:
-         return false;
-@@ -2850,6 +2853,7 @@
-         result = lookup->asVariant
-                 ? writeBackFallbackAsVariant(lookup, object, source)
-                 : writeBackFallbackProperty(lookup, object, source);
-+        lookup->call = QV4::Lookup::Call::GetterGeneric;
-         break;
-     default:
-         return false;
-@@ -3010,6 +3014,7 @@
-         result = lookup->asVariant
-                 ? storeFallbackAsVariant(engine->handle(), lookup, object, value)
-                 : storeFallbackProperty(lookup, object, value);
-+        lookup->call = QV4::Lookup::Call::SetterGeneric;
-         break;
-     default:
-         return false;
-diff --git a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-index 79e908c..67cdefa 100644
---- a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-+++ b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt
-@@ -26,6 +26,7 @@
-     multiforeign.h
-     objectwithmethod.h
-     person.cpp person.h
-+    propertymap.h
-     qmlusing.h
-     recursiveObject.h
-     refuseWrite.h
-@@ -282,6 +283,7 @@
-     popContextAfterRet.qml
-     prefixedMetaType.qml
-     pressAndHoldButton.qml
-+    propertyMap.qml
-     qmlUsing.qml
-     qtbug113150.qml
-     qtfont.qml
-diff --git a/tests/auto/qml/qmlcppcodegen/data/propertyMap.qml b/tests/auto/qml/qmlcppcodegen/data/propertyMap.qml
-new file mode 100644
-index 0000000..c00f397
---- /dev/null
-+++ b/tests/auto/qml/qmlcppcodegen/data/propertyMap.qml
-@@ -0,0 +1,6 @@
-+pragma Strict
-+import TestTypes
-+
-+WithPropertyMap {
-+    objectName: map.foo
-+}
-diff --git a/tests/auto/qml/qmlcppcodegen/data/propertymap.h b/tests/auto/qml/qmlcppcodegen/data/propertymap.h
-new file mode 100644
-index 0000000..64d84c5
---- /dev/null
-+++ b/tests/auto/qml/qmlcppcodegen/data/propertymap.h
-@@ -0,0 +1,40 @@
-+// Copyright (C) 2025 The Qt Company Ltd.
-+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-+
-+#ifndef PROPERTYMAP_H
-+#define PROPERTYMAP_H
-+
-+#include <QtCore/qobject.h>
-+#include <QtQml/qqml.h>
-+#include <QtQml/qqmlpropertymap.h>
-+
-+class WithPropertyMap : public QObject
-+{
-+    Q_OBJECT
-+    QML_ELEMENT
-+    Q_PROPERTY(QQmlPropertyMap *map READ map NOTIFY mapChanged)
-+public:
-+    WithPropertyMap(QObject *parent = nullptr)
-+        : QObject(parent)
-+        , m_map(new QQmlPropertyMap(this))
-+    {
-+    }
-+
-+    QQmlPropertyMap *map() const { return m_map; }
-+
-+    void setProperties(const QVariantHash &properties)
-+    {
-+        delete m_map;
-+        m_map = new QQmlPropertyMap(this);
-+        m_map->insert(properties);
-+        emit mapChanged();
-+    }
-+
-+signals:
-+    void mapChanged();
-+
-+private:
-+    QQmlPropertyMap *m_map = nullptr;
-+};
-+
-+#endif // PROPERTYMAP_H
-diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-index 70c50b4..a90e2a6 100644
---- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-+++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
-@@ -10,6 +10,7 @@
- #include <data/getOptionalLookup.h>
- #include <data/listprovider.h>
- #include <data/objectwithmethod.h>
-+#include <data/propertymap.h>
- #include <data/qmlusing.h>
- #include <data/refuseWrite.h>
- #include <data/resettable.h>
-@@ -237,6 +238,7 @@
-     void parentProperty();
-     void popContextAfterRet();
-     void prefixedType();
-+    void propertyMap();
-     void propertyOfParent();
-     void qmlUsing();
-     void qtfont();
-@@ -4908,6 +4910,47 @@
-     QCOMPARE(o->property("countH").toInt(), 11);
- }
- 
-+void tst_QmlCppCodegen::propertyMap()
-+{
-+    QQmlEngine engine;
-+
-+    const QUrl document(u"qrc:/qt/qml/TestTypes/propertyMap.qml"_s);
-+    QQmlComponent c(&engine, document);
-+    QVERIFY2(c.isReady(), qPrintable(c.errorString()));
-+
-+    QTest::ignoreMessage(
-+            QtWarningMsg, qPrintable(
-+                document.toString()
-+                + u":5:5: QML WithPropertyMap: Unable to assign [undefined] to \"objectName\""));
-+
-+    QScopedPointer<QObject> o(c.create());
-+    QVERIFY(o);
-+
-+    WithPropertyMap *w = qobject_cast<WithPropertyMap *>(o.data());
-+    QVERIFY(w);
-+
-+    QVERIFY(w->objectName().isEmpty());
-+
-+    w->setProperties({
-+        { u"foo"_s, u"aaa"_s },
-+        { u"bar"_s, u"bbb"_s },
-+    });
-+
-+    QCOMPARE(w->objectName(), u"aaa"_s);
-+
-+    w->setProperties({
-+        { u"foo"_s, u"ccc"_s },
-+    });
-+
-+    QCOMPARE(w->objectName(), u"ccc"_s);
-+
-+    w->setProperties({
-+        { u"foo"_s, 24.25 },
-+    });
-+
-+    QCOMPARE(w->objectName(), u"24.25"_s);
-+}
-+
- void tst_QmlCppCodegen::propertyOfParent()
- {
-     QQmlEngine engine;

diff --git a/sources b/sources
index d9ece0d..e5aad64 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (qtdeclarative-everywhere-src-6.10.1.tar.xz) = e433ae1e282175d251c3257eed775bc5835f564bbd7f34244c9765af59eee2b97f4b2852d59987942315cda14a763c65e509553439e2a4c2ac2652ea9e7a56b6
+SHA512 (qtdeclarative-everywhere-src-6.10.2.tar.xz) = 93b76ea0c9a804042335e6c476fc1b9a987ea29b3c5c18fbda2266cba14c7c9c7f0c91ac5de23eeb06748dfa3009d91ea72e7b7df7c0940273cdcf3ca7638d98

                 reply	other threads:[~2026-10-08 17:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179148124634.1.12186194987419393440.rpms-qt6-qtdeclarative-d0367ef746cb@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox