The ebuild runs (approximately) chown games /var/lib/games/emacs in pkg_postinst, but never ensures that the games user exists, resulting in chown: invalid user `games' I suspect many users install emacs before installing any games. Reproducible: Always
This is a known issue. The proper solution would be to inherit games.eclass and call function games_pkg_setup. However, the Emacs team has discussed the issue back in 2007 and again in 2010, and we came to the conclusion that inheriting games.eclass would be overkill. Please note that update-game-score will still work, even if the games user doesn't exist. See the following comment in lib-src/Makefile.in: /* If the following commands fail, that is not a big deal. update-game-score will detect at runtime that it is not setuid, and handle things accordingly. */
I've committed updated ebuilds for emacs-common-gentoo-1.2 and emacs-24.1_rc to the Emacs overlay. Handling of the score files is moved to emacs-common-gentoo, which now also creates the user if necessary (only with USE=games though).
Fixed in emacs-24.1 and emacs-common-gentoo-1.3-r3 in Portage tree.