Files
packages/utils/setools/patches/030-remove-host-paths.patch
Alexandru Ardelean 46c35610db setools: bump to 4.6.0
Fix dependency with python3-pkg-resources (it got removed).
And add test.sh

- Bump from 4.5.1 to 4.6.0
- Drop python3-pkg-resources dependency: setools uses
  'from importlib import resources as pkg_resources' which is stdlib,
  not the external pkg_resources package
- Update 010-no-gui.patch: pyproject.toml now manages script-files and
  package-data (was setup.py in 4.5.1); rewrite patch to target it
- Update 030-remove-host-paths.patch: lib_dirs now uses list[str] type
  hint; fix hunk header line numbers to match new upstream layout
- Add test.sh: verify core query classes (SELinuxPolicy, BoolQuery,
  TypeQuery, RoleQuery, UserQuery) are accessible

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-04-04 06:36:47 +03:00

12 lines
328 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ from Cython.Build import cythonize
# Library linkage
-lib_dirs: list[str] = ['.', '/usr/lib64', '/usr/lib', '/usr/local/lib']
+lib_dirs: list[str] = ['.', os.environ["STAGING_DIR"] + '/usr/lib']
include_dirs: list[str] = []
userspace_src = os.getenv("USERSPACE_SRC", "")