From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 24 03:50:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E16D816A41A for ; Thu, 24 Jan 2008 03:50:01 +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 D735413C46B for ; Thu, 24 Jan 2008 03:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0O3o1os095064 for ; Thu, 24 Jan 2008 03:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0O3o1T3095063; Thu, 24 Jan 2008 03:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 24 Jan 2008 03:50:01 GMT Resent-Message-Id: <200801240350.m0O3o1T3095063@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, Simon Shapiro Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5769916A41A for ; Thu, 24 Jan 2008 03:41:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 5C61213C44B for ; Thu, 24 Jan 2008 03:41:28 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0O3drgc085652 for ; Thu, 24 Jan 2008 03:39:53 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0O3drEd085651; Thu, 24 Jan 2008 03:39:53 GMT (envelope-from nobody) Message-Id: <200801240339.m0O3drEd085651@www.freebsd.org> Date: Thu, 24 Jan 2008 03:39:53 GMT From: Simon Shapiro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/119935: qmail port user 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: Thu, 24 Jan 2008 03:50:02 -0000 >Number: 119935 >Category: ports >Synopsis: qmail port user >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 24 03:50:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Simon Shapiro >Release: 6.2 >Organization: Niftywerks, Inc. >Environment: FreeBSD test.nwerks.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: /usr/ports/mail/qmail The new pkg-install script, which switched from csh to sh, updated two days ago, broke the port. Specifically, use of the $USER environment variable in order to determine effective uid is wrong, this variable is the login user, so if one logs in as their own user, and su's to root, the pkg-install script comes up with the login-user's userid, not root, and the port configure will fail. >How-To-Repeat: login as non-root user # su # cd /usr/ports/mail/qmail # make configure >Fix: the hack i used is to set $user env to 'root'. how stupid is that? I'm not sure why they used the method they did, i am not sure what the best practice is. it seems like there must be other ports that require root! >Release-Note: >Audit-Trail: >Unformatted: