Subject: pkg/37182: postfix build failure in linux environment
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <aniou@smutek.pl>
List: pkgsrc-bugs
Date: 10/23/2007 07:25:01
>Number: 37182
>Category: pkg
>Synopsis: postfix build failure in linux environment
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Oct 23 07:25:01 +0000 2007
>Originator: Piotr Meyer
>Release:
>Organization:
>Environment:
Linux lala 2.6.18-4-686 #1 SMP Wed May 9 23:03:12 UTC 2007 i686 GNU/Linux
>Description:
mail/postfix build fails (on Debian Etch) with:
/usr/bin/install -c -o root -g root -m 444 /tmp/pkgsrc/mail/postfix/work/mailer.conf /usr/pkg/share/examples/postfix/mailer.conf
cd /tmp/pkgsrc/mail/postfix/work/postfix-2.4.6 && sh ./postfix-install -non-interactive config_directory="/usr/pkg/share/examples/p
ostfix"
./postfix-install: Error: "postdrop" needs an entry in the group file.
Remember, "postdrop" needs a dedicated group id.
*** Error code 1
>How-To-Repeat:
[go to Your linux box]
cd mail/postfix
bmake package
>Fix:
Please, apply this (or similar) patch (sed expression is tested under Debian and NetBSD 4.0-RC2)
--- Makefile.orig 2007-10-22 20:00:09.000000000 +0200
+++ Makefile 2007-10-22 20:02:20.000000000 +0200
@@ -72,7 +72,7 @@
SUBST_SED.postfix+= \
-e 's|^\(readme_directory\) =.*|\1 = ${DOCDIR}|'
SUBST_SED.postfix+= \
- -e '/^\#define DEF_SGID_GROUP[ ]/s,postdrop,maildrop,g'
+ -e '/^\#define DEF_SGID_GROUP.\+"[a-zA-Z]\+"/s,postdrop,maildrop,g'
# options.mk appends to CCARGS and AUXLIBS the options needed to build
# Postfix with support for various add-on modules.