Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 114818

Summary: mini-qmail does not add its users
Product: Gentoo Linux Reporter: rhumbliner <mailbin>
Component: New packagesAssignee: Qmail Team (OBSOLETE) <qmail-bugs+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 398135    
Attachments: changes to mini-qmail ebuild
patch to qmail's Makefile
fake auto_uids.c file

Description rhumbliner 2005-12-07 17:10:58 UTC
the mini-qmail install assumes the qmail accounts: qmaild, qmaill, etc;
pre-exist.  it aborts if they do not.  but you don't need qmail entries in
/etc/group or /etc/passwd. mini-qmail runs with the same privileges as the user
sending mail; it doesn't have any of its own files.

Reproducible: Always
Steps to Reproduce:
emerge mini-qmail
Actual Results:  
./compile auto_break.c
fatal: unable to find user qmaill
make: *** [auto_uids.c] Error 111
make: *** Waiting for unfinished jobs....

!!! ERROR: mail-mta/mini-qmail-1.05 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
do not rely upon any pre-existing accounts.
Comment 1 SpanKY gentoo-dev 2005-12-07 18:56:48 UTC
fixed in cvs
Comment 2 rhumbliner 2006-01-18 12:18:39 UTC
Created attachment 77454 [details, diff]
changes to mini-qmail ebuild

this patch changes the ebuild so that it doesn't create the user id's and group id's needed for the qmail install.  instead the ebuild patches qmail's Makefile so that it substitutes a dummy auto_uids.c which exists just for the install process.  it is not used by any of the processes which make up the mini-qmail run-time, per http://cr.yp.to/qmail/mini.html
Comment 3 rhumbliner 2006-01-18 12:20:27 UTC
Created attachment 77455 [details, diff]
patch to qmail's Makefile

this patch substitutes a fake auto_uids.c file for the one auto generated by the Makefile.
Comment 4 rhumbliner 2006-01-18 12:22:16 UTC
Created attachment 77456 [details]
fake auto_uids.c file

this is the fake auto_uids.c file.  this file is needed by several processes in the qmail runtime, but not by any processes in the mini-qmail runtime.
Comment 5 rhumbliner 2006-01-18 12:24:36 UTC
when i first posted this bug, i was hoping the fix would include not creating the extra users and groups needed by qmail.  the attachments added to this bug provide a method for accomplishing this.
Comment 6 SpanKY gentoo-dev 2006-01-26 19:41:59 UTC
seems i was trying way too hard to build mini-qmail

could you sync up and try 1.05-r1 for me please
Comment 7 rhumbliner 2006-01-30 20:36:43 UTC
(In reply to comment #6)
> seems i was trying way too hard to build mini-qmail
> 
> could you sync up and try 1.05-r1 for me please
> 

Very cool.  Yes, this works exactly as I had hoped.

Thanks.