[OE-core] [PATCH 6/6] patch.bbclass: do_patch: unset TMPDIR from environment

Burton, Ross ross.burton at intel.com
Thu Mar 13 16:54:05 UTC 2014


On 13 March 2014 16:46, Burton, Ross <ross.burton at intel.com> wrote:
> On 11 March 2014 17:08, Robert Yang <liezhi.yang at windriver.com> wrote:
>> We need unset it after we use it, otherwise it would affect the env
>> after we run "bb.build.exec_func('do_patch', d)", and will cause
>> unexpected errors.
>
> This assignment has been there since October 2012, so what are the
> problems that this causes?

So what bothers me about this (and the original patch) is that TMPDIR
has special meaning to bitbake and the conflict with patch's temporary
directory is unfortunate.  Maybe a better solution is to change
meta/lib/oe/patch.py to set TMPDIR when invoking patch so the changed
TMPDIR is constrained to the patch process and nothing else.

Ross



More information about the Openembedded-core mailing list