Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368647 - app-editors/emacs-23.3 tries to chown files to games without creating the user
Summary: app-editors/emacs-23.3 tries to chown files to games without creating the user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 03:30 UTC by William Throwe
Modified: 2012-06-10 21:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Throwe 2011-05-25 03:30:57 UTC
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
Comment 1 Ulrich Müller gentoo-dev 2011-05-25 13:32:27 UTC
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. */
Comment 2 Ulrich Müller gentoo-dev 2012-06-06 22:24:36 UTC
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).
Comment 3 Ulrich Müller gentoo-dev 2012-06-10 21:54:28 UTC
Fixed in emacs-24.1 and emacs-common-gentoo-1.3-r3 in Portage tree.