Files
setroubleshoot/remove-pip-from-makefile.patch
Zdenek Kubala 1138d27391 Accepting request 1091396 from home:djz88:branches:security:SELinux
- Temp Fix build error caused by invoking `-m pip install` within
  build process by return to `setup.py install` - we do not allow
  network connection in secure build mode in OBS

OBS-URL: https://build.opensuse.org/request/show/1091396
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setroubleshoot?expand=0&rev=34
2023-06-08 08:17:27 +00:00

17 lines
742 B
Diff

Index: setroubleshoot-3.3.31/src/Makefile.am
===================================================================
--- setroubleshoot-3.3.31.orig/src/Makefile.am
+++ setroubleshoot-3.3.31/src/Makefile.am
@@ -110,8 +110,8 @@ python-build:
$(PYTHON) setup.py build
install-exec-hook:
- $(PYTHON) -m pip install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` \
- `test -n "$(PREFIX)" && echo --prefix $(PREFIX)` .
+ $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` \
+ `test -n "$(PREFIX)" && echo --prefix $(PREFIX)`
uninstall-hook:
- $(PYTHON) -m pip uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` -y setroubleshoot
+ $(PYTHON) setup.py uninstall `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`