gentoo/sys-apps/selinux-python/files/selinux-python-3.8.1-no-pip.patch
Alfred Wingate da876cc62b
sys-apps/selinux-python: use distutils-r1 for python module
Bug: https://bugs.gentoo.org/965451
See-Also: 6f81dc7ef7f9e427243a4c21d40a0fdc9bb4d681
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44974
Signed-off-by: Sam James <sam@gentoo.org>
2025-12-18 06:23:30 +00:00

15 lines
537 B
Diff

Use eclass functions to install under PEP517
Patch to ensure failure if the change fails to apply.
--- a/sepolicy/Makefile
+++ b/sepolicy/Makefile
@@ -27,7 +27,6 @@ test:
@$(PYTHON) test_sepolicy.py -v
install:
- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) .
[ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
install -m 755 sepolicy.py $(DESTDIR)$(BINDIR)/sepolicy
(cd $(DESTDIR)$(BINDIR); ln -sf sepolicy sepolgen)