Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9297 - qmail-1.03-r8 - ebuild fails to useradd the required users
Summary: qmail-1.03-r8 - ebuild fails to useradd the required users
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-18 09:09 UTC by Markus Luisser
Modified: 2004-06-17 03:07 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 Markus Luisser 2002-10-18 09:09:35 UTC
root@box# emerge qmail

gave an fatal error - no user 'qmaild'

workaround:

add the following users manually:

root@box# useradd -g nofiles -d /var/qmail qmaild
root@box# useradd -g nofiles -d /var/qmail qmaill
root@box# useradd -g nofiles -d /var/qmail qmailp
root@box# useradd -g qmail -d /var/qmail qmailq
root@box# useradd -g qmail -d /var/qmail qmailr
root@box# useradd -g qmail -d /var/qmail qmails

three other things are required but were already present after the first try:

root@box# groupadd nofiles
groupadd: group nofiles exists

root@box# useradd -g nofiles -d /var/qmail/alias alias
useradd: user alias exists

root@box# groupadd qmail
groupadd: group qmail exists
Comment 1 SpanKY gentoo-dev 2002-10-18 18:16:09 UTC
could you post the full emerge display, ive emerge-d qmail on my machines w/out 
problems
Comment 2 Markus Luisser 2002-10-21 12:09:05 UTC
sorry - i really busy right now - probably wont have time till in two weeks - anyway - if it worked for you it will work for others too - if not theres a workaround...  when i can spare some time to reproduce the bug i'll drop you a note 
Comment 3 Jaco Kroon 2004-06-17 03:07:46 UTC
Just the last few lines since this fails quite some time in:

./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
( ./auto-uid auto_uida `head -n 1 conf-users` \
&&./auto-uid auto_uidd `head -n 2 conf-users | tail -n -1` \
&&./auto-uid auto_uidl `head -n 3 conf-users | tail -n -1` \
&&./auto-uid auto_uido `head -n 4 conf-users | tail -n -1` \
&&./auto-uid auto_uidp `head -n 5 conf-users | tail -n -1` \
&&./auto-uid auto_uidq `head -n 6 conf-users | tail -n -1` \
&&./auto-uid auto_uidr `head -n 7 conf-users | tail -n -1` \
&&./auto-uid auto_uids `head -n 8 conf-users | tail -n -1` \
&&./auto-gid auto_gidq `head -n 1 conf-groups` \
&&./auto-gid auto_gidn `head -n 2 conf-groups | tail -n -1` \
) > auto_uids.c.tmp && mv auto_uids.c.tmp auto_uids.c
fatal: unable to find user alias
make: *** [auto_uids.c] Error 111
make: *** Waiting for unfinished jobs....
rm -f tryshsgr.o tryshsgr
qmail-send.c: In function `main':
qmail-send.c:1528: warning: return type of `main' is not `int'

!!! ERROR: mail-mta/qmail-1.03-r13 failed.
!!! Function src_compile, Line 175, Exitcode 2
!!! (no error message)