]> code.ossystems Code Review - openembedded-core.git/commit
archiver: create dir 'B' explicitly while WORKDIR changed
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 16 Jun 2014 03:22:57 +0000 (23:22 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jun 2014 07:56:10 +0000 (08:56 +0100)
commit8baefb49d0bf9d3dd757d9b2359e0a9f4f33dd60
tree1434323f9394a82a835b3e91fab6c43d13844017
parent4bbfd25345858720d14c66b84f38fee42168915f
archiver: create dir 'B' explicitly while WORKDIR changed

In the do_unpack_and_patch task of archiver, the changed 'WORKDIR' also
casued 'B' changed, create dir 'B' for the possibly requiring of the
tasks which executed in do_unpack_and_patch task.

Such as cut-ecgl's do_patch required 'B' existed:
...
| cp: target 'tmp/work/x86_64-wrs-linux/cut-ecgl/1.0-r0/archiver-work
/cut-ecgl-1.0' is not a directory
...
| ERROR: Function failed: do_patch (log file is located at tmp/work/
x86_64-wrs-linux/cut-ecgl/1.0-r0/temp/do_unpack_and_patch/
log.do_unpack_and_patch.11886)
...

The 'B' dir is implicitly created at the task executing time while the
task tag 'dirs' is not assigned. In the above cut-ecgl example, the 'B'
was created at the wrl_buildlink executing time which is the prefuncs of
task do_unpack. So the following do_patch could use 'B' correctly. But
wrl_buildlink is unnecessary and not invoked in the do_unpack_and_patch
task.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass