public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-asyncssh] rawhide: drop upstreamed patches
@ 2026-11-30 17:37 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-30 17:37 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-asyncssh
Branch : rawhide
Commit : 01d40a2eef920f3e9a639347e425eebf6283c6f0
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-30T12:07:58-03:00
Stats : +0/-90 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-asyncssh/c/01d40a2eef920f3e9a639347e425eebf6283c6f0?branch=rawhide
Log:
drop upstreamed patches
Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
---
diff --git a/nettle4.diff b/nettle4.diff
deleted file mode 100644
index 81ea895..0000000
--- a/nettle4.diff
+++ /dev/null
@@ -1,84 +0,0 @@
-commit 8aeb0e44e893c28f7373a9d766a9d68a765aaeab
-Author: Georg Sauthoff <mail@gms.tf>
-Date: 2026-11-14 11:53:48 +0100
-
- Support Nettle 4 besides version 3
-
- i.e. drop the digest size argument when the nettle library version 4 is
- loaded due to version 4 API changes
-
- fixes #842
-
-diff --git a/asyncssh/crypto/umac.py b/asyncssh/crypto/umac.py
-index 981be41..d8f03f7 100644
---- a/asyncssh/crypto/umac.py
-+++ b/asyncssh/crypto/umac.py
-@@ -26,12 +26,39 @@ import ctypes.util
- from typing import TYPE_CHECKING, Callable, Optional
-
-
-+if TYPE_CHECKING:
-+ _GetMajor = Callable[[], ctypes.c_int]
-+else:
-+ # only required for Python < 3.14, because of eager evaluation there
-+ _GetMajor = None
-+
-+
-+for lib in ('nettle', 'libnettle', 'libnettle-6'):
-+ _nettle_lib = ctypes.util.find_library(lib)
-+
-+ if _nettle_lib: # pragma: no branch
-+ break
-+else: # pragma: no cover
-+ _nettle_lib = None
-+ _major = 3
-+
-+if _nettle_lib: # pragma: no branch
-+ _nettle = ctypes.cdll.LoadLibrary(_nettle_lib)
-+ _get_major: _GetMajor = getattr(_nettle, 'nettle_version_major')
-+ _major = _get_major()
-+ if _major not in (3, 4):
-+ _nettle_lib = None
-+
-+
- if TYPE_CHECKING:
- _ByteArray = ctypes.Array[ctypes.c_char]
- _SetKey = Callable[[_ByteArray, bytes], None]
- _SetNonce = Callable[[_ByteArray, ctypes.c_size_t, bytes], None]
- _Update = Callable[[_ByteArray, ctypes.c_size_t, bytes], None]
-- _Digest = Callable[[_ByteArray, ctypes.c_size_t, _ByteArray], None]
-+ if _major == 3:
-+ _Digest = Callable[[_ByteArray, ctypes.c_size_t, _ByteArray], None]
-+ else:
-+ _Digest = Callable[[_ByteArray, _ByteArray], None]
- _New = Callable[[bytes, Optional[bytes], Optional[bytes]], object]
-
-
-@@ -113,7 +140,10 @@ def _build_umac(size: int) -> '_New':
- """
-
- result = ctypes.create_string_buffer(self.digest_size)
-- _digest(self._ctx, ctypes.c_size_t(self.digest_size), result)
-+ if _major == 3:
-+ _digest(self._ctx, ctypes.c_size_t(self.digest_size), result)
-+ else:
-+ _digest(self._ctx, result)
- return result.raw
-
- def hexdigest(self) -> str:
-@@ -125,15 +155,5 @@ def _build_umac(size: int) -> '_New':
- return _UMAC.new
-
-
--for lib in ('nettle', 'libnettle', 'libnettle-6'):
-- _nettle_lib = ctypes.util.find_library(lib)
--
-- if _nettle_lib: # pragma: no branch
-- break
--else: # pragma: no cover
-- _nettle_lib = None
--
- if _nettle_lib: # pragma: no branch
-- _nettle = ctypes.cdll.LoadLibrary(_nettle_lib)
--
- umac32, umac64, umac96, umac128 = map(_build_umac, (32, 64, 96, 128))
diff --git a/python-asyncssh.spec b/python-asyncssh.spec
index c720a34..a73019f 100644
--- a/python-asyncssh.spec
+++ b/python-asyncssh.spec
@@ -13,17 +13,11 @@ Summary: Asynchronous SSH for Python
License: EPL-2.0 OR GPL-2.0-or-later
URL: https://github.com/ronf/asyncssh
Source0: %pypi_source
-# cf. https://github.com/ronf/asyncssh/pull/844
-# XXX remove when fixed
-Patch0: nettle4.diff
-
-
BuildArch: noarch
# required by unittests
-BuildRequires: nmap-ncat
BuildRequires: openssh-clients
BuildRequires: openssl
BuildRequires: python3-gssapi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 17:37 [rpms/python-asyncssh] rawhide: drop upstreamed patches Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox