1 |
commit: a83ded83c6ef3e65901a7f41c726203b33aa7c2c |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 30 18:12:08 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 30 18:12:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a83ded83 |
7 |
|
8 |
sys-libs/libcap: drop 2.61 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libcap/Manifest | 1 - |
13 |
sys-libs/libcap/files/libcap-2.61-Wformat.patch | 25 ------ |
14 |
....61-ignore-RAISE_SETFCAP-install-failures.patch | 24 ------ |
15 |
sys-libs/libcap/files/libcap-2.61-no_perl.patch | 57 ------------- |
16 |
sys-libs/libcap/libcap-2.61.ebuild | 98 ---------------------- |
17 |
5 files changed, 205 deletions(-) |
18 |
|
19 |
diff --git a/sys-libs/libcap/Manifest b/sys-libs/libcap/Manifest |
20 |
index 4ec6770eefde..17b8bc94ee64 100644 |
21 |
--- a/sys-libs/libcap/Manifest |
22 |
+++ b/sys-libs/libcap/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
DIST libcap-2.49.tar.xz 139568 BLAKE2B 5746dcdf2a737e747450bd50a701ee8543277b17b7fbf1304b79f707a088ea74dc6dc79c61ff89b55b718a460a7b0814f960f44d07944a97b832b78f4e14e07f SHA512 2934a2ded1370edeb9603dbf43d8ca23a2eb5d67efc5cec5d4ba96c707a8db2702da8aa9be0cb86c5ff100d37ec96115c7777a7566ad0ab2e0b4a288bbe357d0 |
25 |
-DIST libcap-2.61.tar.xz 173892 BLAKE2B 50874d3510ab2476aaceb775314d98744736aacd7364a23827756caa160c101e8bc890b7c33b5e19df8b30bb6b3b1c2be323e4b6a963f97e9ee557e86b4f13a0 SHA512 40096bf511d1c45e36f5d7f24e49c709528f3f01fcadd47b6ac40a7e8d5f1705b29b4cc56356b030639f67d0641b9f4e7c19449c3c7f4f77a4070c35745b465c |
26 |
DIST libcap-2.62.tar.xz 174772 BLAKE2B e3c86a5b88b9be932802ec8612f79e5f04912bf3e66f673eae2add85362292f4737c544d21b9e5adfd1a7a33c073568301b6532cdf0ea6c8b834d895b84323f1 SHA512 61ac004920c5cd3382a5443db2eacfc2041b7a8c0814b27084c1d111125639fe3950dea4325d0f7fb6bfb0d5de114452c3a62230cc958edb05ffdb83b213f9b3 |
27 |
|
28 |
diff --git a/sys-libs/libcap/files/libcap-2.61-Wformat.patch b/sys-libs/libcap/files/libcap-2.61-Wformat.patch |
29 |
deleted file mode 100644 |
30 |
index e0046de58770..000000000000 |
31 |
--- a/sys-libs/libcap/files/libcap-2.61-Wformat.patch |
32 |
+++ /dev/null |
33 |
@@ -1,25 +0,0 @@ |
34 |
-From 9fd3e7ac5870f84c73ac777d9a14480227ad7f00 Mon Sep 17 00:00:00 2001 |
35 |
-From: David Seifert <soap@g.o> |
36 |
-Date: Sun, 28 Nov 2021 14:14:42 +0100 |
37 |
-Subject: [PATCH] Fix `-Wformat` on 32-bit platforms |
38 |
- |
39 |
---- |
40 |
- libcap/cap_test.c | 2 +- |
41 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
42 |
- |
43 |
-diff --git a/libcap/cap_test.c b/libcap/cap_test.c |
44 |
-index b7fb2c5..39df261 100644 |
45 |
---- a/libcap/cap_test.c |
46 |
-+++ b/libcap/cap_test.c |
47 |
-@@ -124,7 +124,7 @@ static int test_short_bits(void) |
48 |
- } |
49 |
- if (strlen(tmp) > __CAP_NAME_SIZE) { |
50 |
- printf("cap_to_text buffer size reservation needs fixing (%ld > %d)\n", |
51 |
-- strlen(tmp), __CAP_NAME_SIZE); |
52 |
-+ (long int)strlen(tmp), __CAP_NAME_SIZE); |
53 |
- result = -1; |
54 |
- } |
55 |
- free(tmp); |
56 |
--- |
57 |
-2.34.1 |
58 |
- |
59 |
|
60 |
diff --git a/sys-libs/libcap/files/libcap-2.61-ignore-RAISE_SETFCAP-install-failures.patch b/sys-libs/libcap/files/libcap-2.61-ignore-RAISE_SETFCAP-install-failures.patch |
61 |
deleted file mode 100644 |
62 |
index 25f853b2a982..000000000000 |
63 |
--- a/sys-libs/libcap/files/libcap-2.61-ignore-RAISE_SETFCAP-install-failures.patch |
64 |
+++ /dev/null |
65 |
@@ -1,24 +0,0 @@ |
66 |
-From 8dfcdcfdcb9c462a05566aa8d3c6eca871f0ddbf Mon Sep 17 00:00:00 2001 |
67 |
-From: Mike Frysinger <vapier@g.o> |
68 |
-Date: Wed, 10 Feb 2016 09:52:45 +0100 |
69 |
-Subject: [PATCH] ignore RAISE_SETFCAP install failures |
70 |
- |
71 |
-While the new RAISE_SETFCAP feature is nifty, its failure to run (often |
72 |
-due to the fs not supporting it) shouldn't impair the default install. |
73 |
- |
74 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
75 |
- |
76 |
-Forward ported from libcap-2.20 to libcap-2.25 |
77 |
- |
78 |
-Signed-off-by: Lars Wendler <polynomial-c@g.o> |
79 |
---- a/progs/Makefile |
80 |
-+++ b/progs/Makefile |
81 |
-@@ -39,7 +39,7 @@ |
82 |
- install -m 0755 $$p $(FAKEROOT)$(SBINDIR) ; \ |
83 |
- done |
84 |
- ifeq ($(RAISE_SETFCAP),yes) |
85 |
-- $(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap |
86 |
-+ -$(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap |
87 |
- endif |
88 |
- |
89 |
- test: |
90 |
|
91 |
diff --git a/sys-libs/libcap/files/libcap-2.61-no_perl.patch b/sys-libs/libcap/files/libcap-2.61-no_perl.patch |
92 |
deleted file mode 100644 |
93 |
index 3d42a4dc6135..000000000000 |
94 |
--- a/sys-libs/libcap/files/libcap-2.61-no_perl.patch |
95 |
+++ /dev/null |
96 |
@@ -1,57 +0,0 @@ |
97 |
-From 3f76418eaf73896489129c529fac021e4f3a03c0 Mon Sep 17 00:00:00 2001 |
98 |
-From: Mike Frysinger <vapier@g.o> |
99 |
-Date: Wed, 21 Nov 2018 11:00:54 +0100 |
100 |
-Subject: [PATCH] use awk/sed instead of perl for creating header files |
101 |
- |
102 |
-More systems should have awk/sed than perl. |
103 |
- |
104 |
-Signed-off-by: Mike Frysinger <vapier@g.o> |
105 |
- |
106 |
-Forward ported from libcap-2.22 to libcap-2.26 |
107 |
-and incorporated the gperf-3.1 fix provided by Mike Gilbert |
108 |
-<floppym@g.o> |
109 |
-Forward ported from libcap-2.26 to libcap-2.28 |
110 |
-Forward ported from libcap-2.28 to libcap-2.38 |
111 |
- |
112 |
-Signed-off-by: Lars Wendler <polynomial-c@g.o> |
113 |
---- a/libcap/Makefile |
114 |
-+++ b/libcap/Makefile |
115 |
-@@ -20,6 +20,8 @@ |
116 |
- |
117 |
- # Always build libcap sources this way: |
118 |
- CFLAGS += -fPIC |
119 |
-+AWK = awk |
120 |
-+SED = sed |
121 |
- |
122 |
- # The linker magic needed to build a dynamic library as independently |
123 |
- # executable |
124 |
-@@ -82,8 +84,18 @@ |
125 |
- ./_makenames > cap_names.h |
126 |
- |
127 |
- $(GPERF_OUTPUT): cap_names.list.h |
128 |
-- perl -e 'print "struct __cap_token_s { const char *name; int index; };\n%{\nconst struct __cap_token_s *__cap_lookup_name(const char *, size_t);\n%}\n%%\n"; while ($$l = <>) { $$l =~ s/[\{\"]//g; $$l =~ s/\}.*// ; print $$l; }' < $< | gperf --ignore-case --language=ANSI-C --readonly --null-strings --global-table --hash-function-name=__cap_hash_name --lookup-function-name="__cap_lookup_name" -c -t -m20 $(INDENT) > $@ |
129 |
-- sed -e 's/unsigned int len/size_t len/' -i $@ |
130 |
-+ (printf "%b" "struct __cap_token_s { const char *name; int index; };\n%%\n"; \ |
131 |
-+ $(SED) -e 's:["{}]::g' -e 's:,$$::' $<) | \ |
132 |
-+ gperf \ |
133 |
-+ --ignore-case \ |
134 |
-+ --language=ANSI-C \ |
135 |
-+ --includes \ |
136 |
-+ --readonly \ |
137 |
-+ --null-strings \ |
138 |
-+ --global-table \ |
139 |
-+ --hash-function-name=__cap_hash_name \ |
140 |
-+ --lookup-function-name="__cap_lookup_name" \ |
141 |
-+ -c -t -m20 $(INDENT) > $@ |
142 |
- |
143 |
- # Intention is that libcap keeps up with torvalds' tree, as reflected |
144 |
- # by this maintained version of the kernel header. libcap dynamically |
145 |
-@@ -92,7 +104,7 @@ |
146 |
- UAPI_HEADER := $(topdir)/libcap/include/uapi/linux/capability.h |
147 |
- cap_names.list.h: Makefile $(UAPI_HEADER) |
148 |
- @echo "=> making $@ from $(UAPI_HEADER)" |
149 |
-- perl -e 'while ($$l=<>) { if ($$l =~ /^\#define[ \t](CAP[_A-Z]+)[ \t]+([0-9]+)\s+$$/) { $$tok=$$1; $$val=$$2; $$tok =~ tr/A-Z/a-z/; print "{\"$$tok\",$$val},\n"; } }' $(UAPI_HEADER) | fgrep -v 0x > $@ |
150 |
-+ $(AWK) '($$0 ~ /^#define[[:space:]]+CAP[_A-Z]+[[:space:]]+[0-9]+[[:space:]]*$$/) { printf "{\"%s\",%s},\n", tolower($$2), $$3 }' $(UAPI_HEADER) > $@ |
151 |
- |
152 |
- $(STACAPLIBNAME): $(CAPOBJS) |
153 |
- $(AR) rcs $@ $^ |
154 |
|
155 |
diff --git a/sys-libs/libcap/libcap-2.61.ebuild b/sys-libs/libcap/libcap-2.61.ebuild |
156 |
deleted file mode 100644 |
157 |
index ad5ca82adcb8..000000000000 |
158 |
--- a/sys-libs/libcap/libcap-2.61.ebuild |
159 |
+++ /dev/null |
160 |
@@ -1,98 +0,0 @@ |
161 |
-# Copyright 1999-2021 Gentoo Authors |
162 |
-# Distributed under the terms of the GNU General Public License v2 |
163 |
- |
164 |
-EAPI=7 |
165 |
- |
166 |
-inherit multilib-minimal toolchain-funcs pam usr-ldscript |
167 |
- |
168 |
-if [[ ${PV} == *9999 ]]; then |
169 |
- inherit git-r3 |
170 |
- EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/libcap/libcap.git" |
171 |
-else |
172 |
- SRC_URI="https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${P}.tar.xz" |
173 |
- |
174 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
175 |
-fi |
176 |
- |
177 |
-DESCRIPTION="POSIX 1003.1e capabilities" |
178 |
-HOMEPAGE="https://sites.google.com/site/fullycapable/" |
179 |
- |
180 |
-# it's available under either of the licenses |
181 |
-LICENSE="|| ( GPL-2 BSD )" |
182 |
-SLOT="0" |
183 |
-IUSE="pam static-libs tools" |
184 |
- |
185 |
-# While the build system optionally uses gperf, we don't DEPEND on it because |
186 |
-# the build automatically falls back when it's unavailable. #604802 |
187 |
-PDEPEND="pam? ( sys-libs/pam[${MULTILIB_USEDEP}] )" |
188 |
-DEPEND="${PDEPEND} |
189 |
- sys-kernel/linux-headers" |
190 |
-BDEPEND=" |
191 |
- sys-apps/diffutils |
192 |
- tools? ( dev-lang/go )" |
193 |
- |
194 |
-PATCHES=( |
195 |
- "${FILESDIR}"/${PN}-2.61-no_perl.patch |
196 |
- "${FILESDIR}"/${PN}-2.61-ignore-RAISE_SETFCAP-install-failures.patch |
197 |
- "${FILESDIR}"/${PN}-2.61-Wformat.patch |
198 |
-) |
199 |
- |
200 |
-QA_FLAGS_IGNORED="sbin/captree" # go binaries don't use LDFLAGS |
201 |
- |
202 |
-src_prepare() { |
203 |
- default |
204 |
- multilib_copy_sources |
205 |
-} |
206 |
- |
207 |
-run_emake() { |
208 |
- local args=( |
209 |
- AR="$(tc-getAR)" |
210 |
- CC="$(tc-getCC)" |
211 |
- OBJCOPY="$(tc-getOBJCOPY)" |
212 |
- RANLIB="$(tc-getRANLIB)" |
213 |
- exec_prefix="${EPREFIX}" |
214 |
- lib_prefix="${EPREFIX}/usr" |
215 |
- lib="$(get_libdir)" |
216 |
- prefix="${EPREFIX}/usr" |
217 |
- PAM_CAP="$(usex pam yes no)" |
218 |
- DYNAMIC=yes |
219 |
- GOLANG="$(multilib_native_usex tools yes no)" |
220 |
- ) |
221 |
- emake "${args[@]}" "$@" |
222 |
-} |
223 |
- |
224 |
-src_configure() { |
225 |
- tc-export_build_env BUILD_CC |
226 |
- multilib-minimal_src_configure |
227 |
-} |
228 |
- |
229 |
-multilib_src_compile() { |
230 |
- run_emake |
231 |
-} |
232 |
- |
233 |
-multilib_src_test() { |
234 |
- run_emake test |
235 |
-} |
236 |
- |
237 |
-multilib_src_install() { |
238 |
- # no configure, needs explicit install line #444724#c3 |
239 |
- run_emake DESTDIR="${D}" install |
240 |
- |
241 |
- gen_usr_ldscript -a cap |
242 |
- gen_usr_ldscript -a psx |
243 |
- if ! use static-libs ; then |
244 |
- rm "${ED}"/usr/$(get_libdir)/lib{cap,psx}.a || die |
245 |
- fi |
246 |
- |
247 |
- # install pam plugins ourselves |
248 |
- rm -rf "${ED}"/usr/$(get_libdir)/security || die |
249 |
- |
250 |
- if use pam ; then |
251 |
- dopammod pam_cap/pam_cap.so |
252 |
- dopamsecurity '' pam_cap/capability.conf |
253 |
- fi |
254 |
-} |
255 |
- |
256 |
-multilib_src_install_all() { |
257 |
- dodoc CHANGELOG README doc/capability.notes |
258 |
-} |