I also faced a more specific error with <code>sys-libs/cracklib</code> which was that
it was not explicitly set in <codelcode>REQUIRED_USE</code> that <code>python</code> useflags
required <code>python_targets_python2_7</code>. So it failed at build time. The fix was just
to remove <code>python</code> useflag.