Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 727096

Summary: dev-util/perf-5.12 does not respect CFLAGS/LDFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Naohiro Aota <naota>
Status: RESOLVED FIXED    
Severity: normal CC: amadio, dlan, esigra
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 331933    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-06-04 10:28:29 UTC
This is an auto-filed bug because dev-util/perf does not respect CFLAGS/LDFLAGS.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2020-06-04 10:28:35 UTC
Created attachment 643384 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-18 06:54:25 UTC
tinderbox has reproduced this issue with version 5.12 - Updating summary.
Comment 3 Larry the Git Cow gentoo-dev 2021-11-10 12:31:41 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(-)