projects/aports·blob master · refs

30 lines · 1.3 KiB

1From 5941b2a3cdf6a5c1d1a3339f9fa61fb462ba60be Mon Sep 17 00:00:00 2001
2From: Cathy Hu <[email protected]>
3Date: Mon, 16 Feb 2026 17:07:34 +0100
4Subject: [PATCH] Disable build isolation for sepolicy python module
5
6same justification as:
7https://github.com/SELinuxProject/selinux/commit/17a9372391ad2c9bf0e440391d6fd13cb8cfdaf3
8
9Used patch by Daniel Garcia <[email protected]>:
10https://build.opensuse.org/requests/1333291
11
12Signed-off-by: Cathy Hu <[email protected]>
13Acked-by: Stephen Smalley <[email protected]>
14---
15 python/sepolicy/Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/python/sepolicy/Makefile b/python/sepolicy/Makefile
19index 1a26cfdce6..ccb22fe7da 100644
20--- a/sepolicy/Makefile
21+++ b/sepolicy/Makefile
22@@ -27,7 +27,7 @@ test:
23 @$(PYTHON) test_sepolicy.py -v
24
25 install:
26- $(PYTHON) -m pip install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) .
27+ $(PYTHON) -m pip install --no-build-isolation --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR) --ignore-installed --no-deps` $(PYTHON_SETUP_ARGS) .
28 [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
29 install -m 755 sepolicy.py $(DESTDIR)$(BINDIR)/sepolicy
30 (cd $(DESTDIR)$(BINDIR); ln -sf sepolicy sepolgen)