| Age | Commit message (Collapse) | Author |
|
When PySide6 is installed, the GUI tests fail. As SETools uses PyQt6, it
actually does not make much sense to use PySide6. It is selected by
pytest-qt: https://pytest-qt.readthedocs.io/en/latest/intro.html#requirements
> Works with either PySide6, PyQt6 or PyQt5, picking whichever is available on the system, giving preference to the first one installed in this order:
>
> - PySide6
> - PyQt6
> - PyQt5
Fix this by defining PYTEST_QT_API='pyqt6' and dropping pyside6 from the
dependencies, replacing it with python-pyqt6.
Fixes: https://github.com/archlinuxhardened/selinux/issues/141
Fixes: 6485923ae864 ("setools 4.5.1-2 update: fix setuptools compatibility")
|
|
|
|
|
|
|
|
Setuptools now reports:
/usr/lib/python3.12/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
/usr/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
SETools upstream actually reworked `setup.py` in
https://github.com/SELinuxProject/setools/pull/131 ("setup.py: Move
static definitions to pyproject.toml."), which is not part of a release
yet. Backport the commits from this Pull Request to enable using recent
setuptools when building and testing setools.
Moreover, the testsuite requires module `pytestqt` provided by package
`python-pytest-qt`, and `PySide6` or another PyQt Python package.
Add the required dependencies to `checkdepends`.
Finally, `python setup.py test` no longer works. Upstream README,
https://github.com/SELinuxProject/setools/blob/4.5.1/README.md#unit-tests
, documents:
python setup.py build_ext -i
pytest tests
Use this instead.
Fixes: https://github.com/archlinuxhardened/selinux/issues/125
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
At least 'seinfo' needs this library.
Fixes: https://github.com/archlinuxhardened/selinux/pull/43
|
|
|
|
|
|
|
|
|
|
|
|
The project moved from TresysTechnology to SELinuxProject organisation.
Update the package accordingly.
|
|
Backport upstream commit
https://github.com/TresysTechnology/setools/commit/856b56accba14b0296e608b7f05bead2d63ca542
|
|
in "setup.py build", setools/policyrep/qpol.py is generated after that
the Python files are copied to the build directory (build_ext is
executed after build_by). Therefore
/usr/lib/python2.7/site-packages/setools/policyrep/qpol.py is not
installed, which causes applications like system-config-selinux to fail
to load.
Fix this by always running "setup.py build_ext" before build.
Upstream issue: https://github.com/TresysTechnology/setools/issues/173
|
|
|
|
|
|
|
|
|
|
|
|
https://github.com/TresysTechnology/setools/blob/4.0.1/tests/policyrep/selinuxpolicy.py#L42
|
|
Now that setools3-libs is released and SELinux userspace tools 2.6 use
SETools 4, SETools can be upgraded to version 4.
If policycoreutils 2.5-3 is installed while upgrading setools,
setools3-libs needs to be installed at the same time as upgrading.
|
|
This makes it easier to upgrade to SETools 4, as policycoreutils still
needs SETools 3 libraries.
|
|
Add swig to setools makedepends array.
Do not bump the package version as this does not modify anything for
users having successfully built the package.
|
|
|