Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36215 - cvs-1.11.11 ebuild fails on groupadd
Summary: cvs-1.11.11 ebuild fails on groupadd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Rainer Größlinger (RETIRED)
URL:
Whiteboard:
Keywords:
: 36653 (view as bug list)
Depends on: 25313
Blocks:
  Show dependency tree
 
Reported: 2003-12-20 22:03 UTC by N Addy
Modified: 2004-02-15 05:40 UTC (History)
2 users (show)

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 N Addy 2003-12-20 22:03:57 UTC
<snip>
>>> Install cvs-1.11.11 into /var/tmp/portage/cvs-1.11.11/image/ category dev-util
 * Adding group 'cvs' to your system ...
 *  - Groupid: next available
groupadd: group cvs exists
 
!!! ERROR: dev-util/cvs-1.11.11 failed.
!!! Function enewgroup, Line 661, Exitcode 9
!!! enewgroup failed

--------------------------------------
# emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.4.23-ck1)
=================================================================
System uname: 2.4.23-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Rainer Größlinger (RETIRED) gentoo-dev 2003-12-22 09:12:41 UTC
I found an older bug about this (20490) but it was fixed long ago and doesn't seem to be the culprit here.

Can you please emerge --debug cvs and attach the output here ?
And do you by any chance know if this only fails in the cvs ebuilds or also in other ebuilds that use enewgroup ?

It seems like in the eutils.eclass at the enewgroup() function
if [ "${egroup}" == "${realgroup}" ]
returns false although it shouldn't (at least if your group file isn't b0rked ;), perhaps the debugging output gives more insight here
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2003-12-26 11:42:12 UTC
This problem seems to happen when there is a duplicate entry in /etc/group:

cvs:x:1026:
rajiv:x:1026:

I am wondering why these eclass group adding commands are violating linux convention by adding accounts for daemons in the user space (1000+)
Comment 3 Rainer Größlinger (RETIRED) gentoo-dev 2003-12-26 13:15:32 UTC
ok, we currently have two problems then:
1. it fails if there is a duplicate entry (needs to be fixed in the eclass)
2. we don't want to use fixed uids/gids in the ebuild but currently many ebuilds do so. There is currently no way to use a "dynamic" uid within a range of uids (e.g. <1000). This also needs to be fixed in the eclass and a way to specify that in the ebuild afterwards, of course.

The problem with the cvs user not being a system user was reported here: http://bugs.gentoo.org/show_bug.cgi?id=36416

But since a) we don't want to use fixed uids/gids and b) currently the eclass doesn't support "ranged" uids those bugs are still open.

Spanky is the author of the whole enewuser/enewgroup functions, so I hope he can also express his opinion on that topic :)
Comment 4 N Addy 2003-12-26 19:16:59 UTC
In my case this created a duplicate entry for uid 501.

userfoo:x:501:
cvs:x:501:

The workaround was to change the cvs group ID to 502 and re-emerge.
Comment 5 SpanKY gentoo-dev 2003-12-28 10:30:26 UTC
*** Bug 36653 has been marked as a duplicate of this bug. ***
Comment 6 Rainer Größlinger (RETIRED) gentoo-dev 2004-02-15 05:40:09 UTC
since cvs now uses a fixed uid/gid (350) to not violate conventions this bug is fixed regarding the cvs side of things, but not eclass-wise...

I'll close this bug and open a new one so it's easier for people to find a bug related to this problem.

It's bug #41657