[bitbake-devel] [PATCH] data: Avoid attempting to assign readonly shell vars
rich.tollerton at ni.com
Fri Dec 19 00:03:35 UTC 2014
Richard Tollerton <rich.tollerton at ni.com> writes:
> What do you think about this for a fix:
> This only appears to be an issue with code that's using bb.data as a
> part of a shell script generation, which AFAIK is only done from
> terminal.py to build a run.do_terminal. (Otherwise, nothing would be
> building right now.) What if we run e.g. `env -i run.do_terminal`
> instead of `run.do_terminal`? That will completely clear the environment
> prior to execution.
> I'll try to take a stab at implementing this.
Never mind, this was a stupid idea -- bash in POSIX mode continues to set
BASHOPTS under `env -i`, so this buys us nothing.
New idea: Terminal allows passing in an environment directly, which is
currently unused. What if we passed the execution environment in through
that, instead of encoding it into the script?
(Yes, this probably belongs in oe-core more than bitbake-devel at this
Richard Tollerton <rich.tollerton at ni.com>
More information about the bitbake-devel