sys-libs/gpm is missing a slot dependency on sys-libs/ncurses, so since the creation of the slot for binary packages that need libncurses.so.5, portage will attempt to pull in that slot, since it's got the best visible version in it. It should probably also have a slot operator dependency, because libgpm links against libncurses.
Author: Lars Wendler <polynomial-c@gentoo.org> Date: Fri Oct 7 09:33:33 2016 sys-libs/gpm: Added sub-slot dependency on sys-libs/ncurses (bug #596378). Bumped ebuild to EAPI-5. Package-Manager: portage-2.3.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>