Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 772887 - media-video/ffmpeg - fix LTO detection in ebuild
Summary: media-video/ffmpeg - fix LTO detection in ebuild
Status: RESOLVED DUPLICATE of bug 631352
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-02-25 11:18 UTC by Paolo Pedroni
Modified: 2022-08-01 22:31 UTC (History)
2 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 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 ***