Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2012 18:31:09 GMT
From:      Stefan Lasiewski <slasiewski@lbl.gov>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170280: mail/mailman reports incorrect value for MM_USERID
Message-ID:  <201207301831.q6UIV9o3047696@red.freebsd.org>
Resent-Message-ID: <201207301840.q6UIe9Um062985@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170280
>Category:       ports
>Synopsis:       mail/mailman reports incorrect value for MM_USERID
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 30 18:40:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Lasiewski
>Release:        9.0-RELEASE-p3
>Organization:
Lawrence Berkeley National Lab
>Environment:
FreeBSD host.nersc.gov 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
I am building mail/mailman from ports. I need to override the default User ID and Group ID for the Mailman user.

mail/mailman automatically assigns MM_USERID=91 to the mailman user, and then uses the value of MM_USERID to set the value for MM_GROUPID. 

    [root@host /usr/ports/mail/mailman]# grep USERID Makefile 
    MM_USERID?=     91
    MM_GROUPID?=    ${MM_USERID}
            @${ECHO} "MM_USERID=91          The user ID of the Mailman user."
            @${ECHO} "MM_GROUPID=MM_USERID  The group ID for the Mailman user."


My environment already has a user with the UID=91 and GID=91. I need to set a different UID and GID for the Mailman user.

However, when I use standard methods to override the value in the Makefile [1], make appears to ignore this value and reports the wrong value. This is misleading and should be fixed:

    [root@host /usr/ports/mail/mailman]# make MM_USERID=501 
    ===>  License GPLv2 accepted by the user
    ===>  Found saved configuration for mailman-2.1.14_6
    
    You may change the following build options:
    MM_USERNAME=mailman     The username of the Mailman user.
    MM_USERID=91            The user ID of the Mailman user.
    MM_GROUPNAME=mailman    The group to which the Mailman user will belong.
    MM_GROUPID=MM_USERID    The group ID for the Mailman user.
    MM_DIR=mailman          Mailman will be installed in /usr/local/mailman.
    CGI_GID=www             The group name or id under which your web server executes CGI scripts.
    IMGDIR=www/icons        Icon images will be installed in /usr/local/www/icons.

I also tried adding `MM_USERID=501` to /etc/make.conf, as suggested at [2], but make still says `MM_USERID=91`. 

[1] http://stackoverflow.com/questions/2826029/passing-additional-variables-from-command-line-to-make
[2] http://www.freebsdwiki.net/index.php/Etc/make.conf

>How-To-Repeat:
1. cd /usr/ports/mail/mailman
2. Try to change the UID for 'mailman' using `make MM_USERID=501`
3. Look in the log and notice now Make still reports 'MM_USERID=91'. 
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207301831.q6UIV9o3047696>