]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package: Fix race between do_package and do_packagedata
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Aug 2019 20:55:16 +0000 (21:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Aug 2019 14:29:02 +0000 (15:29 +0100)
commit95c604953d054a688d3a30b303c9025094e65f84
treef68b61fa441f657d4c0ea0687172d23cf153446a
parentd67fbf68f6923431e6c825cc92e0059d7dc901fb
package: Fix race between do_package and do_packagedata

do_package has PKGDESTWORK as a cleandir and do_packagedata has it as an sstate-input
dir. This means do_package wipes out the directory at both do_package and do_package_setscene.

do_package_setscene and do_packagedata_setscene can run in parallel when installing from
sstate which means they can wipe out parts of each other leading to interesting
build failures.

We therefore have to add in a hardlink copy so that the directories can work independently
of each other.

(From OE-Core rev: 692b2046bb60806ee6bbde6ba15bd1637b00efb1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass