Package: src:pygattlib
Version: 0~20210616-1.1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that pygattlib fails to build from source [1].

To fix it, I backported upstream commit 73a73b71: Fix build for Python
3.13 [2].

I've applied the upstream fix in the sandbox [3] to verify that it
builds successfully, please consider applying the patch to support the
upcoming 3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4284740/
[2]: 
https://github.com/oscaracena/pygattlib/commit/73a73b71cfc139e1e0a08816fb976ff330c77ea5
[3]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
From 73a73b71cfc139e1e0a08816fb976ff330c77ea5 Mon Sep 17 00:00:00 2001
From: Gwyn Ciesla <[email protected]>
Date: Tue, 21 Nov 2023 16:33:21 -0600
Subject: [PATCH] Fix build for Python 3.13.

---
 src/gattlib.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/gattlib.cpp b/src/gattlib.cpp
index 6a95ecb..bf9949e 100644
--- a/src/gattlib.cpp
+++ b/src/gattlib.cpp
@@ -96,10 +96,6 @@ IOService::IOService(bool run) {
 
 void
 IOService::start() {
-    if (!PyEval_ThreadsInitialized()) {
-        PyEval_InitThreads();
-    }
-
     boost::thread iothread(std::bind(&IOService::operator(), this));
     start_event.wait(10);
 }
-- 

Reply via email to