[Bug 284715] sysutils/py-salt: Add missing dependancy

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 10 Feb 2025 16:46:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284715

            Bug ID: 284715
           Summary: sysutils/py-salt: Add missing dependancy
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: krion@FreeBSD.org
          Reporter: fullermd@over-yonder.net
          Assignee: krion@FreeBSD.org
             Flags: maintainer-feedback?(krion@FreeBSD.org)

Created attachment 257385
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=257385&action=edit
Add crytography to PYTHON_USES

Salt requires the cryptography library, and will happily fill up your disk with
backtraces in the minion log if it doesn't have it:

  File "/usr/local/lib/python3.11/site-packages/salt/crypt.py", line 235, in
__init__
    self.key = get_rsa_key(path, passphrase)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/salt/crypt.py", line 351, in
get_rsa_key
    return _get_key_with_evict(path, str(os.path.getmtime(path)), passphrase)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/usr/local/lib/python3.11/site-packages/salt/utils/decorators/__init__.py",
line 296, in _memoize
    cache[args_] = func(*args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/salt/crypt.py", line 333, in
_get_key_with_evict
    return serialization.load_pem_private_key(
           ^^^^^^^^^^^^^
NameError: name 'serialization' is not defined


So...   add it   :)

-- 
You are receiving this mail because:
You are the assignee for the bug.