public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-fsspec] rawhide: Fix build against OpenSSL 4
Date: Mon, 22 Jun 2026 02:36:48 GMT	[thread overview]
Message-ID: <178209580815.1.8373257200586861327.rpms-python-fsspec-61b59796cbff@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-fsspec
Branch : rawhide
Commit : 61b59796cbffb999b2526576d83ea8104c956684
Author : Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date   : 2026-06-21T22:32:04-04:00
Stats  : +37/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-fsspec/c/61b59796cbffb999b2526576d83ea8104c956684?branch=rawhide

Log:
Fix build against OpenSSL 4

---
diff --git a/0001-ftp-Make-deprecated-TLS-versions-optional.patch b/0001-ftp-Make-deprecated-TLS-versions-optional.patch
new file mode 100644
index 0000000..1e7c98e
--- /dev/null
+++ b/0001-ftp-Make-deprecated-TLS-versions-optional.patch
@@ -0,0 +1,35 @@
+From dea258bd3c10e4bcdc9627474f36b25b25b70dae Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+Date: Sun, 21 Jun 2026 22:25:20 -0400
+Subject: [PATCH] ftp: Make deprecated TLS versions optional
+
+When built against OpenSSL 4, Python 3.15 will not have any of these
+deprecated symbols.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
+---
+ fsspec/implementations/ftp.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/fsspec/implementations/ftp.py b/fsspec/implementations/ftp.py
+index 053472e..5f20d43 100644
+--- a/fsspec/implementations/ftp.py
++++ b/fsspec/implementations/ftp.py
+@@ -9,11 +9,11 @@ from ..utils import infer_storage_options, isfilelike
+ 
+ SECURITY_PROTOCOL_MAP = {
+     "tls": ssl.PROTOCOL_TLS,
+-    "tlsv1": ssl.PROTOCOL_TLSv1,
+-    "tlsv1_1": ssl.PROTOCOL_TLSv1_1,
+-    "tlsv1_2": ssl.PROTOCOL_TLSv1_2,
+     "sslv23": ssl.PROTOCOL_SSLv23,
+ }
++for protocol in ["TLSv1", "TLSv1_1", "TLSv1_2"]:
++    if hasattr(ssl, f"PROTOCOL_{protocol}"):
++        SECURITY_PROTOCOL_MAP[protocol.lower()] = getattr(ssl, f"PROTOCOL_{protocol}")
+ 
+ 
+ class ImplicitFTPTLS(FTP_TLS):
+-- 
+2.54.0
+

diff --git a/python-fsspec.spec b/python-fsspec.spec
index 1c6e71d..b2e8246 100644
--- a/python-fsspec.spec
+++ b/python-fsspec.spec
@@ -13,6 +13,8 @@ Summary:        Specification for Pythonic file system interfaces
 License:        BSD-3-Clause
 URL:            https://github.com/fsspec/filesystem_spec
 Source:         %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
+# https://github.com/fsspec/filesystem_spec/pull/2056
+Patch:          0001-ftp-Make-deprecated-TLS-versions-optional.patch
 
 BuildArch:      noarch
 

                 reply	other threads:[~2026-06-22  2:36 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=178209580815.1.8373257200586861327.rpms-python-fsspec-61b59796cbff@fedoraproject.org \
    --to=quantum.analyst@gmail.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