]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Wed, 6 Feb 2019 08:29:07 +0000 (08:29 +0000)
commit251ded90d4ad75da5e110e916068050f15ace07c
tree426957d956abfd8377f21b61f483156753107668
parentd1a67109ea52444d60ef6d7282929c9cd6012624
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>
meta/classes/archiver.bbclass
meta/classes/package_rpm.bbclass