]> code.ossystems Code Review - openembedded-core.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 12:21:46 +0000 (13:21 +0100)
commit692b2046bb60806ee6bbde6ba15bd1637b00efb1
treed4e4ae5d76e48d1803a4c21a5969802ff1f8a953
parenta10bf92516a4771e2dc49ba9f74323d7a87a1619
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.

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