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

Bug 614324

Summary: app-portage/cpuid2cpuflags: please print directly usable output
Product: Gentoo Linux Reporter: Tomáš Mózes <hydrapolic>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=613678
Whiteboard:
Package list:
Runtime testing required: ---

Description Tomáš Mózes 2017-03-31 05:48:42 UTC
The program used to print directly usable lines like:
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

Now the output (version 2+) is:
CPU_FLAGS_X86: aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3

If you want to automate your Gentoo installation, you'll probably send the output of cpuid2cpuflags to /etc/portage/make.conf, but now you actually cannot :(
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-31 06:35:30 UTC
echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags
Comment 2 Tomáš Mózes 2017-03-31 10:30:54 UTC
Thanks, that seems like a good way. However, the new ebuild could print a warning about this change :)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-31 20:31:54 UTC
Yeah, documenting that makes sense.
Comment 4 Michael 'veremitz' Everitt 2017-03-31 21:34:40 UTC
See also: https://github.com/mgorny/cpuid2cpuflags/pull/5
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-01 06:32:29 UTC
v4 includes a README + conditional postinst message.
Comment 6 Tomáš Mózes 2017-04-01 12:27:15 UTC
Thanks