public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zstandard] epel9: fix build with Python 3.14
@ 2026-08-13  8:05 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-08-13  8:05 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-zstandard
            Branch : epel9
            Commit : 972eec808bc87358ff4f2007d2a2c04152cc77da
            Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
            Date   : 2025-03-28T17:45:04+01:00
            Stats  : +17/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-zstandard/c/972eec808bc87358ff4f2007d2a2c04152cc77da?branch=epel9

            Log:
            fix build with Python 3.14

Use collections.abc.Buffer instead of deprecated typing.ByteString.

resolves rhbz#2326925

---
diff --git a/python-zstandard-py314.patch b/python-zstandard-py314.patch
new file mode 100644
index 0000000..a2b2d8d
--- /dev/null
+++ b/python-zstandard-py314.patch
@@ -0,0 +1,15 @@
+diff -up zstandard-0.23.0/zstandard/__init__.py.py314 zstandard-0.23.0/zstandard/__init__.py
+--- zstandard-0.23.0/zstandard/__init__.py.py314	2024-07-14 23:58:50.000000000 +0200
++++ zstandard-0.23.0/zstandard/__init__.py	2025-03-28 17:16:47.339256930 +0100
+@@ -18,7 +18,10 @@ import io
+ import os
+ import platform
+ 
+-from typing import ByteString
++try:
++    from typing import ByteString
++except ImportError:
++    from collections.abc import Buffer as ByteString
+ 
+ # Some Python implementations don't support C extensions. That's why we have
+ # a CFFI implementation in the first place. The code here import one of our

diff --git a/python-zstandard.spec b/python-zstandard.spec
index c8a774c..67dbaf0 100644
--- a/python-zstandard.spec
+++ b/python-zstandard.spec
@@ -19,6 +19,8 @@ Source0: %{pypi_source}
 Patch0: %{name}-py313.patch
 # relax dependencies so that auto BR generation works
 Patch1: %{name}-deps.patch
+# https://github.com/indygreg/python-zstandard/issues/238
+Patch2: %{name}-py314.patch
 
 %description
 %{desc}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-13  8:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13  8:05 [rpms/python-zstandard] epel9: fix build with Python 3.14 Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox