patch.bbclass: Use one TMPDIR per patching process
authorConstantin Musca <constantinx.musca@intel.com>
Wed, 12 Sep 2012 11:58:18 +0000 (14:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Sep 2012 08:50:24 +0000 (09:50 +0100)
commitbb597b6e77d6b5fc652327163ec09a91071eed19
treee7d2dec3dfc2d365f18f448ebdcb2640f702bc4f
parent75d469de1d93bac53d442fb8540693b9a6cd6f82
patch.bbclass: Use one TMPDIR per patching process

We must use one TMPDIR per process (/tmp/${PID}) so that the patching
processes don't generate the same temp file name (the "patch" program
uses the TMPDIR environment variable for deciding where to create the
temp files).

[YOCTO #3070]

(From OE-Core rev: 16dbf505c4fdd9fe1820d950ab05c8ea99ad7505)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/patch.bbclass