diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-14 11:20:13 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-12-14 14:29:04 +0100 |
commit | c34f0196ccbd6a0faf6c4a579b0fd43884997fb8 (patch) | |
tree | b3e6c3c2c02566cc2625cfd9adf0565c6143df85 /dev-python | |
parent | dev-python/shiboken2: patch and enable python3.10 (diff) | |
download | gentoo-c34f0196ccbd6a0faf6c4a579b0fd43884997fb8.tar.gz gentoo-c34f0196ccbd6a0faf6c4a579b0fd43884997fb8.tar.bz2 gentoo-c34f0196ccbd6a0faf6c4a579b0fd43884997fb8.zip |
dev-python/pyside2: patch and enable python3.10
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyside2/files/pyside2-5.15.2-python310.patch | 12 | ||||
-rw-r--r-- | dev-python/pyside2/pyside2-5.15.2-r1.ebuild | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/dev-python/pyside2/files/pyside2-5.15.2-python310.patch b/dev-python/pyside2/files/pyside2-5.15.2-python310.patch new file mode 100644 index 000000000000..cb2af4537cac --- /dev/null +++ b/dev-python/pyside2/files/pyside2-5.15.2-python310.patch @@ -0,0 +1,12 @@ +diff -upr libpyside/feature_select.cpp libpyside/feature_select.cpp +--- a/libpyside/feature_select.cpp 2020-11-11 14:51:30.000000000 +0200 ++++ b/libpyside/feature_select.cpp 2021-12-01 15:39:40.356426568 +0200 +@@ -405,6 +405,8 @@ static inline PyObject *SelectFeatureSet + if (!SelectFeatureSetSubtype(sub_type, select_id)) + break; + } ++ // PYSIDE-1436: Clear all caches for the type and subtypes. ++ PyType_Modified(type); + } + return type->tp_dict; + } diff --git a/dev-python/pyside2/pyside2-5.15.2-r1.ebuild b/dev-python/pyside2/pyside2-5.15.2-r1.ebuild index c314d5378af9..bf450af6a8b5 100644 --- a/dev-python/pyside2/pyside2-5.15.2-r1.ebuild +++ b/dev-python/pyside2/pyside2-5.15.2-r1.ebuild @@ -5,7 +5,7 @@ EAPI=7 # TODO: Add PyPy once officially supported. See also: # https://bugreports.qt.io/browse/PYSIDE-535 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit cmake python-r1 virtualx @@ -115,6 +115,8 @@ DEPEND="${RDEPEND} test? ( x11-misc/xvfb-run ) " +PATCHES=( "${FILESDIR}/${P}-python310.patch" ) + src_configure() { # See COLLECT_MODULE_IF_FOUND macros in CMakeLists.txt local mycmakeargs=( |