From b7ebc951da8800f711142f69d9d958bde67a112d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 28 Apr 2019 09:54:45 +0100 Subject: gentoo resync : 28.04.2019 --- dev-util/trinity/Manifest | 12 ++-- dev-util/trinity/files/trinity-autofs.patch | 53 --------------- dev-util/trinity/files/trinity-irda.patch | 47 ------------- dev-util/trinity/files/trinity-memfd.patch | 79 ---------------------- dev-util/trinity/files/trinity-net-protocols.patch | 11 --- dev-util/trinity/metadata.xml | 11 +-- dev-util/trinity/trinity-1.8.ebuild | 50 -------------- dev-util/trinity/trinity-1.9.ebuild | 46 +++++++++++++ dev-util/trinity/trinity-9999.ebuild | 9 ++- 9 files changed, 64 insertions(+), 254 deletions(-) delete mode 100644 dev-util/trinity/files/trinity-autofs.patch delete mode 100644 dev-util/trinity/files/trinity-irda.patch delete mode 100644 dev-util/trinity/files/trinity-memfd.patch delete mode 100644 dev-util/trinity/files/trinity-net-protocols.patch delete mode 100644 dev-util/trinity/trinity-1.8.ebuild create mode 100644 dev-util/trinity/trinity-1.9.ebuild (limited to 'dev-util/trinity') diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest index f76cebcc5289..1cae4ea3384c 100644 --- a/dev-util/trinity/Manifest +++ b/dev-util/trinity/Manifest @@ -1,8 +1,4 @@ -AUX trinity-autofs.patch 1688 BLAKE2B 99b068123ff2de6f47569c5286fd12326451be1816f8386ef82fcea97816f7d922cb7496fc8cd356878c1b89434fb033fa345c18d25368dca0f1e1c8973ea229 SHA512 4e8b8fb16d37a8de966ffdc6049743e73c978947b4cbcecd460bc548ea4dc5a2f50e326e5745d7b31c2aeebb53e46026a8504bb26a8d9c2996b375ec2891152d -AUX trinity-irda.patch 1557 BLAKE2B 23dc97baab847ffe565af9d1b595a01dd2b4355cc265e07eb17a5718630a4b5534b00fc44d828a7186ea565714d94cc6dd49fe9f3e5033390353a25ab8e82e7a SHA512 e84f35f50dbffae42c2986e34f7b13b496d5f44ecadb2b1241682e0281356286cf88868d770fe6ac2a31f91ba2851b0f04970d595463988b44074d90c6babca3 -AUX trinity-memfd.patch 2092 BLAKE2B a29485126afbb6966969284977032bc63634afa0922206d487b1801d017bcae8990ee46f06f7cb63eaea957cb7b469f48a0a222a240efbe73f79fc8923157313 SHA512 ea9b77c5a37d53f329bb185cf6b33c6d26c27c4feead29c7c9e2999818ea5783ef92185ef9aa1676fced1dc24bbf1da9ef3a14056ee56f73baff4886da474bd9 -AUX trinity-net-protocols.patch 449 BLAKE2B ccc3f26e0c27d145a16463cb7573c79c2ebb3b6368b3fb4b63df4e053b8b4edf12e53174b7e967f138e0b8ae4d3c93ca727f8cb18e0ab1a56373550d37b8d93e SHA512 e52a7be4004472ee323e4c51cff65ecbad4464642abc8bee4ec94b588770ac49d814c0db6bce5c932a13fb6bffbe2491c80948d1f2f57835824253ce336319e5 -DIST trinity-1.8.tar.xz 213984 BLAKE2B 56f664023e2bc3648e941e4a3cb20e450cdcad3556289e201513d1755267eb013da2be035e81c87b3f1d1b0b1e12cb041c6bb345f7a84ee4c5c12f20a8e87f55 SHA512 686076dab2346cf9b5d8a20b14db31f460a352fa72eeadbe005a7423941918f5afef08b4987bb68cbbf4218d0cb620adb85f8036294d8df5ab5262e0031a44e4 -EBUILD trinity-1.8.ebuild 1000 BLAKE2B 10318476f98c42d5239e17ae0f6811d048a9b6a5cffa457b5e5cfeafe235ae9d44225931a46955bd658a1b41d8fe1d7a5cb81508224e268a443acbe47d8ab08a SHA512 0a922df41ffe9246f99b751abc4b19ec2b3592c9aa066ac73cdab125c41e2b895ae0b6a792b3a7a9b9a6427ca9727c9d1585e3dd5b6c08fe97ab01a6f217b79a -EBUILD trinity-9999.ebuild 800 BLAKE2B dc34511a94c365dc6f49b9e9465effd96da1e685065316cfb4a1eb4e3c7a10096c749fadc5be7ac5942ed13d41e63982deb4c0c72d4415b426a3b88c31493239 SHA512 dcb2c5cfdcffa77b9deb1f9abf85619f5d4d1a2a8b1279748335829b325549ab0a9ce3e5356f67924e003955517b9b877dcc6368f6254b8a5560903c0f6b207a -MISC metadata.xml 253 BLAKE2B e7d65a21b41d6fee02d2ca3ed68a52450a11debfcdf7e029100f010f6bab26aded65447d29bf374ee41d224f8105b57a8b2b6b0400f8ee4844900e6f2025a5cb SHA512 c6d2490fa32bc6e044a6b051ba21210f47d7545271a7437b9ed16f49924837e1c88dffc33efb94557b818a508e068e1405fae056c881078c37a001e30947aa25 +DIST trinity-1.9.tar.xz 216364 BLAKE2B dbf5af03539fc7bac37fd49f495e3feb506c7a403f72d0ef0b85327a3714b8edef52260a03dce1082db05d520376d7b96b0f85d541d6dff67e1245b0e1b35fe8 SHA512 3a2ab84b61b450d50e46a5da5dffa803f92bf469fc3d04ff4cb39f26b4f486bede9790bb48fc6b3bbda0ee882f0acf5b610d39e86b16bea7f2207adef94be31a +EBUILD trinity-1.9.ebuild 935 BLAKE2B c57a0190ae530d5a0409b0361810973598641c105ec86e51f69439bc8c39c22c27f5c2d7bcb26a7ee3ae1618524ee6cb26d3bb88eeb936ee1a34a81cb8211834 SHA512 cd258c851f925c3a1047be98ed3ff6ed7aadfa68a1befaf25ba102ff89cd31bcadcc48cad414098a934ca569fc8ded2be643a15511474dd8d7cb932490fa21cd +EBUILD trinity-9999.ebuild 919 BLAKE2B eb7b31f4af2efef42488ea8e674b0c04f499c034ce135d96eef871206d516d7acdac5f899dc30d376969bd67f75e3379a480828d8cea8afda2a671dde8431324 SHA512 955a09b5ef2f7f60a036dbcceb47083630f78e75aeb24092ca07a13f75de442c4b74ff9eaaa0ce29a4d5c657547157359105a33e15a3ed47483ea155053b311b +MISC metadata.xml 346 BLAKE2B ff94232f302bb57d0d5a0b5819eeac32f2a0757f9df61ecefa1f00f9f43ff02499bd2e9f8f026a5464e2c0d10027190bdd625e6ffa8a9c61d996105a357239d4 SHA512 cdd71a11b6355fc8b7d71804adcd7159df6764d4abe587ebfd69ac4f1159ab7b30d6d7519209a3b53fb201923ef62a4df68907e6bcdcfa78f41c87c0968ce63e diff --git a/dev-util/trinity/files/trinity-autofs.patch b/dev-util/trinity/files/trinity-autofs.patch deleted file mode 100644 index b8a6c9fdbd51..000000000000 --- a/dev-util/trinity/files/trinity-autofs.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/configure.orig 2017-11-03 09:14:07.000000000 -0600 -+++ b/configure 2017-11-18 14:25:52.095495407 -0700 -@@ -47,6 +47,29 @@ check_header() - echo "[*] Checking system headers." - - ############################################################################################# -+# Does auto_fs4 define AUTOFS_IOC_EXPIRE_(IN)DIRECT? -+echo -n "[*] Checking autofs headers ... " -+rm -f "$TMP" || exit 1 -+ -+cat >"$TMP.c" << EOF -+#include -+ -+int main() -+{ -+ return AUTOFS_IOC_EXPIRE_INDIRECT + AUTOFS_IOC_EXPIRE_DIRECT; -+} -+EOF -+ -+${CC} ${CFLAGS} "$TMP.c" -o "$TMP" &>"$TMP.log" -+if [ ! -x "$TMP" ]; then -+ echo $RED "[NO]" $COL_RESET -+ MISSING_DEFS=1 -+else -+ echo $GREEN "[YES]" $COL_RESET -+ echo "#define USE_AUTOFS_EXPIRE 1" >> $CONFIGH -+fi -+ -+############################################################################################# - # Are ipv6 headers usable ? - [ -z "$IPV6" ] && IPV6=yes - if [[ "$IPV6" == "yes" ]]; then -@@ -290,6 +313,7 @@ fi - - ############################################################################################# - -+check_header linux/auto_fs4.h USE_AUTOFS_EXPIRE - check_header linux/caif/caif_socket.h USE_CAIF - check_header linux/fsmap.h USE_FSMAP - check_header linux/if_alg.h USE_IF_ALG ---- a/ioctls/autofs.c.orig 2017-11-03 09:14:07.000000000 -0600 -+++ b/ioctls/autofs.c 2017-11-18 14:21:14.487774564 -0700 -@@ -238,8 +238,10 @@ static const struct ioctl autofs_ioctls[ - IOCTL(AUTOFS_IOC_SETTIMEOUT), - IOCTL(AUTOFS_IOC_EXPIRE), - IOCTL(AUTOFS_IOC_EXPIRE_MULTI), -+#ifdef PRE_4_14_KERNEL - IOCTL(AUTOFS_IOC_EXPIRE_INDIRECT), - IOCTL(AUTOFS_IOC_EXPIRE_DIRECT), -+#endif - IOCTL(AUTOFS_IOC_PROTOSUBVER), - IOCTL(AUTOFS_IOC_ASKUMOUNT), - diff --git a/dev-util/trinity/files/trinity-irda.patch b/dev-util/trinity/files/trinity-irda.patch deleted file mode 100644 index eb298fd99d80..000000000000 --- a/dev-util/trinity/files/trinity-irda.patch +++ /dev/null @@ -1,47 +0,0 @@ ---- a/configure.orig 2017-11-18 14:25:52.095495407 -0700 -+++ b/configure 2018-07-21 11:44:59.235072132 -0600 -@@ -317,6 +317,7 @@ check_header linux/auto_fs4.h USE_AUTOFS - check_header linux/caif/caif_socket.h USE_CAIF - check_header linux/fsmap.h USE_FSMAP - check_header linux/if_alg.h USE_IF_ALG -+check_header linux/irda.h USE_IRDA - check_header linux/rds.h USE_RDS - check_header linux/vfio.h USE_VFIO - check_header drm/drm.h USE_DRM ---- a/net/protocols.c.orig 2017-11-03 09:14:07.000000000 -0600 -+++ b/net/protocols.c 2018-07-21 11:48:09.065940013 -0600 -@@ -26,7 +26,9 @@ const struct protoptr net_protocols[TRIN - #ifdef USE_RDS - [PF_RDS] = { .proto = &proto_rds }, - #endif -+#ifdef USE_IRDA - [PF_IRDA] = { .proto = &proto_irda }, -+#endif - [PF_LLC] = { .proto = &proto_llc }, - [PF_CAN] = { .proto = &proto_can }, - [PF_TIPC] = { .proto = &proto_tipc }, ---- a/net/proto-irda.c.orig 2017-11-03 09:14:07.000000000 -0600 -+++ b/net/proto-irda.c 2018-07-21 11:45:34.330047712 -0600 -@@ -4,13 +4,15 @@ - #include - /* old irda.h does not include something which defines sa_family_t */ - #include --#include - #include - #include "net.h" - #include "random.h" - #include "utils.h" // RAND_ARRAY - #include "compat.h" - -+#ifdef USE_IRDA -+#include -+ - static void irda_gen_sockaddr(struct sockaddr **addr, socklen_t *addrlen) - { - struct sockaddr_irda *irda; -@@ -53,3 +55,5 @@ const struct netproto proto_irda = { - .valid_triplets = irda_triplets, - .nr_triplets = ARRAY_SIZE(irda_triplets), - }; -+ -+#endif diff --git a/dev-util/trinity/files/trinity-memfd.patch b/dev-util/trinity/files/trinity-memfd.patch deleted file mode 100644 index d333aac2941e..000000000000 --- a/dev-util/trinity/files/trinity-memfd.patch +++ /dev/null @@ -1,79 +0,0 @@ -commit c93bb184ce996c4d77eefbae2ab0bf74f396ec45 -Author: Baruch Siach -Date: Tue Mar 13 06:53:06 2018 +0200 - - memfd: fix build with glibc 2.27 - - glibc 2.27 added a wrapper for memfd_create(). This causes build - failure: - - fds/memfd.c:19:12: error: static declaration of 'memfd_create' follows non-static declaration - static int memfd_create(__unused__ const char *uname, __unused__ unsigned int flag) - ^~~~~~~~~~~~ - - Don't use the local definition when the libc provides one. - - Signed-off-by: Baruch Siach - -diff --git a/configure b/configure -index dc0a87d8c1ad..c0166af33048 100755 ---- a/configure -+++ b/configure -@@ -289,6 +289,29 @@ else - fi - - ############################################################################################# -+# Does glibc provide memfd_create() syscall wrapper -+# -+echo -n "[*] Checking if glibc provides memfd_create.. " -+rm -f "$TMP" || exit 1 -+ -+cat >"$TMP.c" << EOF -+#include -+ -+void main() -+{ -+ memfd_create(); -+} -+EOF -+ -+${CC} ${CFLAGS} "$TMP.c" -o "$TMP" &>"$TMP.log" -+if [ ! -x "$TMP" ]; then -+ echo $RED "[NO]" $COL_RESET -+else -+ echo $GREEN "[YES]" $COL_RESET -+ echo "#define USE_MEMFD_CREATE 1" >> $CONFIGH -+fi -+ -+############################################################################################# - - check_header linux/caif/caif_socket.h USE_CAIF - check_header linux/fsmap.h USE_FSMAP -diff --git a/fds/memfd.c b/fds/memfd.c -index 210678e4571c..aaaac2f78f54 100644 ---- a/fds/memfd.c -+++ b/fds/memfd.c -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include - - #include "fd.h" - #include "memfd.h" -@@ -16,6 +17,7 @@ - #include "trinity.h" - #include "udp.h" - -+#ifndef USE_MEMFD_CREATE - static int memfd_create(__unused__ const char *uname, __unused__ unsigned int flag) - { - #ifdef SYS_memfd_create -@@ -24,6 +26,7 @@ static int memfd_create(__unused__ const char *uname, __unused__ unsigned int fl - return -ENOSYS; - #endif - } -+#endif - - static void memfd_destructor(struct object *obj) - { diff --git a/dev-util/trinity/files/trinity-net-protocols.patch b/dev-util/trinity/files/trinity-net-protocols.patch deleted file mode 100644 index d2583b56ebd6..000000000000 --- a/dev-util/trinity/files/trinity-net-protocols.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/syscalls/setsockopt.c.orig 2017-11-03 09:14:07.000000000 -0600 -+++ b/syscalls/setsockopt.c 2017-11-18 13:44:19.283946230 -0700 -@@ -90,7 +90,7 @@ static void do_random_sso(struct sockopt - retry: - switch (rnd() % 4) { - case 0: /* do a random protocol, even if it doesn't match this socket. */ -- i = rnd() % PF_MAX; -+ i = rnd() % TRINITY_PF_MAX; - proto = net_protocols[i].proto; - if (proto != NULL) { - if (proto->setsockopt != NULL) { diff --git a/dev-util/trinity/metadata.xml b/dev-util/trinity/metadata.xml index 1d8df37aeeb8..7471f5066889 100644 --- a/dev-util/trinity/metadata.xml +++ b/dev-util/trinity/metadata.xml @@ -1,8 +1,11 @@ - - - kernelslacker/trinity - + + bircoph@gentoo.org + Andrew Savchenko + + + kernelslacker/trinity + diff --git a/dev-util/trinity/trinity-1.8.ebuild b/dev-util/trinity/trinity-1.8.ebuild deleted file mode 100644 index 2cb2ae2a86e1..000000000000 --- a/dev-util/trinity/trinity-1.8.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit toolchain-funcs - -DESCRIPTION="A Linux system call fuzz tester" -HOMEPAGE="http://codemonkey.org.uk/projects/trinity/" -SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="examples" - -# We need newer headers to avoid compilation failures in the BPF stuff. -DEPEND=" - >=sys-kernel/linux-headers-4.8 -" -RDEPEND="" - -PATCHES=( - # Fixes from Fedora and Debian - "${FILESDIR}"/${PN}-autofs.patch - "${FILESDIR}"/${PN}-irda.patch - "${FILESDIR}"/${PN}-memfd.patch - "${FILESDIR}"/${PN}-net-protocols.patch -) - -src_configure() { - tc-export CC - default -} - -src_compile() { - # Enable a verbose (i.e. not quiet) build. - emake V=1 -} - -src_install() { - dobin "${PN}" - dodoc Documentation/* - einstalldocs - - if use examples ; then - exeinto "/usr/share/doc/${PF}/scripts" - doexe scripts/* - docompress -x "/usr/share/doc/${PF}/scripts" - fi -} diff --git a/dev-util/trinity/trinity-1.9.ebuild b/dev-util/trinity/trinity-1.9.ebuild new file mode 100644 index 000000000000..583104b92a5e --- /dev/null +++ b/dev-util/trinity/trinity-1.9.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="A Linux system call fuzz tester" +HOMEPAGE="http://codemonkey.org.uk/projects/trinity/ https://github.com/kernelslacker/trinity/" +SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +# We need newer headers to avoid compilation failures in the BPF stuff. +DEPEND=" + >=sys-kernel/linux-headers-4.8 +" + +src_prepare() { + sed -e 's/-g -O2//' \ + -e 's/-D_FORTIFY_SOURCE=2//' \ + -e 's/-Werror//' \ + -e '/-o $@/s/$(LDFLAGS) //' \ + -i Makefile || die + + tc-export CC + default +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + doman trinity.1 + + if use examples ; then + exeinto /usr/share/doc/${PF}/scripts + doexe scripts/* + docompress -x /usr/share/doc/${PF}/scripts + fi +} diff --git a/dev-util/trinity/trinity-9999.ebuild b/dev-util/trinity/trinity-9999.ebuild index 4245b613481a..3910c2f87cdd 100644 --- a/dev-util/trinity/trinity-9999.ebuild +++ b/dev-util/trinity/trinity-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -13,11 +13,15 @@ LICENSE="GPL-2" SLOT="0" IUSE="examples" -DEPEND="sys-kernel/linux-headers" +# We need newer headers to avoid compilation failures in the BPF stuff. +DEPEND=" + >=sys-kernel/linux-headers-4.8 +" src_prepare() { sed -e 's/-g -O2//' \ -e 's/-D_FORTIFY_SOURCE=2//' \ + -e 's/-Werror//' \ -e '/-o $@/s/$(LDFLAGS) //' \ -i Makefile || die @@ -32,6 +36,7 @@ src_compile() { src_install() { dobin ${PN} dodoc Documentation/* README + doman trinity.1 if use examples ; then exeinto /usr/share/doc/${PF}/scripts -- cgit v1.2.3