Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-apps/util-linux-2.12r-r8 fails to build (no group "tty")
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Thu Dec 13, 2007 7:27 pm    Post subject: sys-apps/util-linux-2.12r-r8 fails to build (no group " Reply with quote

sys-apps/util-linux-2.12r-r8 fails to build because it tries to set the group on a file to "tty" -- but that group doesn't exist. I'm on amd64, if that makes any difference.

I also logged this as bug 202092 (https://bugs.gentoo.org/show_bug.cgi?id=202092), but I haven't received any response, so I thought I'd see if anyone else is having this problem.
[/quote][/code]
Code:
chgrp tty /var/tmp/portage/sys-apps/util-linux-2.12r-r8/image//usr/bin/write
chgrp: invalid group `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/util-linux-2.12r-r8/work/util-linux-2.12r/misc-utils'
make: *** [install] Error 1
 *
 * ERROR: sys-apps/util-linux-2.12r-r8 failed.
 * Call stack:
 *                    ebuild.sh, line 1701:  Called dyn_install
 *                    ebuild.sh, line 1138:  Called qa_call 'src_install'
 *                    ebuild.sh, line   44:  Called src_install
 *   util-linux-2.12r-r8.ebuild, line  170:  Called die
 * The specific snippet of code:
 *      make install DESTDIR="${D}" || die "install failed"
 *  The die message:
 *   install failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/util-linux-2.12r-r8/temp/build.log'.
 *

 * Messages for package sys-apps/util-linux-2.12r-r8:

 *
 * ERROR: sys-apps/util-linux-2.12r-r8 failed.
 * Call stack:
 *                    ebuild.sh, line 1701:  Called dyn_install
 *                    ebuild.sh, line 1138:  Called qa_call 'src_install'
 *                    ebuild.sh, line   44:  Called src_install
 *   util-linux-2.12r-r8.ebuild, line  170:  Called die
 * The specific snippet of code:
 *      make install DESTDIR="${D}" || die "install failed"
 *  The die message:
 *   install failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/util-linux-2.12r-r8/temp/build.log'.
 *
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Thu Dec 13, 2007 7:46 pm    Post subject: Reply with quote

The group does exist for me (on x86), as GID 5. Do you have something else under GID 5 in your /etc/group, or does it skip from 4 (adm for me) to 6 (disk for me)?
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Thu Dec 13, 2007 8:09 pm    Post subject: Reply with quote

mbell wrote:
The group does exist for me (on x86), as GID 5. Do you have something else under GID 5 in your /etc/group, or does it skip from 4 (adm for me) to 6 (disk for me)?


It skips it. Here's the first part of my /etc/group file:

Code:
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
adm:x:4:root,adm,daemon,austin
lp:x:7:lp
mail:x:12:mail
...
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Thu Dec 13, 2007 8:47 pm    Post subject: Reply with quote

You seem to be missing several rather basic groups that I have:
Code:

root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm,haldaemon
lp:x:7:lp
mem:x:8:
kmem:x:9:
wheel:x:10:root,mbell
floppy:x:11:root,haldaemon
mail:x:12:mail


It kind of looks like baselayout has a group file that it puts in /usr/share/baselayout/group. You may want to remerge baselayout, and then try to reconcile that with your /etc/group.

Does anyone else with more expertise have any suggestions?
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Thu Dec 13, 2007 11:09 pm    Post subject: Reply with quote

I reemerged baselayout. That by itself did nothing to /etc/group. Afterwards I compared /etc/group to /usr/share/baselayout group, and there's a ton of differences! Among other things, the /etc/group version doesn't have an "x" between the username and the group number. Do I really need to manually merge all those differences???
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Fri Dec 14, 2007 5:37 pm    Post subject: Reply with quote

Can someone else please look at this to see what can be done? I have no idea how to go about merging the two sets of groups.

The x simply indicates that the password for the group should be in the shadow file. If you don't get any other replies, try searching the net to see if there's anything useful about adding system groups. I'm guessing you can just use the groupadd command, but I'm really not sure.
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Fri Dec 14, 2007 6:36 pm    Post subject: Reply with quote

Well, some snarky dev marked my bug invalid and told me that if I deleted system groups it's my own problem to deal with. The thing is, I didn't delete the system groups.

I've been running this server as the host for a bunch of thin clients that access it via XDMCP. It's got Gnome 2.18 on it, and we've been using gnome's "Users and Groups" tool to add/remove users. On all my other gentoo servers I've always used cli tools to manage users and groups and never had any problems, so I suspect the problem lies within gnome's tool somewhere. I did have more than one instance where the users we added/removed didn't seem to work properly.

I don't know how to get the system to recreate these apparently standard groups by itself (reemerging baselayout did nothing), so I'll just try manually copying in those system groups lines from /usr/share/baselayout/group and see if that fixes things.
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Fri Dec 14, 2007 7:03 pm    Post subject: Reply with quote

Keep an eye on any references to them in /etc/shadow and /usr/share/baselayout/shadow. I also have a /etc/shadow-, which may be some sort of backup - I'm not sure. If there are entries in the baselayout version with * or ! as the password for the group, make sure to put those in your /etc/shadow.
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Fri Dec 14, 2007 7:07 pm    Post subject: Reply with quote

Well, that did the trick. Copying over the missing users (including tty) allowed sys-apps/util-linux-2.12r-r8 to emerge.

If anyone has any ideas how those groups disappeared, I'd love to know.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Fri Dec 14, 2007 7:08 pm    Post subject: Reply with quote

mbell wrote:
Keep an eye on any references to them in /etc/shadow and /usr/share/baselayout/shadow. I also have a /etc/shadow-, which may be some sort of backup - I'm not sure. If there are entries in the baselayout version with * or ! as the password for the group, make sure to put those in your /etc/shadow.


Thanks for the tip. None of the groups I copied had a ! or an *. Just x's.
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Fri Dec 14, 2007 8:46 pm    Post subject: Reply with quote

peaceful wrote:
Thanks for the tip. None of the groups I copied had a ! or an *. Just x's.


The * or ! would be in the shadow file. The x in /etc/group or /etc/passwd simply indicates that the actual encrypted (or in this case, non-existent) password is in shadow. If you're curious about all the gory details of why this happens (short answer: security), take a look at this HOWTO.
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
peaceful
Apprentice
Apprentice


Joined: 06 Jun 2003
Posts: 287
Location: Utah

PostPosted: Fri Dec 14, 2007 9:09 pm    Post subject: Reply with quote

mbell wrote:
peaceful wrote:
Thanks for the tip. None of the groups I copied had a ! or an *. Just x's.


The * or ! would be in the shadow file. The x in /etc/group or /etc/passwd simply indicates that the actual encrypted (or in this case, non-existent) password is in shadow. If you're curious about all the gory details of why this happens (short answer: security), take a look at this HOWTO.


But...groups don't even have passwords...do they? I've never heard of a password associated with a group, just with users.
Back to top
View user's profile Send private message
mbell
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 93

PostPosted: Fri Dec 14, 2007 9:22 pm    Post subject: Reply with quote

I've never heard of one either, and none of the groups actually have a password (hence the * or !). For whatever reason though, they're listed in /etc/shadow. :?

I did find a reference on the net that suggested that the group password is necessary when adding oneself to a group...
_________________
Google is your friend.
Google site:forums.gentoo.org is also your friend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum