Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111549 - emerge util-linux fails if tty isn't a group.
Summary: emerge util-linux fails if tty isn't a group.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-05 05:25 UTC by Harold Anderson
Modified: 2005-11-06 17:42 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 Harold Anderson 2005-11-05 05:25:44 UTC
I was trying to create a chrooted 32-bit environment on my AMD64,
and when I emerged -au world, the package util-linux failed to compile,
with the message

chgrp tty /var/tmp/portage/util-linux-2.12r/image//usr/bin/write
chgrp: invalid group name `tty'
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/var/tmp/portage/util-linux-2.12r/work/util-linux-2.12r/misc-utils'
make: *** [install] Error 1

!!! ERROR: sys-apps/util-linux-2.12r failed.
!!! Function src_install, Line 140, Exitcode 2




Reproducible: Always
Steps to Reproduce:
1.http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
2. emerge -au world
3.

Actual Results:  
I added tty as a group in the chrooted environment and
continued with the instructions.  The installation completed perfectly.

Expected Results:  
Perhaps it should have created the tty group.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6,
glibc-2.3.4.20041102-r1, 2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS=""
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode
foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde
libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype
truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-11-05 12:31:37 UTC
tty comes from baselayout
Comment 2 Harold Anderson 2005-11-05 15:01:23 UTC
(In reply to comment #0)

Well, then the instructions in the documentation should be changed
to require emerge baselayout first.  Actually the group "root" was
missing, too, (for debianutils) and I had to add that.
Comment 3 SpanKY gentoo-dev 2005-11-05 15:07:09 UTC
the docs say download a stage3 32bit tarball

every tarball has baselayout which means it has a group file with tty
Comment 4 Harold Anderson 2005-11-05 15:24:09 UTC
Well, something is fishy.  I downloaded the 32-bit stage3 tarball exactly as 
described in the docs.  Is it possible to check and make sure
that the (stage 3, 32-bit athlon-xp 2005.1) tarball contains a version of
baselayout that has tty (and root, too)?
Comment 5 SpanKY gentoo-dev 2005-11-05 15:31:24 UTC
the stage tarball mentioned in the docs:
http://distfiles.gentoo.org/releases/x86/2005.0/stages/athlon-xp/stage3-athlon-xp-2005.0.tar.bz2

contains an /etc/group file with the tty group

not sure which stage you grabbed
Comment 6 Harold Anderson 2005-11-05 16:50:25 UTC
cimarron / # ls -l stage3-athlon-xp-2005.1.tar.bz2
-rw-r--r--  1 root 0 90952725 Aug 10 14:09 stage3-athlon-xp-2005.1.tar.bz2
Comment 7 SpanKY gentoo-dev 2005-11-06 17:42:12 UTC
that tarball too has a group file with tty defined in it:
$ tar jxOf stage3-athlon-xp-2005.1.tar.bz2 ./etc/group | grep tty
tty::5: