From bf6b6efa2708673ac4630fd7cd7ab51e544046f2 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 18 Jun 2023 00:16:01 +0100 Subject: app-forensics/aflplusplus: fix LLVM dep We don't want to bind to the latest one around, as we're not even using it. Signed-off-by: Sam James --- .../aflplusplus/aflplusplus-4.06c-r1.ebuild | 89 --------------------- .../aflplusplus/aflplusplus-4.06c-r2.ebuild | 89 +++++++++++++++++++++ .../aflplusplus/aflplusplus-4.07c-r1.ebuild | 92 ++++++++++++++++++++++ app-forensics/aflplusplus/aflplusplus-4.07c.ebuild | 92 ---------------------- 4 files changed, 181 insertions(+), 181 deletions(-) delete mode 100644 app-forensics/aflplusplus/aflplusplus-4.06c-r1.ebuild create mode 100644 app-forensics/aflplusplus/aflplusplus-4.06c-r2.ebuild create mode 100644 app-forensics/aflplusplus/aflplusplus-4.07c-r1.ebuild delete mode 100644 app-forensics/aflplusplus/aflplusplus-4.07c.ebuild diff --git a/app-forensics/aflplusplus/aflplusplus-4.06c-r1.ebuild b/app-forensics/aflplusplus/aflplusplus-4.06c-r1.ebuild deleted file mode 100644 index e7be31befa79..000000000000 --- a/app-forensics/aflplusplus/aflplusplus-4.06c-r1.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..11} ) -LLVM_MAX_SLOT=16 -inherit toolchain-funcs llvm optfeature python-single-r1 - -AFL_PATCHSET="${PN}-4.06c-patches" -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" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${AFL_PATCHSET}.tar.xz" -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" - -RDEPEND=" - ${PYTHON_DEPS} - >=sys-devel/llvm-14:= - || ( - sys-devel/clang:14 - sys-devel/clang:15 - sys-devel/clang:${LLVM_MAX_SLOT} - ) - !app-forensics/afl" -DEPEND=" - ${RDEPEND} - test? ( dev-util/cmocka ) -" - -QA_FLAGS_IGNORED="afl-gcc-cmplog-pass.so afl-gcc-cmptrs-pass.so" -QA_PREBUILT="usr/share/afl/testcases/others/elf/small_exec.elf" - -PATCHES=( - "${WORKDIR}"/${AFL_PATCHSET} -) - -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 -} - -mymake() { - emake \ - CC="$(tc-getCC)" \ - CXX="$(tc-getCXX)" \ - CFLAGS_FLTO="" \ - LLVM_CONFIG="$(get_llvm_prefix ${LLVM_MAX_SLOT})"/bin/llvm-config \ - 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_compile() { - mymake -} - -src_test() { - mymake test -} - -src_install() { - mymake DESTDIR="${D}" install - dostrip -x /usr/share/afl/testcases/ -} - -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] -} diff --git a/app-forensics/aflplusplus/aflplusplus-4.06c-r2.ebuild b/app-forensics/aflplusplus/aflplusplus-4.06c-r2.ebuild new file mode 100644 index 000000000000..8c9982b8702c --- /dev/null +++ b/app-forensics/aflplusplus/aflplusplus-4.06c-r2.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +LLVM_MAX_SLOT=16 +inherit toolchain-funcs llvm optfeature python-single-r1 + +AFL_PATCHSET="${PN}-4.06c-patches" +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" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${AFL_PATCHSET}.tar.xz" +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" + +RDEPEND=" + ${PYTHON_DEPS} +