public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/aflplusplus/
Date: Thu, 22 Jul 2021 03:23:33 +0000 (UTC)	[thread overview]
Message-ID: <1626924189.37fef0ae5d9d02ed125a7092ab2f556b70bc16db.sam@gentoo> (raw)

commit:     37fef0ae5d9d02ed125a7092ab2f556b70bc16db
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 22 03:23:09 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 22 03:23:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37fef0ae

app-forensics/aflplusplus: add 3.14c

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-forensics/aflplusplus/Manifest                 |  1 +
 app-forensics/aflplusplus/aflplusplus-3.14c.ebuild | 98 ++++++++++++++++++++++
 2 files changed, 99 insertions(+)

diff --git a/app-forensics/aflplusplus/Manifest b/app-forensics/aflplusplus/Manifest
index 981ff63c53a..765f9130b88 100644
--- a/app-forensics/aflplusplus/Manifest
+++ b/app-forensics/aflplusplus/Manifest
@@ -1,2 +1,3 @@
 DIST aflplusplus-3.12c.tar.gz 2065569 BLAKE2B ff7a87eb02f7731b5ce8e1a3016239c6fd1cd1bfeb0b9c0fb69f72bdbf079e7700cdb32abe64f64853e5ff82f1c0ecd86d2cadb892e7c40be6bb2a7b089f7387 SHA512 a814d61298b60d99388289e742dbedf2ed1ab454a5e1ea20d48bb2f18b36c01553ab1f097a06f733439d67e804d48cb823a82ff249c404fb0b83a281564f3040
 DIST aflplusplus-3.13c.tar.gz 2128787 BLAKE2B 40fa65654468dc1de7f6e1b63d2266915a40d145b7cb91b8b95488bc975804f70887bc1c3718fbd12c76872a0126f3bcc36134eb55ef729060b5efcf93dad424 SHA512 916a714deaf67969c9ac6e90bd2d8015a1e5188c8a8122f4d5d64ce4b841822de65458e469a47d4244358fab5e31ef4e52b8ec1432dcbd60d29aedf15e4c36fe
+DIST aflplusplus-3.14c.tar.gz 2162934 BLAKE2B 0830b320cea65b9bdd048a08a388c7145164f6b7f4dc140a2f4268a3aa22dc608a771169c830e2196e7a0d543e6f3da49f39736f3b2514c559b986ce929d43c4 SHA512 318607cff40b5f2fc94938747e2ac6b8f400767138eb39edf4daf320afbdab417d0d97a80a1c9db8bb557ad4b7b62f887ae6e692c376f5d5673a493bd23bb811

diff --git a/app-forensics/aflplusplus/aflplusplus-3.14c.ebuild b/app-forensics/aflplusplus/aflplusplus-3.14c.ebuild
new file mode 100644
index 00000000000..9fafa1fa35e
--- /dev/null
+++ b/app-forensics/aflplusplus/aflplusplus-3.14c.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+LLVM_MAX_SLOT=12
+inherit toolchain-funcs llvm optfeature python-single-r1
+
+DESCRIPTION="A fork of AFL, the popular compile-time instrumentation fuzzer"
+HOMEPAGE="https://github.com/AFLplusplus/AFLplusplus"
+SRC_URI="https://github.com/AFLplusplus/AFLplusplus/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/AFLplusplus-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Tests involve heavy use of LD_PRELOAD in some cases
+# This isn't compatible with sandbox
+RESTRICT="test"
+
+# It turns out we need Clang too
+RDEPEND="
+	${PYTHON_DEPS}
+	>=sys-devel/llvm-10:=
+	|| (
+		sys-devel/clang:10
+		sys-devel/clang:11
+		sys-devel/clang:12
+	)
+	!app-forensics/afl
+"
+DEPEND="
+	${RDEPEND}
+	test? ( dev-util/cmocka )
+"
+
+QA_PREBUILT="/usr/share/afl/testcases/others/elf/small_exec.elf"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-3.0c-LDFLAGS.patch"
+	"${FILESDIR}/${PN}-3.13c-CFLAGS.patch"
+)
+
+llvm_check_deps() {
+	has_version -b "sys-devel/clang:${LLVM_SLOT}" && \
+		has_version -b "sys-devel/llvm:${LLVM_SLOT}"
+}
+
+pkg_setup() {
+	llvm_pkg_setup
+	python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	default
+
+	sed -i -e 's/-O3 -fno-unroll-loops//' GNUmakefile || die
+}
+
+src_compile() {
+	emake \
+		CC="$(tc-getCC)" \
+		CXX="$(tc-getCXX)" \
+		CFLAGS_FLTO="" \
+		PREFIX="${EPREFIX}/usr" \
+		HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
+		DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \
+		MAN_PATH="${EPREFIX}/usr/share/man/man8"
+}
+
+src_test() {
+	emake \
+		CC="$(tc-getCC)" \
+		CXX="$(tc-getCXX)"
+}
+
+src_install() {
+	emake \
+		CC="$(tc-getCC)" \
+		CXX="$(tc-getCXX)" \
+		DESTDIR="${D}" \
+		PREFIX="${EPREFIX}/usr" \
+		HELPER_PATH="${EPREFIX}/usr/$(get_libdir)/afl" \
+		DOC_PATH="${EPREFIX}/usr/share/doc/${PF}" \
+		MAN_PATH="${EPREFIX}/usr/share/man/man8" \
+		install
+}
+
+pkg_postinst() {
+	# TODO: Any others?
+	optfeature "fuzzing with AFL_USE_ASAN" sys-libs/compiler-rt-sanitizers[asan]
+	optfeature "fuzzing with AFL_USE_MSAN" sys-libs/compiler-rt-sanitizers[msan]
+}


             reply	other threads:[~2021-07-22  3:23 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22  3:23 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-04  4:41 [gentoo-commits] repo/gentoo:master commit in: app-forensics/aflplusplus/ Arthur Zamarin
2025-07-12  6:59 Arthur Zamarin
2025-06-08 13:29 Sam James
2025-03-14  5:26 Sam James
2025-01-12 13:42 Sam James
2025-01-12 13:16 Sam James
2024-12-08  6:25 Sam James
2024-12-07  3:04 Sam James
2024-11-15  9:19 Arthur Zamarin
2024-11-14 18:41 Sam James
2024-10-05  2:23 Sam James
2024-10-05  2:23 Sam James
2024-10-03  9:35 Sam James
2024-10-03  9:35 Sam James
2023-12-15 23:03 Sam James
2023-12-15 21:05 Arthur Zamarin
2023-12-04  1:54 Sam James
2023-11-25  8:38 Sam James
2023-11-25  8:38 Sam James
2023-07-24  3:57 Sam James
2023-07-24  3:19 Sam James
2023-06-17 23:17 Sam James
2023-06-17  5:42 Sam James
2023-06-17  5:42 Sam James
2023-06-10 13:48 Sam James
2023-06-10 13:47 Sam James
2023-06-09 14:01 Arthur Zamarin
2023-06-09 13:48 Sam James
2023-04-18  5:30 Sam James
2023-03-04  9:34 Arthur Zamarin
2023-03-04  5:53 Arthur Zamarin
2023-01-27  6:23 Sam James
2023-01-10  3:36 Sam James
2023-01-09  9:45 Sam James
2022-12-10  4:52 Sam James
2022-12-10  4:52 Sam James
2022-12-10  4:51 Sam James
2022-12-10  4:48 Sam James
2022-12-10  4:48 Sam James
2022-09-22  1:09 Sam James
2022-08-31 18:29 Sam James
2022-08-31  4:39 Sam James
2022-07-20  2:45 Sam James
2022-07-19 20:26 Sam James
2022-07-04 23:24 Sam James
2022-03-06  8:00 Sam James
2022-03-02  3:42 Sam James
2021-08-24 23:26 Sam James
2021-08-24 11:40 Agostino Sarubbo
2021-07-22  4:03 Sam James
2021-07-22  2:50 Sam James
2021-07-02  5:05 Sam James
2021-04-27 18:22 Sam James
2021-04-27 18:20 Sam James
2021-04-25 22:01 Sam James
2021-04-25 22:01 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1626924189.37fef0ae5d9d02ed125a7092ab2f556b70bc16db.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox