From horcicka@dual.ms.mff.cuni.cz  Tue Mar 16 06:25:07 2004
Return-Path: <horcicka@dual.ms.mff.cuni.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 73C7516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2004 06:25:07 -0800 (PST)
Received: from dual.ms.mff.cuni.cz (www.freebsd.cz [195.113.15.29])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A0B4343D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2004 06:25:06 -0800 (PST)
	(envelope-from horcicka@dual.ms.mff.cuni.cz)
Received: from dual.ms.mff.cuni.cz (localhost.ms.mff.cuni.cz [127.0.0.1])
	by dual.ms.mff.cuni.cz (8.12.9p2/8.12.9) with ESMTP id i2GEP5EL068493
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2004 15:25:05 +0100 (CET)
	(envelope-from horcicka@dual.ms.mff.cuni.cz)
Received: (from horcicka@localhost)
	by dual.ms.mff.cuni.cz (8.12.9p2/8.12.9/Submit) id i2GEP570068492;
	Tue, 16 Mar 2004 15:25:05 +0100 (CET)
	(envelope-from horcicka)
Message-Id: <200403161425.i2GEP570068492@dual.ms.mff.cuni.cz>
Date: Tue, 16 Mar 2004 15:25:05 +0100 (CET)
From: Martin Horcicka <horcicka@freebsd.cz>
Reply-To: Martin Horcicka <horcicka@dual.ms.mff.cuni.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Assumed content of PATH is not defined in Porter's Handbook
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64342
>Category:       docs
>Synopsis:       Assumed content of PATH is not defined in Porter's Handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 16 06:30:15 PST 2004
>Closed-Date:    Mon Dec 20 15:53:34 GMT 2004
>Last-Modified:  Mon Dec 20 15:53:34 GMT 2004
>Originator:     Martin Horcicka
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD dual.ms.mff.cuni.cz 4.9-STABLE FreeBSD 4.9-STABLE #2: Fri Dec 12 22:05:35 GMT 2003 calda@xdual.kolej.mff.cuni.cz:/usr/src/sys/compile/DUAL i386

	
>Description:

In section "5.7.2 RUN_DEPENDS" of Porter's Handbook there is mentioned usage
of "which -s" to "determine if the program exists in the user's search path".
Unfortunately I cannot see any definition of PATH that porters should assume
so that they could choose the right form of dependency - e.g.:

RUN_DEPENDS=	portupgrade:${PORTSDIR}/sysutils/portupgrade
or
RUN_DEPENDS=	${LOCALBASE}/sbin/portupgrade:${PORTSDIR}/sysutils/portupgrade

In scripts used on clusters for package building I have found the following:

/usr/ports/Tools/portbuild/scripts/dopackages:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

/usr/ports/Tools/portbuild/scripts/portbuild:
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:.

I am not very sure which of these definitions is actually used during the
building but I'd bet on that one from portbuild.

BTW, does anyone know why there is that dot (actual directory) at the end of
the list? It is not very typical. And why is /usr/local/sbin missing there?

	
>How-To-Repeat:
	
>Fix:

Port managers should be asked about the value of PATH that porters should
assume for building packages at building clusters and that information should
appear on some suitable place in Porter's Handbook.

	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Wed Mar 31 15:41:57 PST 2004 
State-Changed-Why:  
The only existing usage of a dependency on portupgrade (in pkg_cutleaves) 
seems to use the latter form. 

I will forward a copy of this on to portmgr@ for possible comments. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64342 
Responsible-Changed-From-To: freebsd-doc->portmgr 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 26 04:12:51 GMT 2004 
Responsible-Changed-Why:  
This should be discussed amongst portmgr, it seems. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64342 

From: Kris Kennaway <kris@obsecurity.org>
To: freebsd-gnats-submit@FreeBSD.org, horcicka@dual.ms.mff.cuni.cz
Cc:  
Subject: Re: docs/64342: Assumed content of PATH is not defined in Porter's
 Handbook
Date: Fri, 15 Oct 2004 19:30:57 -0400

 I removed the '.' entry some time ago, and added /usr/local/sbin in 
 response to a number of ports that started assuming it was in PATH.
 
 Kris

From: Martin Horcicka <horcicka@freebsd.cz>
To: Kris Kennaway <kris@obsecurity.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: docs/64342: Assumed content of PATH is not defined in Porter's
 Handbook
Date: Mon, 18 Oct 2004 11:04:15 +0200 (CEST)

 Hi Kris,
 
 Kris Kennaway (2004-10-15 19:30 -0400):
 
 > I removed the '.' entry some time ago, and added /usr/local/sbin in response 
 > to a number of ports that started assuming it was in PATH.
 
 that's great, thanks. Anyway, information about the content of PATH that a 
 porter can expect to be available during the "which -s" in dependency checking 
 should be noticed in Porter's Handbook.
 
 Thank you.
 
 Martin
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Mon Dec 20 15:53:26 GMT 2004 
State-Changed-Why:  
This is now properly documented. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64342 
>Unformatted:
