From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 30 18:40:10 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B8EB106566C for ; Mon, 30 Jul 2012 18:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CE4098FC12 for ; Mon, 30 Jul 2012 18:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6UIe9pL062986 for ; Mon, 30 Jul 2012 18:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6UIe9Um062985; Mon, 30 Jul 2012 18:40:09 GMT (envelope-from gnats) Resent-Date: Mon, 30 Jul 2012 18:40:09 GMT Resent-Message-Id: <201207301840.q6UIe9Um062985@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Lasiewski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94E0A106566B for ; Mon, 30 Jul 2012 18:31:09 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 65CF28FC0A for ; Mon, 30 Jul 2012 18:31:09 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q6UIV9dT047697 for ; Mon, 30 Jul 2012 18:31:09 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q6UIV9o3047696; Mon, 30 Jul 2012 18:31:09 GMT (envelope-from nobody) Message-Id: <201207301831.q6UIV9o3047696@red.freebsd.org> Date: Mon, 30 Jul 2012 18:31:09 GMT From: Stefan Lasiewski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/170280: mail/mailman reports incorrect value for MM_USERID X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2012 18:40:10 -0000 >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: