Sunday, December 02, 2018

Re: bsd.port.mk.5: `env -i' -> ${SETENV}

Klemens Nanni writes:
> Sync the manual with actual bsd.port.mk which consistently uses SETENV.

I sent a diff like this to espie in 2012. He said that it was not ok,
since bsd.port.mk(5) says never to override SETENV:

SETENV Normally set to /usr/bin/env -i. Prepended to every command
invocation that requires a clean environment. Do not override.

Given that, perhaps it would be better to simply remove the SETENV
variable completely and just use env -i. If that's not possible, IMO
we should not document SETENV.

--
Anthony J. Bentley

No comments:

Post a Comment