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

Bug 772887

Summary: media-video/ffmpeg - fix LTO detection in ebuild
Product: Gentoo Linux Reporter: Paolo Pedroni <paolo.pedroni>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kajanos, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/19645
https://bugs.gentoo.org/show_bug.cgi?id=566282
https://bugs.gentoo.org/show_bug.cgi?id=772854
Whiteboard:
Package list:
Runtime testing required: ---

Description Paolo Pedroni 2021-02-25 11:18:30 UTC
LTO detection in the ffmpeg ebuild only checks for the presence of the -flto* flag in *FLAGS to enable LTO in the build system, but if someone has '-flto -fno-lto' as can happen if LTO is enabled globally but disabled for specific packages with files in ${PORTDIR}/env and ${PORTDIR}/package.env the check does not 'see' the '-fno-lto' and enables LTO anyway.

In comment https://bugs.gentoo.org/566282#c6 there is a fix for this condition, which has not, so far, been implemented.

I will add a github PR soon.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-01 22:31:26 UTC

*** This bug has been marked as a duplicate of bug 631352 ***