Subject: pkg/34779: postfix fails to install if queue directory does not already exist
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Ben Collver <collver@peak.org>
List: pkgsrc-bugs
Date: 10/11/2006 03:35:00
>Number: 34779
>Category: pkg
>Synopsis: postfix fails to install if queue directory does not already exist
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 11 03:35:00 +0000 2006
>Originator: Ben Collver
>Release: Linux 2.6.17 i386
>Organization:
>Environment:
System: Linux sanctum.terrorpin.net 2.6.17-1.2187_FC5 #1 Mon Sep 11 01:17:06 EDT 2006 i686 i686 i386 GNU/Linux
>Description:
Postfix fails to install if the queue directory does not already exist.
>How-To-Repeat:
bash-3.1# ls /pkg
bin emul etc include info lib libdata libexec man sbin share var
bash-3.1# cd /usr/pkgsrc/mail/postfix
bash-3.1# make
...
=> Creating /usr/pkgsrc/mail/postfix/work/postfix
bash-3.1# make install
=> Required installed package digest>=20010302: digest-20060826 found
=> Checksum SHA1 OK for postfix/postfix-2.3.3.tar.gz
=> Checksum RMD160 OK for postfix/postfix-2.3.3.tar.gz
===> Installing for postfix-2.3.3
=> Generating pre-install file lists
=> Running PRE-INSTALL script actions
Creating user: postfix
useradd: cannot create directory /pkg/var/spool/postfix
===========================================================================
The following users need to be created for postfix-2.3.3:
postfix: postfix, /pkg/var/spool/postfix, /bin/false
===========================================================================
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/mail/postfix
>Fix:
After the build and before the pre-install step, pkgsrc attempts to create the postfix user. If the postfix queue directory does not already exist, then this user creation fails because it cannot make the home directory, which is the same as the queue directory.
Since this failure occurs before the pre-install phase, I am not sure what the correct fix is. It seems that it is pkgsrc that needs to be fixed, rather than the postfix package itself.