Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760318 - media-video/ffmpeg-4.3.1 incorrect X86_CPU_REQUIRED_USE
Summary: media-video/ffmpeg-4.3.1 incorrect X86_CPU_REQUIRED_USE
Status: RESOLVED INVALID
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:
Depends on:
Blocks:
 
Reported: 2020-12-16 15:09 UTC by Adrien Dessemond
Modified: 2020-12-17 18:54 UTC (History)
2 users (show)

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


Attachments
X86_CPU_REQUIRED_USE fix (x86flags-fixed.patch,2.18 KB, patch)
2020-12-16 15:09 UTC, Adrien Dessemond
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrien Dessemond 2020-12-16 15:09:39 UTC
Created attachment 678493 [details, diff]
X86_CPU_REQUIRED_USE fix

X86_CPU_REQUIRED_USE is obviously not correct.

       cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
       cpu_flags_x86_fma4? ( cpu_flags_x86_avx )
       cpu_flags_x86_fma3? ( cpu_flags_x86_avx )
       cpu_flags_x86_xop?  ( cpu_flags_x86_avx )
       cpu_flags_x86_avx?  ( cpu_flags_x86_sse4_2 )
       cpu_flags_x86_aes? ( cpu_flags_x86_sse4_2 )
       cpu_flags_x86_sse4_2?  ( cpu_flags_x86_sse4_1 )
       cpu_flags_x86_sse4_1?  ( cpu_flags_x86_ssse3 )
       cpu_flags_x86_ssse3?  ( cpu_flags_x86_sse3 )
       cpu_flags_x86_sse3?  ( cpu_flags_x86_sse2 )
       cpu_flags_x86_sse2?  ( cpu_flags_x86_sse )
       cpu_flags_x86_sse?  ( cpu_flags_x86_mmxext )
       cpu_flags_x86_mmxext?  ( cpu_flags_x86_mmx )
       cpu_flags_x86_3dnowext?  ( cpu_flags_x86_3dnow )
       cpu_flags_x86_3dnow?  ( cpu_flags_x86_mmx )


Correction proposal attached as a patch.
Comment 1 Ionen Wolkens gentoo-dev 2020-12-16 16:56:58 UTC
>-	cpu_flags_x86_avx2? ( cpu_flags_x86_avx )
>+	cpu_flags_x86_avx2? ( cpu_flags_x86_avx2 )
You want to make USE require themselves?

The former map is saying that if you enable avx2, then you "also" need avx.