Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790836 - dev-util/perf links with libbfd from binutils-libs even with USE="-demangle"
Summary: dev-util/perf links with libbfd from binutils-libs even with USE="-demangle"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-18 17:00 UTC by Manoj Gupta
Modified: 2021-11-10 12:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj Gupta 2021-05-18 17:00:32 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2021-11-10 12:31:40 UTC
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(-)