[Bug 288674] security/afl++: Unbreak the build

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 05 Aug 2025 09:31:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288674

            Bug ID: 288674
           Summary: security/afl++: Unbreak the build
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fk@fabiankeil.de

Created attachment 262714
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262714&action=edit
security/afl++: Unbreak the build

After the update to 4.33c (271077d8527cf) the build failed due to
missing includes. Add a patch to add the includes.
Upstreamed in: https://github.com/AFLplusplus/AFLplusplus/pull/2509

Add another patch to skip testing if AFL_NO_TEST_BUILD is set.
Upstreamed in: https://github.com/AFLplusplus/AFLplusplus/pull/2510

Unconditionally set AFL_NO_X86=1 and set AFL_NO_TEST_BUILD=1
to allow building proper packages in jails with default settings.
Previously the packages were incomplete:

     fk@test-vm ~/git/privoxy $/usr/local/afl++-llvm/bin/afl-cc --version

     [-] PROGRAM ABORT : Unable to find 'afl-compiler-rt.o'. Please set the
AFL_PATH environment variable.
              Location : find_built_deps(), src/afl-cc.c:594

While at it:

- Take over maintainership.
- Add afl-cmin.py to the SHEBANG_FILES.

-- 
You are receiving this mail because:
You are the assignee for the bug.