dev-util/perf only a conditional dependency on binutils-libs. demangle? ( sys-libs/binutils-libs:= ) However, perf will link with libbfd from sys-libs/binutils-libs:= even when building with USE="-demangle". This causes the dependency to be not registered even when there is one. lddtree /usr/bin/perf perf => /usr/bin/perf (interpreter => /lib64/ld-linux-x86-64.so.2) <snip> libbfd-2.34.0.gentoo-sys-libs-binutils-libs-st-def.so => /usr/lib64/libbfd-2.34.0.gentoo-sys-libs-binutils-libs-st-def.so libopcodes-2.34.0.gentoo-sys-libs-binutils-libs-st-def.so => /usr/lib64/libopcodes-2.34.0.gentoo-sys-libs-binutils-libs-st-def.so To repro: emerge sys-libs/binutils-libs USE="-demangle" dev-util/perf Auto-detecting system features: ... libbfd: [ ^[[32mon^[[m ] Also see: https://chromium-review.googlesource.com/c/chromiumos/overlays/chromiumos-overlay/+/2903569
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5ad8fb6c6ac1f39b95c936e5824d792e5104df commit 3a5ad8fb6c6ac1f39b95c936e5824d792e5104df Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2021-11-10 12:19:05 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2021-11-10 12:31:05 +0000 dev-util/perf: fix bugs 727096, 790836, 795147, and 821175 Closes: https://bugs.gentoo.org/727096 Closes: https://bugs.gentoo.org/790836 Closes: https://bugs.gentoo.org/795147 Closes: https://bugs.gentoo.org/821175 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org> .../perf/{perf-5.12.ebuild => perf-5.12-r1.ebuild} | 28 ++++++++++++++-------- 1 file changed, 18 insertions(+), 10 deletions(-)