Task order change was not tested properly and caused errors in
e.g do_package_write_ipk as:
| Subprocess output:tar: ./usr/lib/libreoffice/program/.debug/liblnglo.so: file changed as we read it
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
First results from scratch showed that previous commit did not work and set
copy_to_target_sysroot at a very early position beginning.
With default PACKAGE_CLASSES = "package_ipk" (no package_deb / package_rpm)
task order looks as expected without bb.utils.contains-dance
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Task copy_to_target_sysroot creates hardlinks and can run in parallell to e.g
package_ipk which causes sporadic failures as:
| Subprocess output:tar: ./usr/bin/.debug/guitarix: file changed as we read it
| ERROR: Logfile of failure stored in: <...>/temp/log.do_package_write_ipk.25489
There is not much we can do about host's tar
(see https://lists.gnu.org/archive/html/bug-tar/2007-08/msg00013.html) so
ensure copy_to_target_sysroot does not run parallel to package_deb /
package_ipk / package_rpm (depending on what PACKAGE_CLASSES sets).
Fixes [1]
[1] https://github.com/schnitzeltony/meta-mortsgna/issues/12
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>