mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
security/afl++: Update 4.33c => 4.34c
- Remove upstreamed patches. - Enable the build on FreeBSD 13 again. - Don't bother trying to build the Frida, Unicorn and Qemu support. Changelog: https://github.com/AFLplusplus/AFLplusplus/releases/tag/v4.34c PR: 290130 MFH: 2025Q4
This commit is contained in:
committed by
Vladimir Druzenko
parent
bbffebc90d
commit
198d17ed2e
@@ -1,6 +1,6 @@
|
||||
PORTNAME= afl
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 4.33c
|
||||
DISTVERSION= 4.34c
|
||||
CATEGORIES= security
|
||||
PKGNAMESUFFIX= ++-${FLAVOR}
|
||||
|
||||
@@ -13,7 +13,6 @@ LICENSE_FILE= ${WRKSRC}/docs/COPYING
|
||||
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc powerpc64 powerpc64le riscv64
|
||||
ONLY_FOR_ARCHS_REASON= uses x86-only instrumentation or requires complete LLVM support
|
||||
BROKEN_FreeBSD_13= fails to build, error: unknown type name 'mode_t'
|
||||
|
||||
BUILD_DEPENDS= ginstall:sysutils/coreutils
|
||||
|
||||
@@ -35,6 +34,7 @@ SHEBANG_FILES= afl-cmin.py afl-persistent-config
|
||||
|
||||
MAKEFILE= GNUmakefile
|
||||
MAKE_ARGS= AFL_NO_X86=1 AFL_NO_TEST_BUILD=1 \
|
||||
NO_FRIDA=1 NO_UNICORN=1 NO_QEMU=1 \
|
||||
PREFIX="${PREFIX}/${PKGBASE}"
|
||||
.if ${FLAVOR} == llvm
|
||||
CFLAGS_riscv64= -mno-relax
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1751370940
|
||||
SHA256 (AFLplusplus-AFLplusplus-v4.33c_GH0.tar.gz) = 98903c8036282c8908b1d8cc0d60caf3ea259db4339503a76449b47acce58d1d
|
||||
SIZE (AFLplusplus-AFLplusplus-v4.33c_GH0.tar.gz) = 3058802
|
||||
TIMESTAMP = 1759308044
|
||||
SHA256 (AFLplusplus-AFLplusplus-v4.34c_GH0.tar.gz) = b500b3d8012757ba6f3435814f7f36a474a1b722efce464216c87af0c515888c
|
||||
SIZE (AFLplusplus-AFLplusplus-v4.34c_GH0.tar.gz) = 3100867
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
--- GNUmakefile.llvm.orig 2025-06-28 20:29:37 UTC
|
||||
+++ GNUmakefile.llvm
|
||||
@@ -554,6 +554,9 @@ test_build: $(PROGS)
|
||||
|
||||
.PHONY: test_build
|
||||
test_build: $(PROGS)
|
||||
+ifdef AFL_NO_TEST_BUILD
|
||||
+ @echo "[*] Not testing the CC wrapper and instrumentation output (AFL_NO_TEST_BUILD set)."
|
||||
+else
|
||||
@echo "[*] Testing the CC wrapper and instrumentation output..."
|
||||
unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO AFL_LLVM_ALLOWLIST AFL_LLVM_DENYLIST; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc $(CFLAGS) $(CPPFLAGS) ./test-instr.c -o test-instr $(LDFLAGS)
|
||||
ifdef IS_IOS
|
||||
@@ -564,6 +567,7 @@ endif
|
||||
@rm -f test-instr
|
||||
@cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation does not seem to be behaving correctly!"; echo; echo "Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue."; echo; exit 1; fi
|
||||
@echo "[+] All right, the instrumentation seems to be working!"
|
||||
+endif
|
||||
|
||||
.PHONY: all_done
|
||||
all_done: test_build
|
||||
@@ -1,11 +0,0 @@
|
||||
--- include/forkserver.h.orig 2025-06-28 20:29:37 UTC
|
||||
+++ include/forkserver.h
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
+#include <string.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
Reference in New Issue
Block a user