Subject: building mailman via pkg_comp
To: None <pkgsrc-users@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: pkgsrc-users
Date: 10/16/2007 00:23:34
When I build mailman via 'pkg_comp auto', I get the following message:

Traceback (most recent call last):
  File "/usr/pkg/lib/mailman/bin/check_perms", line 50, in ?
    MAILMAN_GID = grp.getgrnam(MAILMAN_GROUP)[2]
KeyError: 'getgrnam(): name not found: '

followed by 11 errors and 2180 warnings about group-writable files.  I
assume it's because the desired group entry can't be created.  It does
exist in the build system's real root.  I have

MAILMAN_MAILGROUP=mailman

in /etc/mk.conf; I assume that that's being carried through to the
chroot environment because I have

EXTRAMK=/etc/mk.conf

set in my pkg_comp .conf file.

How can I fix this?


		--Steve Bellovin, http://www.cs.columbia.edu/~smb