flex appears to have moved to github. 2.6.1 contains a fix that should resolve bug #568184.
version bumped: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b3a407b661078b2b116ee79dc7a10486d16f3a4