diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /app-forensics | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/Manifest.gz | bin | 4707 -> 4707 bytes | |||
-rw-r--r-- | app-forensics/aflplusplus/Manifest | 4 | ||||
-rw-r--r-- | app-forensics/aflplusplus/aflplusplus-3.13c-r1.ebuild | 2 | ||||
-rw-r--r-- | app-forensics/aflplusplus/aflplusplus-3.14c-r1.ebuild | 99 |
4 files changed, 103 insertions, 2 deletions
diff --git a/app-forensics/Manifest.gz b/app-forensics/Manifest.gz Binary files differindex ff0a5b204330..13ef0a6b7997 100644 --- a/app-forensics/Manifest.gz +++ b/app-forensics/Manifest.gz diff --git a/app-forensics/aflplusplus/Manifest b/app-forensics/aflplusplus/Manifest index 265b626bd158..f9b82e0a4fa9 100644 --- a/app-forensics/aflplusplus/Manifest +++ b/app-forensics/aflplusplus/Manifest @@ -3,6 +3,8 @@ AUX aflplusplus-3.0c-LDFLAGS.patch 445 BLAKE2B cfb1282dcba575ed96f355bf6695896f6 AUX aflplusplus-3.13c-CFLAGS.patch 5732 BLAKE2B 95e4a581fa9e0e9cf8c321968c8f4774c5012f4d5fe0f1d940b0bab3aa15803758c343af0969a5f7fd05b3454845ff306325cd29821f04d630c4bb42f4bfa2c9 SHA512 3e35b5068d64429a435f58e03fc557056ee9b0f73d4c407e34abef083b7c4f47b072f84d1e2abe99bf49449a5f6f46217b158893b84d635bed025979edb8c5e0 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 EBUILD aflplusplus-3.12c-r3.ebuild 2139 BLAKE2B 34c4f1e336fccd6ba6d6e91b679043430fa50bace3be3e7e7d6fed9ee3444aa0769997ffc535dad7d6246560912ffab03344d38c8e88726b667b23554e612dea SHA512 b937af8dd761839bbeda049f4b5d8000a50658232a57a4eef2e601e0ed5748e7e5367eccf29c6daa74b259419d6144ed1dd6186a18492be503693683f6e6e472 -EBUILD aflplusplus-3.13c-r1.ebuild 2140 BLAKE2B 60073940627a3db7799581db9ad14fecbce22aaae5bb89426a4f11ff99fc8c4975fadb5ad92b6096f0f512a6737fadb1c04a1670e56e4dcab3c544b113ac12e0 SHA512 91d48b3277791848d91398fd4a24021af7f3faf2e7910e937080b00ff330fc03e0b4460834283dd7b2988e1a6dc5ab3a93a7ddb960f994679c0740141473d300 +EBUILD aflplusplus-3.13c-r1.ebuild 2139 BLAKE2B 8045bb4aec74858a6786a1129c9b7774590b1a26040ac3cd1a3f2de166df17fa32540018ec46bcf9b7c31602b7c4e21729d29cf18242a2a087cfc713ad36a63d SHA512 9bc0ecf56b00cdb23ed87c655844e089c5ba1ee1c12efbc0b07b7cfb7f9aef45b0665581807420ff1e9d2d201d1ab32c90229a9b566acc560cbc7614d2115f4a +EBUILD aflplusplus-3.14c-r1.ebuild 2162 BLAKE2B 11113de7c3f6d4c5107ccaf1895d0699f290bc86c388dadeb0d0dc383d082658b012006b04a2529d749a0c5fd64174a345dc79df43b4d93db4abb1c53f1fb5c9 SHA512 c59d194efa1910f8d1b7bef62cc565d8360b41c5480fe9f4e1fd384eb250dc6b16deb5a45239dfb3f2e359d89fdaacd7cf5d1a9ddbcb143d5b425f3fb9c426e6 MISC metadata.xml 327 BLAKE2B 25fff77dada492976b7c412879dadd7df2a78a05cfa2be3ef00557f84c3f6679dd2977c8ea11573ffda864b0c88da327ea912a358a2b44b4186c71c6ed7086e8 SHA512 b2c58af252bae6ba27785f059c67edbd7c05469965e67c5e6f053bd385463b5f02b2ee65df3174fda85dfcf741add66bbc33836b3d8edb76acec91727f008746 diff --git a/app-forensics/aflplusplus/aflplusplus-3.13c-r1.ebuild b/app-forensics/aflplusplus/aflplusplus-3.13c-r1.ebuild index 9fafa1fa35e0..fb2fb3450833 100644 --- a/app-forensics/aflplusplus/aflplusplus-3.13c-r1.ebuild +++ b/app-forensics/aflplusplus/aflplusplus-3.13c-r1.ebuild @@ -14,7 +14,7 @@ S="${WORKDIR}/AFLplusplus-${PV}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm64" +KEYWORDS="amd64 ~arm64" IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" diff --git a/app-forensics/aflplusplus/aflplusplus-3.14c-r1.ebuild b/app-forensics/aflplusplus/aflplusplus-3.14c-r1.ebuild new file mode 100644 index 000000000000..066cbd062f6a --- /dev/null +++ b/app-forensics/aflplusplus/aflplusplus-3.14c-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8,9,10} ) +LLVM_MAX_SLOT=13 +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 + sys-devel/clang:13 + ) + !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] +} |