Subject: pkg/31166: Apache2 fails to install
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dhgutteridge@sympatico.ca>
List: pkgsrc-bugs
Date: 09/05/2005 23:58:00
>Number:         31166
>Category:       pkg
>Synopsis:       Apache2 fails to install
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 05 23:58:00 +0000 2005
>Originator:     David H. Gutteridge
>Release:        2.0.2/i386
>Organization:
>Environment:
NetBSD arcusii.nonus-porta.net 2.0.2 NetBSD 2.0.2 (GENERIC.MP) #0: Wed Mar 23 09:10:48 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC.MP i386

>Description:
The Apache2 package fails to install, it encounters problems adding a
user.  The outcome is the same if the user does or does not already
exist.

User "www" exists:

===> Checking for vulnerabilities in apache-2.0.54nb5
===> Installing for apache-2.0.54nb5
Creating user: user
usage: useradd -D [-b basedir] [-e expiry] [-f inactive] [-g group]
        [-r lowuid..highuid] [-s shell] [-L class]
usage: useradd [-G group] [-b basedir] [-c comment] [-d homedir] [-e expiry]
        [-f inactive] [-g group] [-k skeletondir] [-m] [-o] [-p password]
        [-r lowuid..highuid] [-s shell]
        [-u uid] [-v] user
===========================================================================
The following users need to be created for apache-2.0.54nb5:

        user: , /nonexistent, /sbin/nologin

===========================================================================
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2

User "www" doesn't exist:

===> Checking for vulnerabilities in apache-2.0.54nb5
===> Installing for apache-2.0.54nb5
Creating user: user
usage: useradd -D [-b basedir] [-e expiry] [-f inactive] [-g group]
        [-r lowuid..highuid] [-s shell] [-L class]
usage: useradd [-G group] [-b basedir] [-c comment] [-d homedir] [-e expiry]
        [-f inactive] [-g group] [-k skeletondir] [-m] [-o] [-p password]
        [-r lowuid..highuid] [-s shell]
        [-u uid] [-v] user
Creating user: www
useradd: Warning: home directory `/nonexistent' doesn't exist, and -m was not specified
===========================================================================
The following users need to be created for apache-2.0.54nb5:

        user: , /nonexistent, /sbin/nologin

===========================================================================
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/www/apache2

>How-To-Repeat:
make
make install
>Fix:
(Haven't had time to look into it.)