Skip to contentSkip to conversation

Disable build isolation for sepolicy python module

PATCH In review Cathy Hu 2 participants 2 messages Feb 16 – Mar 17 SELinux security module

lore
Share & tools
lore

Cathy Hu

author
#0 lore raw

PATCH 1/1 Disable build isolation for sepolicy python module

From: Cathy Hu <[email protected]>

same justification as:
https://github.com/SELinuxProject/selinux/commit/17a9372391ad2c9bf0e440391d6fd13cb8cfdaf3

Used patch by Daniel Garcia <[email protected]>:
https://build.opensuse.org/requests/1333291

---
 python/sepolicy/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
python/sepolicy/Makefile +1 -1
index 1a26cfdc..ccb22fe7 100644
@@ -27,7 +27,7 @@ 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) .
+	$(PYTHON) -m pip install --no-build-isolation --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)
Signature · 1 line
2.52.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Cathy Hu

From: Cathy Hu <[email protected]>

same justification as:
https://github.com/SELinuxProject/selinux/commit/17a9372391ad2c9bf0e440391d6fd13cb8cfdaf3

Used patch by Daniel Garcia <[email protected]>:
https://build.opensuse.org/requests/1333291

NB I would prefer the justification be included inline in the commit message rather than requiring following a link, but otherwise:

Quoted 21 lines
---
 python/sepolicy/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
python/sepolicy/Makefile +1 -2
index 1a26cfdc..ccb22fe7 100644
@@ -27,7 +27,7 @@ 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) .
+       $(PYTHON) -m pip install --no-build-isolation --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)
--

2.52.0