From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1676226-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 2632D15808B
	for <garchives@archives.gentoo.org>; Sat,  5 Oct 2024 02:23:40 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E5850E29CB;
	Sat,  5 Oct 2024 02:23:38 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CBC13E29CB
	for <gentoo-commits@lists.gentoo.org>; Sat,  5 Oct 2024 02:23:38 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C100E343065
	for <gentoo-commits@lists.gentoo.org>; Sat,  5 Oct 2024 02:23:37 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2582127F6
	for <gentoo-commits@lists.gentoo.org>; Sat,  5 Oct 2024 02:23:36 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1728094131.b57ec2cd26d3ca4951dbaad3ebdb3915d0c6e78c.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/aflplusplus/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild
X-VCS-Directories: app-forensics/aflplusplus/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: b57ec2cd26d3ca4951dbaad3ebdb3915d0c6e78c
X-VCS-Branch: master
Date: Sat,  5 Oct 2024 02:23:36 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 0838be45-b743-4c53-93d9-7fb1f3656591
X-Archives-Hash: 236fc4812bcbd5107ed8c234af8c9fb5

commit:     b57ec2cd26d3ca4951dbaad3ebdb3915d0c6e78c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 02:08:42 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 02:08:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b57ec2cd

app-forensics/aflplusplus: fix man page

Closes: https://bugs.gentoo.org/940252
Thanks-to: Nick Bowler <nbowler <AT> draconx.ca>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-forensics/aflplusplus/aflplusplus-4.08c-r1.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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="" \