First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 36215
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Rainer Größlinger <scandium@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: N Addy <quantumdigit@att.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 36215 depends on: 25313 Show dependency tree
Bug 36215 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-12-20 22:03 0000
<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 From Rainer Größlinger 2003-12-22 09:12:41 0000 -------
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 From Daniel Robbins (RETIRED) 2003-12-26 11:42:12 0000 -------
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 From Rainer Größlinger 2003-12-26 13:15:32 0000 -------
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 From N Addy 2003-12-26 19:16:59 0000 -------
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 From SpanKY 2003-12-28 10:30:26 0000 -------
*** Bug 36653 has been marked as a duplicate of this bug. ***

------- Comment #6 From Rainer Größlinger 2004-02-15 05:40:09 0000 -------
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

First Last Prev Next    No search results available      Search page      Enter new bug