1 |
commit: 42e868756e356ea8fb5238a25a16ebbbce113136 |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Thu Sep 23 17:46:12 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 23 19:00:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e86875 |
7 |
|
8 |
sys-libs/libcap: remove unused patch |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22376 |
11 |
Package-Manager: Portage-3.0.23, Repoman-3.0.3 |
12 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
.../files/libcap-2.56-build-system-fixes.patch | 239 --------------------- |
16 |
1 file changed, 239 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/libcap/files/libcap-2.56-build-system-fixes.patch b/sys-libs/libcap/files/libcap-2.56-build-system-fixes.patch |
19 |
deleted file mode 100644 |
20 |
index 572bde97e2c..00000000000 |
21 |
--- a/sys-libs/libcap/files/libcap-2.56-build-system-fixes.patch |
22 |
+++ /dev/null |
23 |
@@ -1,239 +0,0 @@ |
24 |
-From 3249c2696468bc82ec45f4fcabddc390473a45da Mon Sep 17 00:00:00 2001 |
25 |
-From: David Seifert <soap@g.o> |
26 |
-Date: Sat, 4 Sep 2021 10:39:34 +0200 |
27 |
-Subject: [PATCH 1/3] Build system fixes |
28 |
- |
29 |
-Summary: |
30 |
-- Always keep $(WARNINGS) when overriding CFLAGS |
31 |
- |
32 |
-Signed-off-by: Andrew G. Morgan <morgan@××××××.org> |
33 |
---- |
34 |
- Make.Rules | 5 +++-- |
35 |
- 1 file changed, 3 insertions(+), 2 deletions(-) |
36 |
- |
37 |
-diff --git a/Make.Rules b/Make.Rules |
38 |
-index 3eeb098..00f2a03 100644 |
39 |
---- a/Make.Rules |
40 |
-+++ b/Make.Rules |
41 |
-@@ -78,10 +78,11 @@ OBJCOPY := $(CROSS_COMPILE)objcopy |
42 |
- |
43 |
- DEBUG = # -g -DDEBUG |
44 |
- WARNINGS=-Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \ |
45 |
-- -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \ |
46 |
-+ -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs \ |
47 |
- -Winline -Wshadow |
48 |
- COPTS ?= -O2 |
49 |
--CFLAGS ?= $(COPTS) $(WARNINGS) $(DEBUG) |
50 |
-+CFLAGS ?= $(COPTS) $(DEBUG) |
51 |
-+CFLAGS += $(WARNINGS) |
52 |
- CPPFLAGS += -Dlinux $(DEFINES) $(LIBCAP_INCLUDES) |
53 |
- LDFLAGS ?= # -g |
54 |
- |
55 |
--- |
56 |
-2.33.0 |
57 |
- |
58 |
- |
59 |
-From 99799844ad9272d43892881d1090369e6032aec2 Mon Sep 17 00:00:00 2001 |
60 |
-From: "Andrew G. Morgan" <morgan@××××××.org> |
61 |
-Date: Sat, 4 Sep 2021 11:42:24 -0700 |
62 |
-Subject: [PATCH 2/3] Don't build the tests/binaries until we want to run them |
63 |
- |
64 |
-Signed-off-by: Andrew G. Morgan <morgan@××××××.org> |
65 |
---- |
66 |
- tests/Makefile | 8 +++----- |
67 |
- 1 file changed, 3 insertions(+), 5 deletions(-) |
68 |
- |
69 |
-diff --git a/tests/Makefile b/tests/Makefile |
70 |
-index dd78432..ecb7d1b 100644 |
71 |
---- a/tests/Makefile |
72 |
-+++ b/tests/Makefile |
73 |
-@@ -8,12 +8,10 @@ include ../Make.Rules |
74 |
- # |
75 |
- |
76 |
- all: |
77 |
-- $(MAKE) libcap_launch_test uns_test |
78 |
--ifeq ($(PTHREADS),yes) |
79 |
-- $(MAKE) psx_test libcap_psx_test libcap_psx_launch_test |
80 |
--endif |
81 |
-+ @echo leave test building to test target |
82 |
- |
83 |
--install: all |
84 |
-+install: |
85 |
-+ @echo nothing to install from tests |
86 |
- |
87 |
- ifeq ($(DYNAMIC),yes) |
88 |
- LINKEXTRA=-Wl,-rpath,../libcap |
89 |
--- |
90 |
-2.33.0 |
91 |
- |
92 |
- |
93 |
-From 5ef14d07420c299ecd8de96928a5d1ce1e232df3 Mon Sep 17 00:00:00 2001 |
94 |
-From: "Andrew G. Morgan" <morgan@××××××.org> |
95 |
-Date: Sat, 4 Sep 2021 14:05:11 -0700 |
96 |
-Subject: [PATCH 3/3] Refactor top level Makefile to reduce redundant building |
97 |
- |
98 |
-Make build a bit quicker for folk that don't want to run tests. |
99 |
- |
100 |
-Signed-off-by: Andrew G. Morgan <morgan@××××××.org> |
101 |
---- |
102 |
- Makefile | 28 +++++----------------------- |
103 |
- doc/Makefile | 6 ++++++ |
104 |
- go/Makefile | 5 +++-- |
105 |
- libcap/Makefile | 3 +++ |
106 |
- pam_cap/Makefile | 2 +- |
107 |
- progs/Makefile | 5 +++-- |
108 |
- 6 files changed, 21 insertions(+), 28 deletions(-) |
109 |
- |
110 |
-diff --git a/Makefile b/Makefile |
111 |
-index 1c195dd..9ee11c8 100644 |
112 |
---- a/Makefile |
113 |
-+++ b/Makefile |
114 |
-@@ -8,7 +8,7 @@ include Make.Rules |
115 |
- # flags |
116 |
- # |
117 |
- |
118 |
--all install clean: %: %-here |
119 |
-+all test sudotest install clean: %: %-here |
120 |
- $(MAKE) -C libcap $@ |
121 |
- ifneq ($(PAM_CAP),no) |
122 |
- $(MAKE) -C pam_cap $@ |
123 |
-@@ -20,10 +20,13 @@ endif |
124 |
- $(MAKE) -C tests $@ |
125 |
- $(MAKE) -C progs $@ |
126 |
- $(MAKE) -C doc $@ |
127 |
-- $(MAKE) -C kdebug $@ |
128 |
- |
129 |
- all-here: |
130 |
- |
131 |
-+test-here: |
132 |
-+ |
133 |
-+sudotest-here: |
134 |
-+ |
135 |
- install-here: |
136 |
- |
137 |
- clean-here: |
138 |
-@@ -41,30 +44,9 @@ distclean: clean |
139 |
- release: distclean |
140 |
- cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar --exclude patches libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR) |
141 |
- |
142 |
--test: all |
143 |
-- $(MAKE) -C libcap $@ |
144 |
-- $(MAKE) -C tests $@ |
145 |
--ifneq ($(PAM_CAP),no) |
146 |
-- $(MAKE) -C pam_cap $@ |
147 |
--endif |
148 |
--ifeq ($(GOLANG),yes) |
149 |
-- $(MAKE) -C go $@ |
150 |
--endif |
151 |
-- $(MAKE) -C progs $@ |
152 |
-- |
153 |
- ktest: all |
154 |
- $(MAKE) -C kdebug test |
155 |
- |
156 |
--sudotest: all |
157 |
-- $(MAKE) -C tests $@ |
158 |
--ifneq ($(PAM_CAP),no) |
159 |
-- $(MAKE) -C pam_cap $@ |
160 |
--endif |
161 |
--ifeq ($(GOLANG),yes) |
162 |
-- $(MAKE) -C go $@ |
163 |
--endif |
164 |
-- $(MAKE) -C progs $@ |
165 |
-- |
166 |
- distcheck: |
167 |
- ./distcheck.sh |
168 |
- $(MAKE) DYNAMIC=no COPTS="-D_FORTIFY_SOURCE=2 -O1 -g" clean test |
169 |
-diff --git a/doc/Makefile b/doc/Makefile |
170 |
-index e2802dc..9614180 100644 |
171 |
---- a/doc/Makefile |
172 |
-+++ b/doc/Makefile |
173 |
-@@ -32,6 +32,12 @@ MANS = $(MAN1S) $(MAN3S) $(MAN8S) |
174 |
- |
175 |
- all: $(MANS) |
176 |
- |
177 |
-+test: |
178 |
-+ @echo no doc tests available |
179 |
-+ |
180 |
-+sudotest: |
181 |
-+ @echo no doc sudotests available |
182 |
-+ |
183 |
- .PHONY: html |
184 |
- html: |
185 |
- mkdir -p html |
186 |
-diff --git a/go/Makefile b/go/Makefile |
187 |
-index 5af5321..2b2061b 100644 |
188 |
---- a/go/Makefile |
189 |
-+++ b/go/Makefile |
190 |
-@@ -14,8 +14,9 @@ IMPORTDIR=kernel.org/pub/linux/libs/security/libcap |
191 |
- PKGDIR=pkg/$(GOOSARCH)/$(IMPORTDIR) |
192 |
- |
193 |
- DEPS=../libcap/libcap.a ../libcap/libpsx.a |
194 |
-+TESTS=compare-cap try-launching psx-signals |
195 |
- |
196 |
--all: PSXGOPACKAGE CAPGOPACKAGE web setid gowns captree compare-cap try-launching psx-signals |
197 |
-+all: PSXGOPACKAGE CAPGOPACKAGE web setid gowns captree |
198 |
- |
199 |
- $(DEPS): |
200 |
- $(MAKE) -C ../libcap all |
201 |
-@@ -93,7 +94,7 @@ endif |
202 |
- b210613: b210613.go CAPGOPACKAGE |
203 |
- CC="$(CC)" CGO_ENABLED="$(CGO_REQUIRED)" $(CGO_LDFLAGS_ALLOW) CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) build -mod=vendor $< |
204 |
- |
205 |
--test: all |
206 |
-+test: all $(TESTS) |
207 |
- CC="$(CC)" CGO_ENABLED="$(CGO_REQUIRED)" $(CGO_LDFLAGS_ALLOW) $(GO) test -mod=vendor $(IMPORTDIR)/psx |
208 |
- CC="$(CC)" CGO_ENABLED="$(CGO_REQUIRED)" $(CGO_LDFLAGS_ALLOW) $(GO) test -mod=vendor $(IMPORTDIR)/cap |
209 |
- LD_LIBRARY_PATH=../libcap ./compare-cap |
210 |
-diff --git a/libcap/Makefile b/libcap/Makefile |
211 |
-index 4b96a0c..84340f2 100644 |
212 |
---- a/libcap/Makefile |
213 |
-+++ b/libcap/Makefile |
214 |
-@@ -148,6 +148,9 @@ ifeq ($(PTHREADS),yes) |
215 |
- endif |
216 |
- endif |
217 |
- |
218 |
-+sudotest: |
219 |
-+ @echo no sudotests for libcap |
220 |
-+ |
221 |
- install: install-static |
222 |
- ifeq ($(SHARED),yes) |
223 |
- $(MAKE) install-shared |
224 |
-diff --git a/pam_cap/Makefile b/pam_cap/Makefile |
225 |
-index b245307..a000978 100644 |
226 |
---- a/pam_cap/Makefile |
227 |
-+++ b/pam_cap/Makefile |
228 |
-@@ -72,7 +72,7 @@ test: testlink test_pam_cap pam_cap.so |
229 |
- LD_LIBRARY_PATH=../libcap ./pam_cap.so --help |
230 |
- @echo "module can be run as an executable!" |
231 |
- |
232 |
--sudotest: test test_pam_cap |
233 |
-+sudotest: test_pam_cap |
234 |
- $(SUDO) ./test_pam_cap root 0x0 0x0 0x0 config=./capability.conf |
235 |
- $(SUDO) ./test_pam_cap root 0x0 0x0 0x0 config=./sudotest.conf |
236 |
- $(SUDO) ./test_pam_cap alpha 0x0 0x0 0x0 config=./capability.conf |
237 |
-diff --git a/progs/Makefile b/progs/Makefile |
238 |
-index 2f887c8..e2bd7fe 100644 |
239 |
---- a/progs/Makefile |
240 |
-+++ b/progs/Makefile |
241 |
-@@ -42,7 +42,8 @@ ifeq ($(RAISE_SETFCAP),yes) |
242 |
- $(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap |
243 |
- endif |
244 |
- |
245 |
--test: $(PROGS) capsh |
246 |
-+test: |
247 |
-+ @echo "no program tests without privilege, try 'make sudotest'" |
248 |
- |
249 |
- capshdoc.h.cf: capshdoc.h ./mkcapshdoc.sh |
250 |
- ./mkcapshdoc.sh > $@ |
251 |
-@@ -60,7 +61,7 @@ uns_test: ../tests/uns_test.c |
252 |
- $(MAKE) -C ../tests uns_test |
253 |
- cp ../tests/uns_test . |
254 |
- |
255 |
--sudotest: test tcapsh-static uns_test |
256 |
-+sudotest: tcapsh-static uns_test |
257 |
- $(SUDO) $(LDPATH) ./quicktest.sh |
258 |
- |
259 |
- clean: |
260 |
--- |
261 |
-2.33.0 |
262 |
- |