public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-zstandard] epel9: fix build with Python 3.14
Date: Thu, 13 Aug 2026 08:05:15 GMT	[thread overview]
Message-ID: <178660831519.1.10302409748337647032.rpms-python-zstandard-972eec808bc8@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-08-13  8:05 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=178660831519.1.10302409748337647032.rpms-python-zstandard-972eec808bc8@fedoraproject.org \
    --to=dominik@greysector.net \
    --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