void-packages/srcpkgs/libcap/patches/fix-missing-capsh.patch

40 lines
986 B
Diff
Raw Normal View History

2021-05-29 03:37:58 +02:00
From fc82332156dc04c24578aefcb7741d749d025032 Mon Sep 17 00:00:00 2001
From: "Andrew G. Morgan" <morgan@kernel.org>
Date: Fri, 28 May 2021 13:41:17 -0700
Subject: Make capsh an installed binary again
Bug report from Jan Palus:
https://bugzilla.kernel.org/show_bug.cgi?id=213261
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---
progs/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/progs/Makefile b/progs/Makefile
index 289186e..2289cf7 100644
--- progs/Makefile
+++ progs/Makefile
@@ -32,14 +32,14 @@ $(BUILD): %: %.o $(DEPS)
install: all
mkdir -p -m 0755 $(FAKEROOT)$(SBINDIR)
- for p in $(PROGS) ; do \
+ for p in $(PROGS) capsh ; do \
install -m 0755 $$p $(FAKEROOT)$(SBINDIR) ; \
done
ifeq ($(RAISE_SETFCAP),yes)
$(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap
endif
-test: $(PROGS)
+test: $(PROGS) capsh
capshdoc.h.cf: capshdoc.h ./mkcapshdoc.sh
./mkcapshdoc.sh > $@
--
cgit 1.2.3-1.el7