0005-Remove-ln-relative-usage-in-install-pywrap.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. From af2284b8510161e8742787a632ebb2aaef8fc045 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Fri, 25 Oct 2019 13:36:29 +0200
  4. Subject: [PATCH] Remove ln --relative usage in install-pywrap
  5. [Upstream: https://github.com/SELinuxProject/selinux/pull/184]
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  7. ---
  8. src/Makefile | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/src/Makefile b/src/Makefile
  11. index 2b1696a0..799df2b0 100644
  12. --- a/src/Makefile
  13. +++ b/src/Makefile
  14. @@ -175,7 +175,7 @@ install: all
  15. install-pywrap: pywrap
  16. $(PYTHON) setup.py install --prefix=$(PREFIX) `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`
  17. install -m 644 $(SWIGPYOUT) $(DESTDIR)$(PYTHONLIBDIR)/selinux/__init__.py
  18. - ln -sf --relative $(DESTDIR)$(PYTHONLIBDIR)/selinux/_selinux$(PYCEXT) $(DESTDIR)$(PYTHONLIBDIR)/_selinux$(PYCEXT)
  19. + cd $(DESTDIR)$(PYTHONLIBDIR) && ln -sf selinux/_selinux$(PYCEXT) _selinux$(PYCEXT)
  20. install-rubywrap: rubywrap
  21. test -d $(DESTDIR)$(RUBYINSTALL) || install -m 755 -d $(DESTDIR)$(RUBYINSTALL)
  22. --
  23. 2.21.0