public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-fsspec] rawhide: Fix build against OpenSSL 4
@ 2026-06-22 2:36 Elliott Sales de Andrade
0 siblings, 0 replies; only message in thread
From: Elliott Sales de Andrade @ 2026-06-22 2:36 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-22 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-22 2:36 [rpms/python-fsspec] rawhide: Fix build against OpenSSL 4 Elliott Sales de Andrade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox