libffi-3.0.8 currently comes with this warning: * Please unset USE flag libffi in sys-devel/gcc. There is no * file collision but your package might link to wrong library. It might be nice if it'd only show that if I actually have libffi set (for gcc). Reproducible: Always
There's no sane way to depend upon sys-devel/gcc USE flags because it's slotted and you can switch between with gcc-config.
`has_version sys-devel/gcc[libffi]` would return true only if any version of sys-devel/gcc is installed with "libffi" USE flag enabled.
+ 28 Sep 2009; Samuli Suominen <ssuominen@gentoo.org> libffi-3.0.8.ebuild: + Use has_version to print warning only if sys-devel/gcc is built with USE + libffi. This can be made a blocking atom once sparc is done with + gnustep-base/gnustep-base and old versions are removed from tree. Thanks + to Dirkjan Ochtman and Arfrever Frehtes Taifersar Arahesis in bug 286733. Half-fix. Leaving this open, waiting for sparc.
base/package.use.mask has sys-devel/gcc[libffi] masked now, and the useless warning is gone.