From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- dev-util/trinity/Manifest | 5 +++ dev-util/trinity/files/trinity-1.1-flags.patch | 20 +++++++++ .../trinity/files/trinity-1.2-btrfs-headers.patch | 39 +++++++++++++++++ .../files/trinity-1.2-videodev2-ioctls.patch | 40 +++++++++++++++++ dev-util/trinity/files/trinity-1.4-flags.patch | 20 +++++++++ dev-util/trinity/files/trinity-1.5-flags.patch | 11 +++++ dev-util/trinity/metadata.xml | 11 +++++ dev-util/trinity/trinity-1.1.ebuild | 31 ++++++++++++++ dev-util/trinity/trinity-1.2.ebuild | 50 ++++++++++++++++++++++ dev-util/trinity/trinity-1.3.ebuild | 47 ++++++++++++++++++++ dev-util/trinity/trinity-1.4.ebuild | 45 +++++++++++++++++++ dev-util/trinity/trinity-1.5.ebuild | 45 +++++++++++++++++++ dev-util/trinity/trinity-9999.ebuild | 46 ++++++++++++++++++++ 13 files changed, 410 insertions(+) create mode 100644 dev-util/trinity/Manifest create mode 100644 dev-util/trinity/files/trinity-1.1-flags.patch create mode 100644 dev-util/trinity/files/trinity-1.2-btrfs-headers.patch create mode 100644 dev-util/trinity/files/trinity-1.2-videodev2-ioctls.patch create mode 100644 dev-util/trinity/files/trinity-1.4-flags.patch create mode 100644 dev-util/trinity/files/trinity-1.5-flags.patch create mode 100644 dev-util/trinity/metadata.xml create mode 100644 dev-util/trinity/trinity-1.1.ebuild create mode 100644 dev-util/trinity/trinity-1.2.ebuild create mode 100644 dev-util/trinity/trinity-1.3.ebuild create mode 100644 dev-util/trinity/trinity-1.4.ebuild create mode 100644 dev-util/trinity/trinity-1.5.ebuild create mode 100644 dev-util/trinity/trinity-9999.ebuild (limited to 'dev-util/trinity') diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest new file mode 100644 index 000000000000..6ef37bd6965b --- /dev/null +++ b/dev-util/trinity/Manifest @@ -0,0 +1,5 @@ +DIST trinity-1.1.tgz 115894 SHA256 926a1d6595d9fc29ad79075b6603e4bbfe42df3e04215bfce2502f4b554447cb SHA512 a10af383cf085e4ee3e22a66e0da79409570fa4e72f64b892566c499f04cf23122064e99984e7712c58fc81498300e38248b78c91d8e0397074714205af28b5a WHIRLPOOL dbc3ba3dc3248178652d0d32f787e51a0c617d31b54d9053632b9a8ae23e6dd7426d53c37fbfef7a48846e4afbb3a37b029a54ee98a81179cc90ab75f16dae0b +DIST trinity-1.2.tgz 171946 SHA256 71132fca0ed016dcb39a3f1d9fa16a68971e2e9eff0b94bbacdf3d7ff101b6d5 SHA512 5a96db85ce0a34c345c803c6983bc4f191a8c25d54ff90f61eafeb6cb747a4170097821bf070a77920831a35a19b8d2bbc7b32d51194e45060abbd235a96b0d7 WHIRLPOOL 3713baba7a7e0a3f8996a8eee658d9905129aeb5d7f8a42179851c0e17b33aae9dbfaa206ff27b3b1786c47ccb8d4d45ba0732df09c689e1341133bcb3f0d119 +DIST trinity-1.3.tgz 192513 SHA256 53ea7ca66c022e1fd86b18a7a38f5dbbf3611a15e1bb1256ea6e8ac570378b0f SHA512 343dac85a2c7a433e3d1e71535e16285f766ded240d2e7ba0527e29ab46cb39e11e2134f95255e8792f0cd21a5fd55f90a34a3a9d348414d03e9e0bd06437f36 WHIRLPOOL c2ff46ad957ec6541f3898000a7e6982f9a34eaa0b849db601cf84a2570131baf1e7817f7c5bd517e8b492880c957d8d5527fec6944fefb5ba24e6c51f276fb8 +DIST trinity-1.4.tar.xz 156212 SHA256 a61fca0e35010820be4ba858dd7d103e6cc5975feef052f2cf56db71c8661ac1 SHA512 ffe7e5e9214056b39c0047ddd6463885701d075256a9416749cba638c625898eb7b0e2f74a17794fd4034dafdc949b8297e842815bb9b6d29392059a6a0d549b WHIRLPOOL 8df2d1a22e3259e00363f71010f723a421109022478dfe8bd318fa0304ec9baa705ad089e535545026066649e751d7c4d310ccfd92561a1dc0692c1df1695658 +DIST trinity-1.5.tar.xz 171684 SHA256 e7b641d21954873bac7b5c27e7a9986837e83ec14fa20c55901c4333cce22655 SHA512 58884c8e226258de6037e06029b6c593a99b467e9b107562458557954fd4af185f88fbcacc04fc52f05318a860ebab4605c227e6a02b32253439807d4071cd8d WHIRLPOOL e737ac877b95a62e40a2cc9273f0b0d4dc79275b6dafab85b54815f1581c9c824189d88781cc26468c56166f6e87273fc5df1b786b69069b1dc4654d2a874f43 diff --git a/dev-util/trinity/files/trinity-1.1-flags.patch b/dev-util/trinity/files/trinity-1.1-flags.patch new file mode 100644 index 000000000000..fd794c62dc67 --- /dev/null +++ b/dev-util/trinity/files/trinity-1.1-flags.patch @@ -0,0 +1,20 @@ +--- trinity-1.1/Makefile ++++ trinity-1.1/Makefile +@@ -3,7 +3,7 @@ + INSTALL_PREFIX ?= $(DESTDIR) + INSTALL_PREFIX ?= $(HOME) + +-CFLAGS = -Wall -W -g -O2 -I. -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE ++CFLAGS += -Wall -W -I. -Wimplicit -D_GNU_SOURCE + #CFLAGS += $(shell if $(CC) -m32 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-m32"; fi) + CFLAGS += -Wdeclaration-after-statement + CFLAGS += -Wformat=2 +@@ -49,7 +49,7 @@ + -include $(SRCS:%.c=$(DEPDIR)/%.d) + + trinity: test $(OBJS) $(HEADERS) +- $(CC) $(CFLAGS) -o trinity $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o trinity $(OBJS) + @mkdir -p tmp + + df = $(DEPDIR)/$(*F) diff --git a/dev-util/trinity/files/trinity-1.2-btrfs-headers.patch b/dev-util/trinity/files/trinity-1.2-btrfs-headers.patch new file mode 100644 index 000000000000..81eb170fcbae --- /dev/null +++ b/dev-util/trinity/files/trinity-1.2-btrfs-headers.patch @@ -0,0 +1,39 @@ +From 2f51ba47d4e16aaa877956e2876f81ed50af5c5d Mon Sep 17 00:00:00 2001 +From: Andi Shyti +Date: Wed, 24 Jul 2013 12:31:05 +0200 +Subject: [PATCH] ioctls: btrfs-control: fix header inclusion order +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This patch enables newer linux/btrfs.h in Kernel headers 3.11, +where NULL is not recognized as a define. This is done by +including stdlib.h before linux/btrfs.h. It gets rid of the +following compiling error: + +In file included from ioctls/btrfs-control.c:5:0: +/usr/include/linux/btrfs.h: In function ‘btrfs_err_str’: +/usr/include/linux/btrfs.h:486:11: error: ‘NULL’ undeclared (first use in + return NULL; + ^ + +Signed-off-by: Andi Shyti +--- + ioctls/btrfs-control.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/ioctls/btrfs-control.c b/ioctls/btrfs-control.c +index 35e5389..3b0b50a 100644 +--- a/ioctls/btrfs-control.c ++++ b/ioctls/btrfs-control.c +@@ -2,6 +2,7 @@ + + #ifdef USE_BTRFS + ++#include + #include + + #include "trinity.h" +-- +1.8.3.2 + diff --git a/dev-util/trinity/files/trinity-1.2-videodev2-ioctls.patch b/dev-util/trinity/files/trinity-1.2-videodev2-ioctls.patch new file mode 100644 index 000000000000..c7240b7c15c0 --- /dev/null +++ b/dev-util/trinity/files/trinity-1.2-videodev2-ioctls.patch @@ -0,0 +1,40 @@ +From 54c5f3cce91ed914b1abbd3bafe4877e413947fa Mon Sep 17 00:00:00 2001 +From: Andi Shyti +Date: Wed, 24 Jul 2013 00:42:07 +0200 +Subject: [PATCH] ioctls: videodev2: check if defines are obsolete +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +In kernel headers 3.11 the VIDIOC_DBG_G_CHIP_IDENT define is +considered obsolete, therefore removed, generating the following +compiling error: + +ioctls/videodev2.c:72:15: error: ‘VIDIOC_DBG_G_CHIP_IDENT’ undeclared here (not in a function) + IOCTL(VIDIOC_DBG_G_CHIP_IDENT), + ^ + +Check the definition of it before using it + +Signed-off-by: Andi Shyti +--- + ioctls/videodev2.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/ioctls/videodev2.c b/ioctls/videodev2.c +index 0d1473e..03a5ae5 100644 +--- a/ioctls/videodev2.c ++++ b/ioctls/videodev2.c +@@ -69,7 +69,9 @@ static const struct ioctl videodev2_ioctls[] = { + IOCTL(VIDIOC_TRY_ENCODER_CMD), + IOCTL(VIDIOC_DBG_S_REGISTER), + IOCTL(VIDIOC_DBG_G_REGISTER), ++#ifdef VIDIOC_DBG_G_CHIP_IDENT + IOCTL(VIDIOC_DBG_G_CHIP_IDENT), ++#endif + IOCTL(VIDIOC_S_HW_FREQ_SEEK), + #ifdef VIDIOC_ENUM_DV_PRESETS + IOCTL(VIDIOC_ENUM_DV_PRESETS), +-- +1.8.3.2 + diff --git a/dev-util/trinity/files/trinity-1.4-flags.patch b/dev-util/trinity/files/trinity-1.4-flags.patch new file mode 100644 index 000000000000..5b639598044a --- /dev/null +++ b/dev-util/trinity/files/trinity-1.4-flags.patch @@ -0,0 +1,20 @@ +--- trinity-1.4/Makefile ++++ trinity-1.4/Makefile +@@ -9,7 +9,7 @@ + CC := $(CROSS_COMPILE)$(CC) + LD := $(CROSS_COMPILE)$(LD) + +-CFLAGS += -Wall -W -g -O2 -I. -Iinclude/ -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__linux__ ++CFLAGS += -Wall -W -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__ + ifneq ($(SYSROOT),) + CFLAGS += --sysroot=$(SYSROOT) + endif +@@ -84,7 +84,7 @@ + df = $(DEPDIR)/$(*D)/$(*F) + + %.o : %.c +- $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ -c $< ++ $(QUIET_CC)$(CC) $(CFLAGS) -o $@ -c $< + @mkdir -p $(DEPDIR)/$(*D) + @$(CC) -MM $(CFLAGS) $*.c > $(df).d + @mv -f $(df).d $(df).d.tmp diff --git a/dev-util/trinity/files/trinity-1.5-flags.patch b/dev-util/trinity/files/trinity-1.5-flags.patch new file mode 100644 index 000000000000..bb48287e1d83 --- /dev/null +++ b/dev-util/trinity/files/trinity-1.5-flags.patch @@ -0,0 +1,11 @@ +--- trinity-1.5/Makefile ++++ trinity-1.5/Makefile +@@ -10,7 +10,7 @@ + CC := $(CROSS_COMPILE)$(CC) + LD := $(CROSS_COMPILE)$(LD) + +-CFLAGS += -Wall -W -g -O2 -I. -Iinclude/ -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__linux__ ++CFLAGS += -Wall -W -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__ + ifneq ($(SYSROOT),) + CFLAGS += --sysroot=$(SYSROOT) + endif diff --git a/dev-util/trinity/metadata.xml b/dev-util/trinity/metadata.xml new file mode 100644 index 000000000000..209e56b6d1cf --- /dev/null +++ b/dev-util/trinity/metadata.xml @@ -0,0 +1,11 @@ + + + + + radhermit@gentoo.org + Tim Harder + + + kernelslacker/trinity + + diff --git a/dev-util/trinity/trinity-1.1.ebuild b/dev-util/trinity/trinity-1.1.ebuild new file mode 100644 index 000000000000..edd1d366294d --- /dev/null +++ b/dev-util/trinity/trinity-1.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils 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}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-kernel/linux-headers" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README +} diff --git a/dev-util/trinity/trinity-1.2.ebuild b/dev-util/trinity/trinity-1.2.ebuild new file mode 100644 index 000000000000..72989d906081 --- /dev/null +++ b/dev-util/trinity/trinity-1.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils 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}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +DEPEND="sys-kernel/linux-headers" + +src_prepare() { + sed -e 's/^CFLAGS = /CFLAGS +=/' \ + -e 's/-g -O2//' \ + -e 's/-D_FORTIFY_SOURCE=2//' \ + -e '/-o trinity/s/$(CFLAGS)/\0 $(LDFLAGS)/' \ + -e '/^CFLAGS += -Werror/d' \ + -i Makefile || die + + epatch "${FILESDIR}"/${PN}-1.2-videodev2-ioctls.patch + epatch "${FILESDIR}"/${PN}-1.2-btrfs-headers.patch + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + + 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.3.ebuild b/dev-util/trinity/trinity-1.3.ebuild new file mode 100644 index 000000000000..e5335daba0ea --- /dev/null +++ b/dev-util/trinity/trinity-1.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +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}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +DEPEND="sys-kernel/linux-headers" + +src_prepare() { + sed -e 's/^CFLAGS := /CFLAGS +=/' \ + -e 's/-g -O2//' \ + -e 's/-D_FORTIFY_SOURCE=2//' \ + -e '/-o trinity/s/$(CFLAGS)/\0 $(LDFLAGS)/' \ + -i Makefile || die + + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + + 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.4.ebuild b/dev-util/trinity/trinity-1.4.ebuild new file mode 100644 index 000000000000..f303e35db1ab --- /dev/null +++ b/dev-util/trinity/trinity-1.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +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" + +DEPEND=" + app-arch/xz-utils + sys-kernel/linux-headers +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + + 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.5.ebuild b/dev-util/trinity/trinity-1.5.ebuild new file mode 100644 index 000000000000..baab1988db2d --- /dev/null +++ b/dev-util/trinity/trinity-1.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs eutils + +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" + +DEPEND=" + app-arch/xz-utils + sys-kernel/linux-headers +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + + 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 new file mode 100644 index 000000000000..36b1a4ffe17e --- /dev/null +++ b/dev-util/trinity/trinity-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit toolchain-funcs git-r3 + +EGIT_REPO_URI="https://github.com/kernelslacker/trinity.git" + +DESCRIPTION="A Linux system call fuzz tester" +HOMEPAGE="http://codemonkey.org.uk/projects/trinity/ https://github.com/kernelslacker/trinity/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples" + +DEPEND="sys-kernel/linux-headers" + +src_prepare() { + sed -e 's/-g -O2//' \ + -e 's/-D_FORTIFY_SOURCE=2//' \ + -e '/-o $@/s/$(LDFLAGS) //' \ + -i Makefile || die + + tc-export CC +} + +src_configure() { + ./configure.sh || die +} + +src_compile() { + emake V=1 +} + +src_install() { + dobin ${PN} + dodoc Documentation/* README + + if use examples ; then + exeinto /usr/share/doc/${PF}/scripts + doexe scripts/* + docompress -x /usr/share/doc/${PF}/scripts + fi +} -- cgit v1.2.3-65-gdbad