pyside2.git
2 years agoShiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11
Christian Tismer [Tue, 21 Jun 2022 08:22:04 +0000 (10:22 +0200)]
Shiboken: Fix the oldest shiboken bug ever which shows up on Python 3.11

b7df2f1c0 "Fix signal initializer.", 18. May 2010 at 00:55

There was a `PySequence_Check` in the evaluation of some signature
function parameter processing, which should have been `PyTuple_Check`.

Since the new PyEnums are also sequences, the new optimization in
Python 3.11 changed the parameter handling in a correct way and
replaced the argument tuple by a direct single argument of an enum
type. And that is also a sequence ...

There are probably still dormant issues like this in the codebase
which gives reason to submit a task that checks all Python interface
functions for correctness.

Change-Id: I45996a0458c3e60795d2eb802eb98f7dd3678d92
Pick-to: 6.3
Task-number: PYSIDE-1735
Task-number: PYSIDE-1987
Fixes: PYSIDE-1988
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
(cherry picked from commit 2720e01f21f3771cb755ef183b8160f691bdb575)

Gbp-Pq: Name Shiboken-Fix-the-oldest-shiboken-bug-ever.patch

2 years agolibshiboken: Fix crashes with static strings in Python 3.11
Friedemann Kleint [Fri, 24 Jun 2022 07:22:01 +0000 (09:22 +0200)]
libshiboken: Fix crashes with static strings in Python 3.11

In Python 3.11, some strings come with a refcount above decimal
1000000000, apparently indicating that they are interned. Replace the
mechanism by PyUnicode_InternFromString().

Task-number: PYSIDE-1960
Pick-to: 6.3 6.2 5.15
Change-Id: I6436afee351f89da5814b5d6bc76970b1b508168
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit a09a1db8391243e6bb290ee66bb6e3afbb114c61)

Gbp-Pq: Name libshiboken-Fix-crashes-with-static-strings-in-Python-3.11.patch

2 years agoFix usage of Py_TYPE() for Python 3.11
Friedemann Kleint [Thu, 9 Jun 2022 11:45:07 +0000 (13:45 +0200)]
Fix usage of Py_TYPE() for Python 3.11

The macro was changed to a function, no longer allowing for assignment.

Pick-to: 6.3 6.2 5.15
Task-number: PYSIDE-1960
Change-Id: I4bc0e9a5c1f3dc70d59628e63b7b9d47ea449992
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit 73adefe22ffbfabe0ef213e9c2fe2c56efdd7488)

Gbp-Pq: Name Fix-usage-of-Py_TYPE-for-Python-3.11.patch

2 years agolibshiboken: Fix a crash in Shiboken::Object::isValid() for Python 3.11
Friedemann Kleint [Thu, 9 Jun 2022 14:50:41 +0000 (16:50 +0200)]
libshiboken: Fix a crash in Shiboken::Object::isValid() for Python 3.11

The function is passed type objects for class methods, which caused
it to crash.

The first clause did not catch this, and so it was cast to SbkObject
below.

Add a type check to prevent this.

Pick-to: 6.3 6.2 5.15
Task-number: PYSIDE-1960
Change-Id: Icfdd6fefb7156ac5961444bd5395109849a1d66e
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit 52df3b8f64d08f412d7f8b12d82fc0ae6f3c741d)

Gbp-Pq: Name libshiboken-Fix-a-crash-in-Shiboken-Object-isValid.patch

2 years agoFind the build directory matching the current interpreter
Dmitry Shachnev [Sun, 14 Nov 2021 18:08:50 +0000 (21:08 +0300)]
Find the build directory matching the current interpreter

This is needed to allow us to run tests with all supported Python versions.
Without this patch, the latest build directory will be always picked, no
matter what the current interpreter is.

Gbp-Pq: Name test-with-current-interpreter.patch

2 years agoBlacklist failing tests
Sophie Brun [Fri, 22 Nov 2019 12:24:54 +0000 (13:24 +0100)]
Blacklist failing tests

Forwarded:
https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1146?filter=allopenissues

Gbp-Pq: Name blacklist-failing-tests.patch

2 years agoFix spelling errors
Sophie Brun [Tue, 5 Nov 2019 09:39:14 +0000 (10:39 +0100)]
Fix spelling errors

Last-Update: 2018-07-12

Gbp-Pq: Name fix-spelling-errors.patch

2 years agoUpdate import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Kurt Kremitzki [Sun, 1 Oct 2023 20:43:44 +0000 (21:43 +0100)]
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls

Last-Updated: 2020-12-20

Gbp-Pq: Name update-sip-import.patch

2 years agopyside2 (5.15.10-4) unstable; urgency=medium
Dmitry Shachnev [Sun, 1 Oct 2023 20:43:44 +0000 (21:43 +0100)]
pyside2 (5.15.10-4) unstable; urgency=medium

  * Team upload.
  * Build with LLVM 15 for now (closes: #1051886).
  * Backport upstream patch to fix test failures with Python 3.11.5.
  * Add a debian/clean file (closes: #1047480).

[dgit import unpatched pyside2 5.15.10-4]

2 years agoImport pyside2_5.15.10-4.debian.tar.xz
Dmitry Shachnev [Sun, 1 Oct 2023 20:43:44 +0000 (21:43 +0100)]
Import pyside2_5.15.10-4.debian.tar.xz

[dgit import tarball pyside2 5.15.10-4 pyside2_5.15.10-4.debian.tar.xz]

2 years agoImport pyside2_5.15.10.orig.tar.xz
Dmitry Shachnev [Sun, 18 Jun 2023 16:12:26 +0000 (17:12 +0100)]
Import pyside2_5.15.10.orig.tar.xz

[dgit import orig pyside2_5.15.10.orig.tar.xz]