Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43278 - enewuser function in openldap-2.1.26.ebuild is broken
Summary: enewuser function in openldap-2.1.26.ebuild is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 43326 43499 43637 44324 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-29 05:20 UTC by Martin Hierling
Modified: 2004-03-12 14:37 UTC (History)
5 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 Martin Hierling 2004-02-29 05:20:28 UTC
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"
Comment 1 Martin Hierling 2004-02-29 05:27:16 UTC
i said ldap user is present, that is a typo, it should be: ldap group is present.
Comment 2 Ernst Herzberg 2004-02-29 13:56:23 UTC
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
Comment 3 Ernst Herzberg 2004-02-29 14:05:19 UTC
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.
Comment 4 SpanKY gentoo-dev 2004-02-29 14:34:44 UTC
fixed in cvs
Comment 5 SpanKY gentoo-dev 2004-02-29 15:01:47 UTC
*** Bug 43326 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2004-03-01 08:28:51 UTC
*** Bug 43379 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2004-03-02 12:33:42 UTC
*** Bug 43499 has been marked as a duplicate of this bug. ***
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2004-03-03 13:18:37 UTC
*** Bug 43637 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2004-03-12 14:37:53 UTC
*** Bug 44324 has been marked as a duplicate of this bug. ***