From owner-freebsd-doc@FreeBSD.ORG Thu Aug 26 16:33:24 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75FE016A4CE; Thu, 26 Aug 2004 16:33:24 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1305943D45; Thu, 26 Aug 2004 16:33:24 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-10.local ([172.16.0.10]) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41 (FreeBSD)) id 1C0NBh-0003HE-7x; Thu, 26 Aug 2004 18:33:23 +0200 Date: Thu, 26 Aug 2004 18:33:32 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Joe Marcus Clarke From: Oliver Eikemeier In-Reply-To: <1093536783.724.0.camel@gyros> Message-Id: Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: freebsd-doc@FreeBSD.org cc: Mark Linimon cc: portmgr@FreeBSD.org Subject: Re: docs/64342: Assumed content of PATH is not defined in Porter's Handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 16:33:24 -0000 Joe Marcus Clarke wrote: > On Thu, 2004-08-26 at 03:13, Oliver Eikemeier wrote: >> Joe Marcus Clarke wrote: >> >>> I think it's fair to assume that PATH will be (as it pertains to >>> @[un]exec commands, post-install commands, etc.): >>> >>> /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/ >>> bin >>> >>> This is what it is set to during package builds on pointyhat, and is a >>> reasonable default. >> >> PATH is a strange beast, since pkg_add(1) sets it to >> >> /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin >> >> for pkg_req, pkg_install and @exec. pkg_delete(1) just inherits the >> PATH >> given in the environment. > > I think this should be changed to use the PATH on pointyhat. I don't > see any reason why /usr/local/sbin:/usr/local/bin shouldn't be in there. This will cut /usr/games from the PATH in pkg_delete(1), but the only issue I can see there is the use random(6). Ok, I'll set the PATh as mentioned above in pkg_{add,delete} and MFC the change. Any objections, or should I include PKG_PREFIX somehow? -Oliver