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
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
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
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
pyside2 (5.15.8-1) unstable; urgency=medium
* Team upload.
* New upstream release.
* Drop patches, included in the new release:
- fix-reuse-build.patch
- qApp-fix-flag-handling.patch
- py3.10-prep-reset-the-type-cache-after-feature-switching.patch
- py3.10-prep-Fix-parser.py-for-changed-typing-module.patch
- py3.10-prep-Finally-support-Python-3.10.patch
- py3.10-prep-Fix-a-very-old-refcounting-error-in-time_test.patch
- shiboken6-Adapt-to-LLVM-12.01.patch
* Refresh debian/patches/blacklist-failing-tests.patch.
* Backport 7 upstream patches to support Python 3.11 (closes: #
1027950).
* Remove dh-exec (debhelper now supports substitutions natively).
* Revert a change from 5.15.8 which broke build without limited API.
* Add a patch to fix AttributeError in signature_bootstrap.py.
* Fix redundant-globbing-patterns Lintian warning.
* Bump Standards-Version to 4.6.2, no changes needed.
[dgit import unpatched pyside2 5.15.8-1]