From b57ec2cd26d3ca4951dbaad3ebdb3915d0c6e78c Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 5 Oct 2024 03:08:42 +0100 Subject: app-forensics/aflplusplus: fix man page Closes: https://bugs.gentoo.org/940252 Thanks-to: Nick Bowler Signed-off-by: Sam James --- app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app-forensics') diff --git a/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild b/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild index 0431fd829024..09e9bd1defec 100644 --- a/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild +++ b/app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild @@ -67,7 +67,17 @@ pkg_setup() { } mymake() { - emake \ + # afl-fuzz spews garbage to stdout if the environment contains any + # variables whose name beginning with USE_ (including the underscore), + # regardless of their value (even if empty!). The ebuild environment + # contains several such variables and the garbage that gets printed + # ends up in the generated man page. + # + # We can work around the problem by unsetting all these variables when + # running make. + local badvars=("${!USE_@}") + + env "${badvars[@]/#/-u}" emake \ CC="$(tc-getCC)" \ CXX="$(tc-getCXX)" \ CFLAGS_FLTO="" \ -- cgit v1.2.3-65-gdbad