diff options
author | Sam James <sam@gentoo.org> | 2023-12-04 01:53:23 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-04 01:53:32 +0000 |
commit | 7edacb6ebeecfe51254eb8659a5a923799085742 (patch) | |
tree | 2e3d3392b914136e96458252df361cf1fb723b12 /app-forensics | |
parent | net-im/slack: drop 4.35.121 (diff) | |
download | gentoo-7edacb6ebeecfe51254eb8659a5a923799085742.tar.gz gentoo-7edacb6ebeecfe51254eb8659a5a923799085742.tar.bz2 gentoo-7edacb6ebeecfe51254eb8659a5a923799085742.zip |
app-forensics/aflplusplus: allow LLVM 16 again
Reported by toralf/dwfreed. Should really consider some helper for this in llvm.eclass
I think.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild (renamed from app-forensics/aflplusplus/aflplusplus-4.08c.ebuild) | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app-forensics/aflplusplus/aflplusplus-4.08c.ebuild b/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild index 51cd62ea7a29..2451f727113e 100644 --- a/app-forensics/aflplusplus/aflplusplus-4.08c.ebuild +++ b/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild @@ -5,6 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) LLVM_MAX_SLOT=17 +LLVM_MIN_SLOT=14 inherit toolchain-funcs llvm optfeature python-single-r1 AFL_PATCHSET="${PN}-4.07c-patches" @@ -24,14 +25,20 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" # This isn't compatible with sandbox RESTRICT="test" -RDEPEND=" - ${PYTHON_DEPS} +LLVM_DEPS=" <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= || ( - sys-devel/clang:14 - sys-devel/clang:15 - sys-devel/clang:${LLVM_MAX_SLOT} - ) +" +# We go downwards as Portage prefers left-most in || ( .. ) +for ((i=${LLVM_MAX_SLOT}; i >= ${LLVM_MIN_SLOT}; i--)) ; do + LLVM_DEPS+=" sys-devel/clang:${i}" +done +LLVM_DEPS+=" )" +unset i + +RDEPEND=" + ${PYTHON_DEPS} + ${LLVM_DEPS} !app-forensics/afl " DEPEND=" |