All versions of Salt in Gentoo seem affected, upstream has a merged pull request that may work. - https://github.com/saltstack/salt/issues/62676 - https://github.com/saltstack/salt/pull/62677
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4880642564e0285f7670d186aa254c3f9202f86d commit 4880642564e0285f7670d186aa254c3f9202f86d Author: Sebastian Pipping <sping@gentoo.org> AuthorDate: 2023-01-30 04:48:57 +0000 Commit: Sebastian Pipping <sping@gentoo.org> CommitDate: 2023-01-30 04:53:23 +0000 app-admin/salt: Fix importlib-metadata usage + fix salt-ssh for py3.11 hosts The Python 3.11 issue upstream: - https://github.com/saltstack/salt/issues/62676 - https://github.com/saltstack/salt/pull/62677 The importlib-metadata issue: - https://github.com/saltstack/salt/issues/62851 - https://github.com/saltstack/salt/pull/62854 Patches have been extracted from pull requests as following: - git clone https://github.com/saltstack/salt - cd salt - git diff b676e6338a7c094cb3335d11f851ac0e12222017^ 45b924bad865a00116d2e045fe71229f2dc3376e -- salt/utils/entrypoints.py > salt-3005.1-importlib-metadata-5-r1.patch - git diff 00352ae6e0ed0b80a75ec65cb925dd31a625010d^ 91efaea4975f37de97a88687d40e54e774151a8b -- salt/modules/file.py | head -n 123 > salt-3005.1-modules-file-python-3.11-host.patch Be sure to call salt-ssh with "--regen-thin" the first time after updating, to not end up running unpatched 3005.1(-r0) code. Closes: https://bugs.gentoo.org/875389 Closes: https://bugs.gentoo.org/883671 Signed-off-by: Sebastian Pipping <sping@gentoo.org> .../salt-3005.1-importlib-metadata-5-r1.patch | 29 +++ ...salt-3005.1-modules-file-python-3.11-host.patch | 123 ++++++++++++ app-admin/salt/salt-3005.1-r1.ebuild | 220 +++++++++++++++++++++ 3 files changed, 372 insertions(+)