Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883671 - app-admin/salt - salt-ssh crashes where the server is running Python 3.11: AttributeError: module 're' has no attribute 'RE.MULTILINE'
Summary: app-admin/salt - salt-ssh crashes where the server is running Python 3.11: At...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL: https://github.com/saltstack/salt/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 19:47 UTC by Sebastian Pipping
Modified: 2023-01-30 04:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2022-11-29 19:47:22 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2023-01-30 04:55:23 UTC
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(+)