openldap-2.1.26.ebuild is breaking with an error when it is a fresh install. as workaround i added the ldap user by hand. Reproducible: Always Steps to Reproduce: 1. fresh stage 3 2. emerge openldap 3. Actual Results: >>> Completed installing into /var/tmp/portage/openldap-2.1.26/image/ >>> Merging net-nds/openldap-2.1.26 to / * Adding user 'ldap' to your system ... * - Userid: 439 * - Shell: /dev/null * - Home: /usr/lib/openldap * You must add ldap to the system first !!! ERROR: net-nds/openldap-2.1.26 failed. !!! Function enewuser, Line 575, Exitcode 0 !!! ldap is not a valid GID !!! FAILED preinst: 1 Expected Results: >>> net-nds/openldap-2.1.26 merged. >>> Recording net-nds/openldap in "world" favorites file... Ldap user is present: # getent group ldap ldap:x:439: Gentoo Base System version 1.4.3.8p1 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-gentoo-r7) ================================================================= System uname: 2.4.22-gentoo-r7 i686 Mobile AMD Athlon(tm) XP-M 1800+ Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync16.de.gentoo.org/gentoo-portage" USE="apache2 apm arts avi berkdb crypt cups encode foomaticdb gd-external gdbm g if gpm imlib jpeg ldap libg++ libwww mad maildir mikmod motif mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang snm p spell ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"
i said ldap user is present, that is a typo, it should be: ldap group is present.
Same here, fresh install, but cvs: emerge cvs [...] >>> Install cvs-1.11.11 into /var/tmp/portage/cvs-1.11.11/image/ category dev-util * Adding user 'cvs' to your system ... * - Userid: 101 * - Shell: /bin/false * - Home: /var/cvsroot * You must add cvs to the system first !!! ERROR: dev-util/cvs-1.11.11 failed. !!! Function enewuser, Line 575, Exitcode 0 !!! cvs is not a valid GID useradd -u 101 -s /bin/false -d /var/cvsroot -g cvs cvs fixes that. Look like that "enewuser" is broken, it does not add the cvs user to /etc/passwd
PS: enewgroup cvs adds to /etc/group: "cvs:x:407:", all other entries does not have the 'x' in the password-field. But that seems not the problem: Even with :: as password enewuser fails.
fixed in cvs
*** Bug 43326 has been marked as a duplicate of this bug. ***
*** Bug 43379 has been marked as a duplicate of this bug. ***
*** Bug 43499 has been marked as a duplicate of this bug. ***
*** Bug 43637 has been marked as a duplicate of this bug. ***
*** Bug 44324 has been marked as a duplicate of this bug. ***