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

Bug 760318

Summary: media-video/ffmpeg-4.3.1 incorrect X86_CPU_REQUIRED_USE
Product: Gentoo Linux Reporter: Adrien Dessemond <admnd>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED INVALID    
Severity: normal CC: jstein, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: X86_CPU_REQUIRED_USE fix

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.