libcap-2.25-ignore-RAISE_SETFCAP-install-failures.patch 988 B

12345678910111213141516171819202122232425262728293031323334
  1. From 8dfcdcfdcb9c462a05566aa8d3c6eca871f0ddbf Mon Sep 17 00:00:00 2001
  2. From: Mike Frysinger <vapier@gentoo.org>
  3. Date: Wed, 10 Feb 2016 09:52:45 +0100
  4. Subject: [PATCH] ignore RAISE_SETFCAP install failures
  5. While the new RAISE_SETFCAP feature is nifty, its failure to run (often
  6. due to the fs not supporting it) shouldn't impair the default install.
  7. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  8. Forward ported from libcap-2.20 to libcap-2.25
  9. Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
  10. ---
  11. progs/Makefile | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/progs/Makefile b/progs/Makefile
  14. index c094a24..4a6db38 100644
  15. --- a/progs/Makefile
  16. +++ b/progs/Makefile
  17. @@ -27,7 +27,7 @@ install: all
  18. install -m 0755 $$p $(FAKEROOT)$(SBINDIR) ; \
  19. done
  20. ifeq ($(RAISE_SETFCAP),yes)
  21. - $(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap
  22. + -$(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap
  23. endif
  24. clean:
  25. --
  26. 2.7.1