When I tryed to emerge kde-base/kdepim-3.5.9-r1 it failed every time. And now I had time to solve the problem. The problem is a missing dependency. You have to add sys-devel/flex to the ebuild to solve this. Reproducible: Always Steps to Reproduce: 1. Unmerge flex 2. Emerge kdepim Actual Results: It fails to emerge kdepim. Expected Results: Emerge kdepim.
flex is part of the system packages and considered to be present. Local issue, kdepim is way too high up the stack, as if there wouldn't some dependency required it.