summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2019-12-07 17:22:58 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2019-12-07 17:23:24 +0000
commitcfd1533e8a1d6615e34038a6b9057385327f8d4a (patch)
treeeba9c5ab1faaf70610c440d33b36ebe41ce1546e
parenteclass/tests/distutils-r1.sh: Disable setuptools dep (diff)
downloadgentoo-cfd1533e8a1d6615e34038a6b9057385327f8d4a.tar.gz
gentoo-cfd1533e8a1d6615e34038a6b9057385327f8d4a.tar.bz2
gentoo-cfd1533e8a1d6615e34038a6b9057385327f8d4a.zip
app-forensics/honggfuzz: bump up to 2.0
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--app-forensics/honggfuzz/Manifest1
-rw-r--r--app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch11
-rw-r--r--app-forensics/honggfuzz/honggfuzz-2.0.ebuild44
3 files changed, 56 insertions, 0 deletions
diff --git a/app-forensics/honggfuzz/Manifest b/app-forensics/honggfuzz/Manifest
index 126fd2351cf5..c08df21a4e87 100644
--- a/app-forensics/honggfuzz/Manifest
+++ b/app-forensics/honggfuzz/Manifest
@@ -1,2 +1,3 @@
DIST honggfuzz-1.8.tar.gz 78491883 BLAKE2B 359bc3c78046bded1003d08795f5c1eb65b2dc9e7e0952bb772d73840c3886acd370bce3973693b45b0db3607bb8b5c3a648dbbad5e6b8278000762f126731e5 SHA512 4643deca357dccaa6f229b6c56a040b6b16682a3de7396dcbecb7fba6075beef8381a8c4699b602c8677e06e90b7c870393b027126242fcc326c485b741352f0
DIST honggfuzz-1.9.tar.gz 78491908 BLAKE2B 961562d87e063804cb6a91d6ba0cffd0a4c3b3cb140f93a9362bd6749b8da251f7203e9ff7643bbad561620a8fdb9ca755758beb45fc46194c5907ecafcf0d2a SHA512 07ee10de723b14bc8ed9df9de196bcf308d8c10a825ba18b20d4f881d22c4254a45455bcbf965653572d9f71b2bff009284a34d0d5a6f879114b149b456c2eda
+DIST honggfuzz-2.0.tar.gz 65205954 BLAKE2B fb01fdb12cd5bf9a7c316c9df3a4ac9eb91ee535cbcdbb93436e7abcb81405a3af0fb5140b935abe44d11f5917f6f5189d697e86d3e81abfd9da38db2f899c36 SHA512 91e633ffe439aae6cb944f71cd5998f8adc2f1e6892c17b6d7876d707b3f167008a0574ad4b5671b82371cbe21e6c536acb148c0b844665fb3789c5e7fda52ba
diff --git a/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch b/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch
new file mode 100644
index 000000000000..c5d6b8060450
--- /dev/null
+++ b/app-forensics/honggfuzz/files/honggfuzz-2.0-no-werror.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -26,7 +26,7 @@ LD = $(CC)
+ BIN := honggfuzz
+ HFUZZ_CC_BIN := hfuzz_cc/hfuzz-cc
+ HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
+-COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werror -Wno-format-truncation -Wno-override-init -I.
++COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Wno-format-truncation -Wno-override-init -I.
+ COMMON_LDFLAGS := -pthread -lm
+ COMMON_SRCS := $(sort $(wildcard *.c))
+ CFLAGS ?= -O3 -mtune=native -funroll-loops
diff --git a/app-forensics/honggfuzz/honggfuzz-2.0.ebuild b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild
new file mode 100644
index 000000000000..c6f560e1a1ed
--- /dev/null
+++ b/app-forensics/honggfuzz/honggfuzz-2.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="A general purpose fuzzer with feedback support"
+HOMEPAGE="http://google.github.io/honggfuzz/"
+SRC_URI="https://github.com/google/honggfuzz/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ >=sys-libs/binutils-libs-2.29:=
+ sys-libs/libunwind:=
+"
+
+DEPEND="${RDEPEND}"
+
+DOCS=(
+ CHANGELOG
+ COPYING
+ CONTRIBUTING
+ README.md
+)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0-no-werror.patch
+ "${FILESDIR}"/${PN}-1.1-binutils-2.29.patch
+)
+
+src_compile() {
+ CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" emake
+}
+
+src_install() {
+ dobin ${PN}
+
+ einstalldocs
+}