media-libs/opencv: disable implied CPU flags
authorȘtefan Talpalaru <stefantalpalaru@yahoo.com>
Fri, 17 Aug 2018 15:29:18 +0000 (17:29 +0200)
committerAmy Liffey <amynka@gentoo.org>
Sat, 18 Aug 2018 06:10:58 +0000 (07:10 +0100)
commitb396186669ec607562148b9f5303565a5d01aa2b
tree10164b07bcbcd96c7f36d6d5ff299f4f0870724a
parent89b808d6a9224d2cf1fc2b47776db4d22874b499
media-libs/opencv: disable implied CPU flags

The OpenCV build system tries to be helpful by enabling unrequested CPU
flags based on requested ones. Unfortunately, this breaks the build on
AMD Piledriver because FMA3 implies AVX2 which is not available on this
architecture.

Further more, these CPU flags should only be handled by the
corresponding Portage flags, instead of CMake's hard-coded automagic.
This commit fixes that by disabling the whole "implication" mechanism
for CPU flags, while also undoing the previous attempt at solving the
problem by translating those broken "implications" into REQUIRED_USE.

Authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
Bug: https://bugs.gentoo.org/656638
media-libs/opencv/opencv-3.4.1-r4.ebuild [moved from media-libs/opencv/opencv-3.4.1-r3.ebuild with 97% similarity]