public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-asyncssh] rawhide: drop upstreamed patches
Date: Mon, 30 Nov 2026 17:37:13 GMT	[thread overview]
Message-ID: <179606023342.1.7814264520222233999.rpms-python-asyncssh-01d40a2eef92@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-11-30 17:37 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=179606023342.1.7814264520222233999.rpms-python-asyncssh-01d40a2eef92@fedoraproject.org \
    --to=rosset.filipe@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