Summary: | enewuser, enewgroup etc. should not die on failure | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Roel Brook <Rainmaker526> |
Component: | Unclassified | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | Rainmaker526 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Roel Brook
2005-03-24 05:41:18 UTC
every game ebuild calls `enewuser games` ... something is wrong with your system post the output of an example emerge which fails here is the output of emerge -uv enemy-territory: YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT, YOU UNDERSTAND THIS AGREEMENT, AND UNDERSTAND THAT BY CONTINUING THE DOWNLOAD OR INSTALLATION OF THE SOFTWARE, BY LOADING OR RUNNING THE SOFTWARE, OR BY PLACING OR COPYING THE SOFTWARE ONTO YOUR COMPUTER HARD DRIVE OR RAM, YOU AGREE TO BE BOUND BY THE TERMS AND CONDITIONS OF THIS AGREEMENT. YOU FURTHER AGREE THAT, EXCEPT FOR WRITTEN SEPARATE AGREEMENTS, IF ANY, BETWEEN ID AND YOU, THIS AGREEMENT IS A COMPLETE AND EXCLUSIVE STATEMENT OF THE RIGHTS AND LIABILITIES OF THE PARTIES HERETO, RELATING TO THE SUBJECT MATTER HEREOF. THIS AGREEMENT SUPERSEDES ALL PRIOR ORAL AGREEMENTS, PROPOSALS OR UNDERSTANDINGS, AND ANY OTHER COMMUNICATIONS, IF ANY, BETWEEN ID AND YOU RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT. * Do you accept the terms of this license (RTCW-ETEULA)? [yes/no] yes * Adding group 'games' to your system ... * - Groupid: next available; requested gid taken groupadd: groep games bestaat reeds <- group already exists. I'm using shadow 4.0.7-r1 do you have a games group ? grep games /etc/groups I thought this group is created by default on a install? My server has no games installed, but DOES have a games group. But yes, I have a group called games: grep games /etc/group (~) games:x:35:roel users:x:100:games,roel hmm, what's that user "games" doing there? It's also on my server install: Goofy root # grep games /etc/group games:x:35: users:x:100:games if you do `export FEATURES=-sandbox` and try to emerge a game does it work ? OK, this is definitly a configuration issue: On my server: Goofy root # ACCEPT_KEYWORDS="~x86" emerge --nodeps enemy-territory Calculating dependencies ...done! >>> emerge (1 of 1) games-fps/enemy-territory-2.60 to / >>> md5 src_uri ;-) et-linux-2.60.x86.run * Do you accept the terms of this license (RTCW-ETEULA)? [yes/no] yes >>> Unpacking source... >>> Unpacking et-linux-2.60.x86.run to /var/tmp/portage/enemy-territory-2.60/work 30945+1 records in 264612+1 records out >>> Source unpacked. It does not even try to create a group "games". Tried to emerge it with bash (the only noticible difference between the 2 machines is bash vs zsh), but it still fails. * Adding group 'games' to your system ... * - Groupid: next available; requested gid taken groupadd: groep games bestaat reeds !!! ERROR: games-fps/enemy-territory-2.60 failed. !!! Function enewgroup, Line 883, Exitcode 9 !!! enewgroup failed !!! If you need support, post the topmost build error, NOT this status message. *edit: tried it with FEATURES -sandbox, but still the same error. Thanks for your help, I really appreciate it what does `getent group games | cut -f1 -d:` show ? OK, I have no idea what this command does, but it shows a blank line. On my server it DOES output "games". roel@Medusa$ getent group games | cut -f1 -d: (~) roel@Medusa$ getent group games (~) roel@Medusa$ ssh root@192.168.0.240 Password: Goofy root # getent group games | cut -f1 -d: games Goofy root # getent seems to be used to "Get entries from administrative database." How can I regenerate that database? the 'database' in this case is your /etc/groups file i'm going to guess that the insane amount of rice on your system has broken coreutils' cut try `CFLAGS="-pipe" emerge coreutils` and see if `getent group games | cut -f1 -d:` works again |