public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-dbus-fast] f44: Fix compatibility with Python 3.15
Date: Mon, 09 Nov 2026 21:22:31 GMT [thread overview]
Message-ID: <179425935119.1.12946943226364094770.rpms-python-dbus-fast-7a2b3e5aa74f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-dbus-fast
Branch : f44
Commit : 7a2b3e5aa74f37b7946626972676eb378d46a29f
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-05-19T10:39:49+02:00
Stats : +32/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-dbus-fast/c/7a2b3e5aa74f37b7946626972676eb378d46a29f?branch=f44
Log:
Fix compatibility with Python 3.15
---
diff --git a/633.patch b/633.patch
new file mode 100644
index 0000000..f472964
--- /dev/null
+++ b/633.patch
@@ -0,0 +1,29 @@
+From 9330c6c96281f9f04d4bbd8a06d8734d9b097496 Mon Sep 17 00:00:00 2001
+From: Bluetooth Devices Bot <bluetooth@koston.org>
+Date: Thu, 14 May 2026 22:23:14 +0000
+Subject: [PATCH] fix: avoid segfault on Python 3.15 by using bytearray()
+ constructor
+
+Initializing the unmarshaller buffer via bytearray.__new__(bytearray)
+crashes the interpreter on Python 3.15 (python/cpython#139871).
+The constructor form has identical observable behavior and is safe
+across all supported Python versions.
+
+Closes #628
+---
+ src/dbus_fast/_private/unmarshaller.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/dbus_fast/_private/unmarshaller.py b/src/dbus_fast/_private/unmarshaller.py
+index 01d14f97..b2aff161 100644
+--- a/src/dbus_fast/_private/unmarshaller.py
++++ b/src/dbus_fast/_private/unmarshaller.py
+@@ -301,7 +301,7 @@ def __init__(
+ negotiate_unix_fd: bool = True,
+ ) -> None:
+ self._unix_fds: list[int] = []
+- self._buf: bytearray = bytearray.__new__(bytearray) # Actual buffer
++ self._buf: bytearray = bytearray() # Actual buffer
+ self._buf_ustr = self._buf # Used to avoid type checks
+ self._buf_len = 0
+ self._stream = stream
diff --git a/python-dbus-fast.spec b/python-dbus-fast.spec
index 4fe0925..e04f7b4 100644
--- a/python-dbus-fast.spec
+++ b/python-dbus-fast.spec
@@ -5,6 +5,8 @@ Summary: A faster version of dbus-next
License: MIT
URL: https://github.com/bluetooth-devices/dbus-fast
Source: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz
+# Fix compatibility with Python 3.15
+Patch: https://github.com/Bluetooth-Devices/dbus-fast/pull/633.patch
BuildRequires: python3-devel
BuildRequires: gcc
@@ -34,7 +36,7 @@ Summary: %{summary}
%prep
-%autosetup -n dbus-fast-%{version}
+%autosetup -n dbus-fast-%{version} -p1
# Relax poetry dependencies
sed -i 's/Cython>=3,<3.1.0/Cython>=3/' pyproject.toml
reply other threads:[~2026-11-09 21:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179425935119.1.12946943226364094770.rpms-python-dbus-fast-7a2b3e5aa74f@fedoraproject.org \
--to=ksurma@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox