Description of problem: The mass rebuild of packages in rawhide revealed this problem. And it breaks selinux troubleshooter server. Version-Release number of selected component (if applicable): sh$ rpm -q python3-setools python3-setools-4.1.1-15.fc31.x86_64 How reproducible: Deterministic Steps to Reproduce: 1. dnf isntall -y python3-setools 2. python3 -c "import setools" Actual results: sh-5.0# rpm -q python3-setools python3-setools-4.1.1-15.fc31.x86_64 sh-5.0# python3 -c "import setools" Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib64/python3.7/site-packages/setools/__init__.py", line 31, in <module> from . import policyrep File "/usr/lib64/python3.7/site-packages/setools/policyrep/__init__.py", line 26, in <module> from .bounds import BoundsRuletype File "/usr/lib64/python3.7/site-packages/setools/policyrep/bounds.py", line 22, in <module> from .qpol import qpol_typebounds_t ModuleNotFoundError: No module named 'setools.policyrep.qpol' sh-5.0# echo $? 1 Expected results: //module imported whithout any problem sh-5.0# python3 -c "import setools" sh-5.0# echo $? 0 Additional info: sh-5.0# dnf repoquery --whatprovides /usr/lib64/python3.7/site-packages/setools/policyrep/qpol.py Last metadata expiration check: 0:00:54 ago on Wed 31 Jul 2019 02:34:50 PM CEST. python3-setools-0:4.1.1-14.fc30.x86_64
*** Bug 1725791 has been marked as a duplicate of this bug. ***
It's most likely related to changes in swig-4.0.0
See also bz1715589.
The simplest solution would be to update to latest setools-4.2.2 which doesn't use swig anymore. We already have this version in a module. setools is python3 only since 4.2.0 release, python2-setools is required by python2-policycoreutils, and python2-policycoreutils is required by dokuwiki-selinux - https://src.fedoraproject.org/rpms/dokuwiki/pull-requests - and vdsm - latest build seems to be 447.git0bb7717.fc28. So I'd update setools to 4.2.2 and drop python2-setools and python2-policycoreutils in order to get rid of the dependency on swig.
vdsm doesn't install anyway, see bz1701928.
WIP https://src.fedoraproject.org/rpms/setools/pull-request/10
*** Bug 1735179 has been marked as a duplicate of this bug. ***