]> code.ossystems Code Review - openembedded-core.git/commit
archiver/package_rpm: Fix the worst src.rpm generation race
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Feb 2019 22:14:26 +0000 (22:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 22:13:08 +0000 (22:13 +0000)
commitb119872fb794a36b6eb9ef5e9c42a9c6c991e835
treedada10d0fac033049d3239e94a50f94b89db51df
parentee6a2e0ccb11e5f5267bc2e406203c78b0443415
archiver/package_rpm: Fix the worst src.rpm generation race

The package_rpm code is writing outside the task's sstate directory into
the sstate of do_deploy_archives. This is "out of spec" since if the
task is installed from sstate, the files are not restored. This means
the files may appear/disappear, things are not deterministic and there are
races.

Extend the do_package_write_rpm code to handle writing the src.rpm into
place to avoid these issues. There are other problems but this avoids races
around this file.

(From OE-Core rev: c6e151ba7fe0f14044537cf0ab2cac436f1496e3)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/archiver.bbclass
meta/classes/package_rpm.bbclass