In the current ebuild, not all CPU flags checked by the mplayer build system are set from the CPU_FLAGS_X86.
The proposed patch is to add more cpu_flags_x86_xxx in IUSE and thus in myconf in order to get optimizations more consistent with the whole system configuration.
The only drawback is that, for sse4_1 and sse4_2, there is no direct mapping between CPU_FLAGS_X86 and configure flags then those 2 cases have to be checked by specific directive.
Steps to Reproduce:
1. Emerge mplayer
2. Check the build log
avx avx2 fma3 fma4 sse3 sse4 sse42 and xop flags are not set by the ebuild but detected by the configure script.
After adding more cpu_flags_x86 to IUSE and build configuration, the only CPU flag I saw in the build not set by the ebuild is cmov.
Created attachment 844799 [details, diff]
Ebuild patch proposal for finer x86 CPU features tuning
Created attachment 844801 [details]
Output from emerge --info =media-video/mplayer-1.4-r1
Created attachment 844803 [details]
Emerge build log with patch applied
Note that the patch submitted for this issue:
has also been applied to get a successful merge
The bug has been closed via the following commit(s):
Author: Sam James <firstname.lastname@example.org>
AuthorDate: 2022-12-24 10:16:46 +0000
Commit: Sam James <email@example.com>
CommitDate: 2022-12-24 10:19:57 +0000
media-video/mplayer: add 1.5
Unclear if anything happened with security bug #858107 though.
Signed-off-by: Sam James <firstname.lastname@example.org>
media-video/mplayer/Manifest | 1 +
media-video/mplayer/mplayer-1.5.ebuild | 627 ++++++++++++++++++++++++++++++++
media-video/mplayer/mplayer-9999.ebuild | 378 ++++++++++---------
3 files changed, 829 insertions(+), 177 deletions(-)