Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 21:16:07 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Cc:        portmgr@FreeBSD.org
Subject:   Re: docs/64342: Assumed content of PATH is not defined in Porter's Handbook
Message-ID:  <1093569367.52855.9.camel@shumai.marcuscom.com>
In-Reply-To: <AB28C23E-F77D-11D8-91E7-00039312D914@fillmore-labs.com>
References:  <AB28C23E-F77D-11D8-91E7-00039312D914@fillmore-labs.com>

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

--=-29UjSFXzPthwiOuGYymx
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2004-08-26 at 12:33, Oliver Eikemeier wrote:
> 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/X11=
R6/
> >>> 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=20
> >> 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=
.
>=20
> This will cut /usr/games from the PATH in pkg_delete(1), but the only=20
> issue I can see there is the use random(6). Ok, I'll set the PATh as=20
> mentioned above in pkg_{add,delete} and MFC the change.
>=20
> Any objections, or should I include PKG_PREFIX somehow?

Perhaps in the pkg_{add,delete} stage, the pointyhat path could be
appended to the user's current path.  Then, it would be up to them to
establish a proper path.  The fallback would be to use the path that
porters must rely on when package building.

Joe

> -Oliver
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-29UjSFXzPthwiOuGYymx
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (FreeBSD)

iD8DBQBBLotXb2iPiv4Uz4cRAjNwAKCgbxMaH2/+VdpLyvD/Qd+6C8MBWwCfRsMW
oLpVuLpMXXNAdQpaGZQJcdU=
=WMWl
-----END PGP SIGNATURE-----

--=-29UjSFXzPthwiOuGYymx--



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