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: Tue, 27 Apr 2021 18:20:42 +0000 (UTC)	[thread overview]
Message-ID: <1619547637.43ab977c0eb0504b46bf04823afb8018da15e5da.sam@gentoo> (raw)

commit:     43ab977c0eb0504b46bf04823afb8018da15e5da
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 27 18:16:02 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr 27 18:20:37 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43ab977c

app-forensics/aflplusplus: allow LLVM 12, add optfeature for sanitizers, clang dep

* Allow LLVM 12
* Add optfeature for sanitizers
* Clang is required for afl-* testing during build (and generating some
targets)

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

 ...3.12c-r1.ebuild => aflplusplus-3.12c-r2.ebuild} | 25 ++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

diff --git a/app-forensics/aflplusplus/aflplusplus-3.12c-r1.ebuild b/app-forensics/aflplusplus/aflplusplus-3.12c-r2.ebuild
similarity index 74%
rename from app-forensics/aflplusplus/aflplusplus-3.12c-r1.ebuild
rename to app-forensics/aflplusplus/aflplusplus-3.12c-r2.ebuild
index d6d3ef5f510..4a430c66773 100644
--- a/app-forensics/aflplusplus/aflplusplus-3.12c-r1.ebuild
+++ b/app-forensics/aflplusplus/aflplusplus-3.12c-r2.ebuild
@@ -4,8 +4,8 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{7,8,9} )
-LLVM_MAX_SLOT=11
-inherit toolchain-funcs llvm python-single-r1
+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"
@@ -14,7 +14,7 @@ S="${WORKDIR}/AFLplusplus-${PV}"
 
 LICENSE="Apache-2.0"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm64"
 IUSE="test"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -23,12 +23,14 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 # This isn't compatible with sandbox
 RESTRICT="test"
 
+# It turns out we need Clang too
 RDEPEND="
 	${PYTHON_DEPS}
+	>=sys-devel/llvm-10:=
 	|| (
-		sys-devel/llvm:10
-		sys-devel/llvm:11
-		sys-devel/llvm:12
+		sys-devel/clang:10
+		sys-devel/clang:11
+		sys-devel/clang:12
 	)
 "
 DEPEND="
@@ -43,6 +45,11 @@ PATCHES=(
 	"${FILESDIR}/${PN}-3.0c-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
@@ -82,3 +89,9 @@ src_install() {
 		MAN_PATH="${EPREFIX}/usr/share/man/man8" \
 		install
 }
+
+pkg_postinst() {
+	# TODO: Any otherrs?
+	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-04-27 18:20 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27 18:20 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-12 13:42 [gentoo-commits] repo/gentoo:master commit in: app-forensics/aflplusplus/ 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  3:23 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-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=1619547637.43ab977c0eb0504b46bf04823afb8018da15e5da.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