python3-sip-PyQt5: update to 12.13.0.

This commit is contained in:
Đoàn Trần Công Danh 2023-12-11 22:25:46 +07:00 committed by Đoàn Trần Công Danh
parent 41b4f9f575
commit caaf2039d1
3 changed files with 4 additions and 62 deletions

View file

@ -1,32 +0,0 @@
https://src.fedoraproject.org/rpms/python-pyqt5-sip/raw/0a67d370b56645efc3f756d89e5a46f7a5927633
# HG changeset patch
# User Phil Thompson <phil@riverbankcomputing.com>
# Date 1686925181 -3600
# Node ID 312476401030130daed2eecfd1c93413f49e4458
# Parent 88452293f4e4cdc9d22cb5dfca02ba83216f662b
sipMalloc() and sipFree() are now implemented using PyMem_RawMalloc() and
PyMem_RawFree() so that they should be safe to call from functions registered
with Py_AtExit().
diff -r 88452293f4e4 -r 312476401030 sipbuild/module/source/12/siplib.c
--- a/siplib.c Thu Jun 08 14:30:02 2023 +0100
+++ b/siplib.c Fri Jun 16 15:19:41 2023 +0100
@@ -2147,7 +2147,7 @@
{
void *mem;
- if ((mem = PyMem_Malloc(nbytes)) == NULL)
+ if ((mem = PyMem_RawMalloc(nbytes)) == NULL)
PyErr_NoMemory();
return mem;
@@ -2159,7 +2159,7 @@
*/
void sip_api_free(void *mem)
{
- PyMem_Free(mem);
+ PyMem_RawFree(mem);
}

View file

@ -1,22 +0,0 @@
https://src.fedoraproject.org/rpms/python-pyqt5-sip/raw/5db48dad9dc59835593ff2bfaf06dca2b8a291b6/f/fix-py3.12-subclass-crash.patch
# HG changeset patch
# User Phil Thompson <phil@riverbankcomputing.com>
# Date 1686926134 -3600
# Node ID d36867e54192b02ebe5743b48774abf75bd9bb57
# Parent 312476401030130daed2eecfd1c93413f49e4458
For Python v3.12 implement sipPyTypeDict() using PyType_GetDict().
diff -r 312476401030 -r d36867e54192 sipbuild/siplib.c
--- a/siplib.c Fri Jun 16 15:19:41 2023 +0100
+++ b/siplib.c Fri Jun 16 15:35:34 2023 +0100
@@ -12597,7 +12597,11 @@
*/
static PyObject *sip_api_py_type_dict(const PyTypeObject *py_type)
{
+#if PY_VERSION_HEX >= 0x030c0000
+ return PyType_GetDict(py_type);
+#else
return py_type->tp_dict;
+#endif
}

View file

@ -1,24 +1,20 @@
# Template file for 'python3-sip-PyQt5'
pkgname=python3-sip-PyQt5
version=12.12.1
revision=2
version=12.13.0
revision=1
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools sip"
makedepends="python3-devel"
depends="python3"
short_desc="Python 3 PyQt5 SIP bindings with C and C++"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-only, GPL-3.0-only, custom:SIP"
license="GPL-2.0-only, GPL-3.0-only"
homepage="https://riverbankcomputing.com/software/sip/intro"
distfiles="${PYPI_SITE}/P/PyQt5_sip/PyQt5_sip-${version}.tar.gz"
checksum=8fdc6e0148abd12d977a1d3828e7b79aae958e83c6cb5adae614916d888a6b10
checksum=7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91
lib32disabled=yes
post_extract() {
# for do_check
mkdir -p PyQt5
}
post_install() {
vlicense /usr/share/licenses/sip/LICENSE
}