archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
145 stars 25 forks source link

SETroubleshoot SafeConfigParser Depreciation Fix #123

Open jjbyrnes29 opened 2 months ago

jjbyrnes29 commented 2 months ago

In setroubleshoot-3.3.23, lines 41 to 44 of config.py.in contain the lines:

try:
 from configparser import SafeConfigParser
except ImportError:
 from configparser import SafeConfigParser

SafeConfigParser has been depreciated in Python 3.12 as per https://github.com/python/cpython/pull/92503

In testing, I was able to get the package to be built by editing SafeConfigParser to ConfigParser

System Information:

Arch 6.8.9-hardened1-2 (with SELinux enabled via base-selinux)
Python 3.12.3