Accepting request 928812 from KDE:Qt:6.2
pyside 6.2.1 OBS-URL: https://build.opensuse.org/request/show/928812 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt6/python3-pyside6?expand=0&rev=4
This commit is contained in:
parent
940f852f45
commit
154db152b2
@ -1,43 +0,0 @@
|
|||||||
From 300e33b8fb175f79195b20fb170db4232afb5740 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
||||||
Date: Fri, 1 Oct 2021 14:53:32 +0200
|
|
||||||
Subject: [PATCH] Fix hang in test bug_430.py in Qt 6.3
|
|
||||||
|
|
||||||
Terminating the application via closing the last window
|
|
||||||
only works when the window was actually shown.
|
|
||||||
Add a call to show() and reformat code.
|
|
||||||
|
|
||||||
Task-number: QTBUG-97033
|
|
||||||
Change-Id: I1e0a82d1baf1676de5a38c1a8fd2408e104b464a
|
|
||||||
Reviewed-by: Christian Tismer <tismer@stackless.com>
|
|
||||||
(cherry picked from commit 01b31e518ce4fa82c58db6ae89f481be152eb4dc)
|
|
||||||
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
|
|
||||||
---
|
|
||||||
sources/pyside6/tests/QtWidgets/bug_430.py | 14 ++++++++------
|
|
||||||
1 file changed, 8 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/sources/pyside6/tests/QtWidgets/bug_430.py b/sources/pyside6/tests/QtWidgets/bug_430.py
|
|
||||||
index b6cf492..6ce463b 100644
|
|
||||||
--- a/sources/pyside6/tests/QtWidgets/bug_430.py
|
|
||||||
+++ b/sources/pyside6/tests/QtWidgets/bug_430.py
|
|
||||||
@@ -44,9 +44,11 @@ class ListModel(QAbstractListModel):
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
-app = QApplication([])
|
|
||||||
-model = ListModel()
|
|
||||||
-v = QListView()
|
|
||||||
-v.setModel(model)
|
|
||||||
-QTimer.singleShot(0, v.close)
|
|
||||||
-app.exec()
|
|
||||||
+if __name__ == '__main__':
|
|
||||||
+ app = QApplication([])
|
|
||||||
+ model = ListModel()
|
|
||||||
+ v = QListView()
|
|
||||||
+ v.setModel(model)
|
|
||||||
+ v.show()
|
|
||||||
+ QTimer.singleShot(0, v.close)
|
|
||||||
+ app.exec()
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
From a4a5fa4568473dd63bf04c9bfd115d3cbe3c504e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Friedemann Kleint <Friedemann.Kleint@qt.io>
|
|
||||||
Date: Tue, 12 Oct 2021 09:33:53 +0200
|
|
||||||
Subject: [PATCH] shiboken6: Adapt to LLVM 12.01
|
|
||||||
|
|
||||||
The identifier for anonymous enums has been changed, causing
|
|
||||||
shiboken to no longer recognize them.
|
|
||||||
|
|
||||||
Pick-to: 6.2 5.15
|
|
||||||
Task-number: PYSIDE-1686
|
|
||||||
Change-Id: I4d463132b8bd3fffa0b57f03be6c58ecbae94a49
|
|
||||||
---
|
|
||||||
sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp | 4 +++-
|
|
||||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
|
|
||||||
index 0b6c87f..f34bd8c 100644
|
|
||||||
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
|
|
||||||
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
|
|
||||||
@@ -952,8 +952,10 @@ static QString enumType(const CXCursor &cursor)
|
|
||||||
// PYSIDE-1228: For "typedef enum { v1, v2 } Foo;", type will return
|
|
||||||
// "Foo" as expected. Care must be taken to exclude real anonymous enums.
|
|
||||||
name = getTypeName(clang_getCursorType(cursor));
|
|
||||||
- if (name.contains(QLatin1String("(anonymous")))
|
|
||||||
+ if (name.contains(u"(unnamed") // Clang 12.0.1
|
|
||||||
+ || name.contains(u"(anonymous")) { // earlier
|
|
||||||
name.clear();
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fed210b662129955332d2609a900b5b8643130134e4682371b26a9ba60740d01
|
|
||||||
size 6782676
|
|
3
pyside-setup-opensource-src-6.2.1.tar.xz
Normal file
3
pyside-setup-opensource-src-6.2.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e0df6f42ed92e039d44ae9bf7d23cc4ee2fc4722c87adddbeafc6376074c4cd4
|
||||||
|
size 6868020
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 30 09:41:32 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
- Update to 6.2.1
|
||||||
|
https://code.qt.io/cgit/pyside/pyside-setup.git/tree/dist/changes-6.2.1
|
||||||
|
- Drop upstream changes:
|
||||||
|
* 0001-Fix-hang-in-test-bug_430.py-in-Qt-6.3.patch
|
||||||
|
* 0001-shiboken6-Adapt-to-LLVM-12.01.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 12 09:51:22 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
Tue Oct 12 09:51:22 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ ExclusiveArch: do_not_build
|
|||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
Name: python3-%{pyside_flavor}
|
Name: python3-%{pyside_flavor}
|
||||||
Version: 6.2.0
|
Version: 6.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for Qt 6
|
Summary: Python bindings for Qt 6
|
||||||
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) AND GPL-2.0-only AND GPL-3.0-only WITH Qt-GPL-exception-1.0
|
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) AND GPL-2.0-only AND GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||||||
@ -40,10 +40,6 @@ Source: https://download.qt.io/official_releases/QtForPython/pyside6/PyS
|
|||||||
Patch0: 0001-Don-t-install-CMake-files-into-versioned-directories.patch
|
Patch0: 0001-Don-t-install-CMake-files-into-versioned-directories.patch
|
||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch1: 0001-Always-link-to-python-libraries.patch
|
Patch1: 0001-Always-link-to-python-libraries.patch
|
||||||
# PATCH-FIX-UPSTREAM
|
|
||||||
Patch2: 0001-Fix-hang-in-test-bug_430.py-in-Qt-6.3.patch
|
|
||||||
# PATCH-FIX-UPSTREAM
|
|
||||||
Patch3: 0001-shiboken6-Adapt-to-LLVM-12.01.patch
|
|
||||||
# SECTION common_dependencies
|
# SECTION common_dependencies
|
||||||
BuildRequires: clang-devel
|
BuildRequires: clang-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
Reference in New Issue
Block a user