python3-sip-PyQt5: update to 12.13.0.
This commit is contained in:
parent
41b4f9f575
commit
caaf2039d1
3 changed files with 4 additions and 62 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
|
@ -1,24 +1,20 @@
|
||||||
# Template file for 'python3-sip-PyQt5'
|
# Template file for 'python3-sip-PyQt5'
|
||||||
pkgname=python3-sip-PyQt5
|
pkgname=python3-sip-PyQt5
|
||||||
version=12.12.1
|
version=12.13.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-devel python3-setuptools sip"
|
hostmakedepends="python3-devel python3-setuptools sip"
|
||||||
makedepends="python3-devel"
|
makedepends="python3-devel"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
short_desc="Python 3 PyQt5 SIP bindings with C and C++"
|
short_desc="Python 3 PyQt5 SIP bindings with C and C++"
|
||||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
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"
|
homepage="https://riverbankcomputing.com/software/sip/intro"
|
||||||
distfiles="${PYPI_SITE}/P/PyQt5_sip/PyQt5_sip-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/PyQt5_sip/PyQt5_sip-${version}.tar.gz"
|
||||||
checksum=8fdc6e0148abd12d977a1d3828e7b79aae958e83c6cb5adae614916d888a6b10
|
checksum=7f321daf84b9c9dbca61b80e1ef37bdaffc0e93312edae2cd7da25b953971d91
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
# for do_check
|
# for do_check
|
||||||
mkdir -p PyQt5
|
mkdir -p PyQt5
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
|
||||||
vlicense /usr/share/licenses/sip/LICENSE
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue