1 |
commit: 67faddca92ab289d6fc18d30e9497ae42193b92d |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 14 15:16:45 2019 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 14 15:16:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67faddca |
7 |
|
8 |
dev-util/trinity: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
12 |
|
13 |
dev-util/trinity/Manifest | 1 - |
14 |
dev-util/trinity/files/trinity-autofs.patch | 53 --------------- |
15 |
dev-util/trinity/files/trinity-irda.patch | 47 ------------- |
16 |
dev-util/trinity/files/trinity-memfd.patch | 79 ---------------------- |
17 |
dev-util/trinity/files/trinity-net-protocols.patch | 11 --- |
18 |
dev-util/trinity/trinity-1.8.ebuild | 50 -------------- |
19 |
6 files changed, 241 deletions(-) |
20 |
|
21 |
diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest |
22 |
index dec5c8d1afd..859d43bcd23 100644 |
23 |
--- a/dev-util/trinity/Manifest |
24 |
+++ b/dev-util/trinity/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
-DIST trinity-1.8.tar.xz 213984 BLAKE2B 56f664023e2bc3648e941e4a3cb20e450cdcad3556289e201513d1755267eb013da2be035e81c87b3f1d1b0b1e12cb041c6bb345f7a84ee4c5c12f20a8e87f55 SHA512 686076dab2346cf9b5d8a20b14db31f460a352fa72eeadbe005a7423941918f5afef08b4987bb68cbbf4218d0cb620adb85f8036294d8df5ab5262e0031a44e4 |
27 |
DIST trinity-1.9.tar.xz 216364 BLAKE2B dbf5af03539fc7bac37fd49f495e3feb506c7a403f72d0ef0b85327a3714b8edef52260a03dce1082db05d520376d7b96b0f85d541d6dff67e1245b0e1b35fe8 SHA512 3a2ab84b61b450d50e46a5da5dffa803f92bf469fc3d04ff4cb39f26b4f486bede9790bb48fc6b3bbda0ee882f0acf5b610d39e86b16bea7f2207adef94be31a |
28 |
|
29 |
diff --git a/dev-util/trinity/files/trinity-autofs.patch b/dev-util/trinity/files/trinity-autofs.patch |
30 |
deleted file mode 100644 |
31 |
index b8a6c9fdbd5..00000000000 |
32 |
--- a/dev-util/trinity/files/trinity-autofs.patch |
33 |
+++ /dev/null |
34 |
@@ -1,53 +0,0 @@ |
35 |
---- a/configure.orig 2017-11-03 09:14:07.000000000 -0600 |
36 |
-+++ b/configure 2017-11-18 14:25:52.095495407 -0700 |
37 |
-@@ -47,6 +47,29 @@ check_header() |
38 |
- echo "[*] Checking system headers." |
39 |
- |
40 |
- ############################################################################################# |
41 |
-+# Does auto_fs4 define AUTOFS_IOC_EXPIRE_(IN)DIRECT? |
42 |
-+echo -n "[*] Checking autofs headers ... " |
43 |
-+rm -f "$TMP" || exit 1 |
44 |
-+ |
45 |
-+cat >"$TMP.c" << EOF |
46 |
-+#include <linux/auto_fs4.h> |
47 |
-+ |
48 |
-+int main() |
49 |
-+{ |
50 |
-+ return AUTOFS_IOC_EXPIRE_INDIRECT + AUTOFS_IOC_EXPIRE_DIRECT; |
51 |
-+} |
52 |
-+EOF |
53 |
-+ |
54 |
-+${CC} ${CFLAGS} "$TMP.c" -o "$TMP" &>"$TMP.log" |
55 |
-+if [ ! -x "$TMP" ]; then |
56 |
-+ echo $RED "[NO]" $COL_RESET |
57 |
-+ MISSING_DEFS=1 |
58 |
-+else |
59 |
-+ echo $GREEN "[YES]" $COL_RESET |
60 |
-+ echo "#define USE_AUTOFS_EXPIRE 1" >> $CONFIGH |
61 |
-+fi |
62 |
-+ |
63 |
-+############################################################################################# |
64 |
- # Are ipv6 headers usable ? |
65 |
- [ -z "$IPV6" ] && IPV6=yes |
66 |
- if [[ "$IPV6" == "yes" ]]; then |
67 |
-@@ -290,6 +313,7 @@ fi |
68 |
- |
69 |
- ############################################################################################# |
70 |
- |
71 |
-+check_header linux/auto_fs4.h USE_AUTOFS_EXPIRE |
72 |
- check_header linux/caif/caif_socket.h USE_CAIF |
73 |
- check_header linux/fsmap.h USE_FSMAP |
74 |
- check_header linux/if_alg.h USE_IF_ALG |
75 |
---- a/ioctls/autofs.c.orig 2017-11-03 09:14:07.000000000 -0600 |
76 |
-+++ b/ioctls/autofs.c 2017-11-18 14:21:14.487774564 -0700 |
77 |
-@@ -238,8 +238,10 @@ static const struct ioctl autofs_ioctls[ |
78 |
- IOCTL(AUTOFS_IOC_SETTIMEOUT), |
79 |
- IOCTL(AUTOFS_IOC_EXPIRE), |
80 |
- IOCTL(AUTOFS_IOC_EXPIRE_MULTI), |
81 |
-+#ifdef PRE_4_14_KERNEL |
82 |
- IOCTL(AUTOFS_IOC_EXPIRE_INDIRECT), |
83 |
- IOCTL(AUTOFS_IOC_EXPIRE_DIRECT), |
84 |
-+#endif |
85 |
- IOCTL(AUTOFS_IOC_PROTOSUBVER), |
86 |
- IOCTL(AUTOFS_IOC_ASKUMOUNT), |
87 |
- |
88 |
|
89 |
diff --git a/dev-util/trinity/files/trinity-irda.patch b/dev-util/trinity/files/trinity-irda.patch |
90 |
deleted file mode 100644 |
91 |
index eb298fd99d8..00000000000 |
92 |
--- a/dev-util/trinity/files/trinity-irda.patch |
93 |
+++ /dev/null |
94 |
@@ -1,47 +0,0 @@ |
95 |
---- a/configure.orig 2017-11-18 14:25:52.095495407 -0700 |
96 |
-+++ b/configure 2018-07-21 11:44:59.235072132 -0600 |
97 |
-@@ -317,6 +317,7 @@ check_header linux/auto_fs4.h USE_AUTOFS |
98 |
- check_header linux/caif/caif_socket.h USE_CAIF |
99 |
- check_header linux/fsmap.h USE_FSMAP |
100 |
- check_header linux/if_alg.h USE_IF_ALG |
101 |
-+check_header linux/irda.h USE_IRDA |
102 |
- check_header linux/rds.h USE_RDS |
103 |
- check_header linux/vfio.h USE_VFIO |
104 |
- check_header drm/drm.h USE_DRM |
105 |
---- a/net/protocols.c.orig 2017-11-03 09:14:07.000000000 -0600 |
106 |
-+++ b/net/protocols.c 2018-07-21 11:48:09.065940013 -0600 |
107 |
-@@ -26,7 +26,9 @@ const struct protoptr net_protocols[TRIN |
108 |
- #ifdef USE_RDS |
109 |
- [PF_RDS] = { .proto = &proto_rds }, |
110 |
- #endif |
111 |
-+#ifdef USE_IRDA |
112 |
- [PF_IRDA] = { .proto = &proto_irda }, |
113 |
-+#endif |
114 |
- [PF_LLC] = { .proto = &proto_llc }, |
115 |
- [PF_CAN] = { .proto = &proto_can }, |
116 |
- [PF_TIPC] = { .proto = &proto_tipc }, |
117 |
---- a/net/proto-irda.c.orig 2017-11-03 09:14:07.000000000 -0600 |
118 |
-+++ b/net/proto-irda.c 2018-07-21 11:45:34.330047712 -0600 |
119 |
-@@ -4,13 +4,15 @@ |
120 |
- #include <sys/un.h> |
121 |
- /* old irda.h does not include something which defines sa_family_t */ |
122 |
- #include <netinet/in.h> |
123 |
--#include <linux/irda.h> |
124 |
- #include <stdlib.h> |
125 |
- #include "net.h" |
126 |
- #include "random.h" |
127 |
- #include "utils.h" // RAND_ARRAY |
128 |
- #include "compat.h" |
129 |
- |
130 |
-+#ifdef USE_IRDA |
131 |
-+#include <linux/irda.h> |
132 |
-+ |
133 |
- static void irda_gen_sockaddr(struct sockaddr **addr, socklen_t *addrlen) |
134 |
- { |
135 |
- struct sockaddr_irda *irda; |
136 |
-@@ -53,3 +55,5 @@ const struct netproto proto_irda = { |
137 |
- .valid_triplets = irda_triplets, |
138 |
- .nr_triplets = ARRAY_SIZE(irda_triplets), |
139 |
- }; |
140 |
-+ |
141 |
-+#endif |
142 |
|
143 |
diff --git a/dev-util/trinity/files/trinity-memfd.patch b/dev-util/trinity/files/trinity-memfd.patch |
144 |
deleted file mode 100644 |
145 |
index d333aac2941..00000000000 |
146 |
--- a/dev-util/trinity/files/trinity-memfd.patch |
147 |
+++ /dev/null |
148 |
@@ -1,79 +0,0 @@ |
149 |
-commit c93bb184ce996c4d77eefbae2ab0bf74f396ec45 |
150 |
-Author: Baruch Siach <baruch@×××××××.il> |
151 |
-Date: Tue Mar 13 06:53:06 2018 +0200 |
152 |
- |
153 |
- memfd: fix build with glibc 2.27 |
154 |
- |
155 |
- glibc 2.27 added a wrapper for memfd_create(). This causes build |
156 |
- failure: |
157 |
- |
158 |
- fds/memfd.c:19:12: error: static declaration of 'memfd_create' follows non-static declaration |
159 |
- static int memfd_create(__unused__ const char *uname, __unused__ unsigned int flag) |
160 |
- ^~~~~~~~~~~~ |
161 |
- |
162 |
- Don't use the local definition when the libc provides one. |
163 |
- |
164 |
- Signed-off-by: Baruch Siach <baruch@×××××××.il> |
165 |
- |
166 |
-diff --git a/configure b/configure |
167 |
-index dc0a87d8c1ad..c0166af33048 100755 |
168 |
---- a/configure |
169 |
-+++ b/configure |
170 |
-@@ -289,6 +289,29 @@ else |
171 |
- fi |
172 |
- |
173 |
- ############################################################################################# |
174 |
-+# Does glibc provide memfd_create() syscall wrapper |
175 |
-+# |
176 |
-+echo -n "[*] Checking if glibc provides memfd_create.. " |
177 |
-+rm -f "$TMP" || exit 1 |
178 |
-+ |
179 |
-+cat >"$TMP.c" << EOF |
180 |
-+#include <sys/mman.h> |
181 |
-+ |
182 |
-+void main() |
183 |
-+{ |
184 |
-+ memfd_create(); |
185 |
-+} |
186 |
-+EOF |
187 |
-+ |
188 |
-+${CC} ${CFLAGS} "$TMP.c" -o "$TMP" &>"$TMP.log" |
189 |
-+if [ ! -x "$TMP" ]; then |
190 |
-+ echo $RED "[NO]" $COL_RESET |
191 |
-+else |
192 |
-+ echo $GREEN "[YES]" $COL_RESET |
193 |
-+ echo "#define USE_MEMFD_CREATE 1" >> $CONFIGH |
194 |
-+fi |
195 |
-+ |
196 |
-+############################################################################################# |
197 |
- |
198 |
- check_header linux/caif/caif_socket.h USE_CAIF |
199 |
- check_header linux/fsmap.h USE_FSMAP |
200 |
-diff --git a/fds/memfd.c b/fds/memfd.c |
201 |
-index 210678e4571c..aaaac2f78f54 100644 |
202 |
---- a/fds/memfd.c |
203 |
-+++ b/fds/memfd.c |
204 |
-@@ -5,6 +5,7 @@ |
205 |
- #include <stdlib.h> |
206 |
- #include <string.h> |
207 |
- #include <unistd.h> |
208 |
-+#include <sys/mman.h> |
209 |
- |
210 |
- #include "fd.h" |
211 |
- #include "memfd.h" |
212 |
-@@ -16,6 +17,7 @@ |
213 |
- #include "trinity.h" |
214 |
- #include "udp.h" |
215 |
- |
216 |
-+#ifndef USE_MEMFD_CREATE |
217 |
- static int memfd_create(__unused__ const char *uname, __unused__ unsigned int flag) |
218 |
- { |
219 |
- #ifdef SYS_memfd_create |
220 |
-@@ -24,6 +26,7 @@ static int memfd_create(__unused__ const char *uname, __unused__ unsigned int fl |
221 |
- return -ENOSYS; |
222 |
- #endif |
223 |
- } |
224 |
-+#endif |
225 |
- |
226 |
- static void memfd_destructor(struct object *obj) |
227 |
- { |
228 |
|
229 |
diff --git a/dev-util/trinity/files/trinity-net-protocols.patch b/dev-util/trinity/files/trinity-net-protocols.patch |
230 |
deleted file mode 100644 |
231 |
index d2583b56ebd..00000000000 |
232 |
--- a/dev-util/trinity/files/trinity-net-protocols.patch |
233 |
+++ /dev/null |
234 |
@@ -1,11 +0,0 @@ |
235 |
---- a/syscalls/setsockopt.c.orig 2017-11-03 09:14:07.000000000 -0600 |
236 |
-+++ b/syscalls/setsockopt.c 2017-11-18 13:44:19.283946230 -0700 |
237 |
-@@ -90,7 +90,7 @@ static void do_random_sso(struct sockopt |
238 |
- retry: |
239 |
- switch (rnd() % 4) { |
240 |
- case 0: /* do a random protocol, even if it doesn't match this socket. */ |
241 |
-- i = rnd() % PF_MAX; |
242 |
-+ i = rnd() % TRINITY_PF_MAX; |
243 |
- proto = net_protocols[i].proto; |
244 |
- if (proto != NULL) { |
245 |
- if (proto->setsockopt != NULL) { |
246 |
|
247 |
diff --git a/dev-util/trinity/trinity-1.8.ebuild b/dev-util/trinity/trinity-1.8.ebuild |
248 |
deleted file mode 100644 |
249 |
index 2cb2ae2a86e..00000000000 |
250 |
--- a/dev-util/trinity/trinity-1.8.ebuild |
251 |
+++ /dev/null |
252 |
@@ -1,50 +0,0 @@ |
253 |
-# Copyright 1999-2018 Gentoo Authors |
254 |
-# Distributed under the terms of the GNU General Public License v2 |
255 |
- |
256 |
-EAPI=7 |
257 |
-inherit toolchain-funcs |
258 |
- |
259 |
-DESCRIPTION="A Linux system call fuzz tester" |
260 |
-HOMEPAGE="http://codemonkey.org.uk/projects/trinity/" |
261 |
-SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz" |
262 |
- |
263 |
-LICENSE="GPL-2" |
264 |
-SLOT="0" |
265 |
-KEYWORDS="~amd64 ~x86" |
266 |
-IUSE="examples" |
267 |
- |
268 |
-# We need newer headers to avoid compilation failures in the BPF stuff. |
269 |
-DEPEND=" |
270 |
- >=sys-kernel/linux-headers-4.8 |
271 |
-" |
272 |
-RDEPEND="" |
273 |
- |
274 |
-PATCHES=( |
275 |
- # Fixes from Fedora and Debian |
276 |
- "${FILESDIR}"/${PN}-autofs.patch |
277 |
- "${FILESDIR}"/${PN}-irda.patch |
278 |
- "${FILESDIR}"/${PN}-memfd.patch |
279 |
- "${FILESDIR}"/${PN}-net-protocols.patch |
280 |
-) |
281 |
- |
282 |
-src_configure() { |
283 |
- tc-export CC |
284 |
- default |
285 |
-} |
286 |
- |
287 |
-src_compile() { |
288 |
- # Enable a verbose (i.e. not quiet) build. |
289 |
- emake V=1 |
290 |
-} |
291 |
- |
292 |
-src_install() { |
293 |
- dobin "${PN}" |
294 |
- dodoc Documentation/* |
295 |
- einstalldocs |
296 |
- |
297 |
- if use examples ; then |
298 |
- exeinto "/usr/share/doc/${PF}/scripts" |
299 |
- doexe scripts/* |
300 |
- docompress -x "/usr/share/doc/${PF}/scripts" |
301 |
- fi |
302 |
-} |