libcap-2.20-ignore-RAISE_SETFCAP-install-failures.patch 840 B

123456789101112131415161718192021222324252627282930
  1. From f2020ee4ee4b2f245637c77e81d62ab6d1db3c6c Mon Sep 17 00:00:00 2001
  2. From: Mike Frysinger <vapier@gentoo.org>
  3. Date: Tue, 25 Jan 2011 15:52:31 -0500
  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. ---
  9. progs/Makefile | 2 +-
  10. 1 files changed, 1 insertions(+), 1 deletions(-)
  11. diff --git a/progs/Makefile b/progs/Makefile
  12. index c261f57..9e1a84d 100644
  13. --- a/progs/Makefile
  14. +++ b/progs/Makefile
  15. @@ -30,7 +30,7 @@ install: all
  16. install -m 0755 $$p $(SBINDIR) ; \
  17. done
  18. ifeq ($(RAISE_SETFCAP),yes)
  19. - $(SBINDIR)/setcap cap_setfcap=i $(SBINDIR)/setcap
  20. + -$(SBINDIR)/setcap cap_setfcap=i $(SBINDIR)/setcap
  21. endif
  22. clean:
  23. --
  24. 1.7.4.rc2