Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614324 - app-portage/cpuid2cpuflags: please print directly usable output
Summary: app-portage/cpuid2cpuflags: please print directly usable output
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-31 05:48 UTC by Tomáš Mózes
Modified: 2017-04-01 12:27 UTC (History)
0 users

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 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