* [Buildroot] [PATCH 1/1] package/python-sip: fix build with python-3.15
@ 2026-10-04 11:37 Bernd Kuhls
2026-10-10 8:25 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2026-10-04 11:37 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Gwenhael Goavec-Merou
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
.../0003-Added-support-for-Python-v3.13.patch | 56 +++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 package/python-sip/0003-Added-support-for-Python-v3.13.patch
diff --git a/package/python-sip/0003-Added-support-for-Python-v3.13.patch b/package/python-sip/0003-Added-support-for-Python-v3.13.patch
new file mode 100644
index 0000000000..d05e5d8a84
--- /dev/null
+++ b/package/python-sip/0003-Added-support-for-Python-v3.13.patch
@@ -0,0 +1,56 @@
+From 7a345846465304d311c717c27940223700aef0ef Mon Sep 17 00:00:00 2001
+From: Phil Thompson <phil@riverbankcomputing.com>
+Date: Fri, 24 May 2024 14:08:26 +0100
+Subject: [PATCH] Added support for Python v3.13
+
+Eliminated all compiler warnings on all platforms when building the `sip`
+module.
+
+Removed calls to all deprecated parts of the Python API.
+
+Resolves #22
+
+Upstream: https://github.com/Python-SIP/sip/commit/51f3e60007f54fb5a96d649d16e36195022c00a8
+
+[Bernd: backported to 4.19.25]
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ siplib/qtlib.c | 19 +++++++++++++++++--
+ 1 file changed, 17 insertions(+), 2 deletions(-)
+
+diff --git a/siplib/qtlib.c b/siplib/qtlib.c
+index e166529f..258aae09 100644
+--- a/siplib/qtlib.c
++++ b/siplib/qtlib.c
+@@ -132,11 +132,26 @@ PyObject *sip_api_invoke_slot_ex(const sipSlot *slot, PyObject *sigargs,
+ Py_INCREF(sref);
+ }
+ else if (slot -> weakSlot == NULL)
++ {
+ sref = NULL;
+- else if ((sref = PyWeakref_GetObject(slot -> weakSlot)) == NULL)
+- return NULL;
++ }
+ else
++ {
++#if PY_VERSION_HEX >= 0x030d0000
++ if (PyWeakref_GetRef(slot->weakSlot, &sref) < 0)
++ return NULL;
++ if (sref == NULL)
++ {
++ sref = Py_None;
++ Py_INCREF(sref);
++ }
++#else
++ if ((sref = PyWeakref_GetObject(slot->weakSlot)) == NULL)
++ return NULL;
++
+ Py_INCREF(sref);
++#endif
++ }
+
+ if (sref == Py_None)
+ {
+--
+2.47.3
+
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/python-sip: fix build with python-3.15
2026-10-04 11:37 [Buildroot] [PATCH 1/1] package/python-sip: fix build with python-3.15 Bernd Kuhls
@ 2026-10-10 8:25 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-10 8:25 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, James Hilliard, Gwenhael Goavec-Merou
On Sun, Oct 04, 2026 at 01:37:46PM +0200, Bernd Kuhls wrote:
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-10 8:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04 11:37 [Buildroot] [PATCH 1/1] package/python-sip: fix build with python-3.15 Bernd Kuhls
2026-10-10 8:25 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox