Bug 5652

Summary: package_tar sometimes gives errors during do_package_write_tar
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Low CC: jessica.zhang, meta.mr.watcher, meta.watcher
Version: 1.6   
Target Milestone: 1.6   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2013-12-10 12:35:57 UTC
If you set PACKAGE_CLASSES = "package_ipk package_tar" then you'll get a number of errors during a build:

ERROR: Creation of tar /media/large/tmp/deploy/tar/libc6-dbg-2.18-r0.tar.gz failed.
ERROR: Creation of tar /media/large/tmp/deploy/tar/eglibc-pic-2.18-r0.tar.gz failed.
ERROR: Creation of tar /media/large/tmp/deploy/tar/libx11-dbg-1.6.2-r0.tar.gz failed.
ERROR: Creation of tar /media/large/tmp/deploy/tar/libx11-staticdev-1.6.2-r0.tar.gz failed.
...

If you look at the log you can see what is happening:

tar: .: file changed as we read it

I think this is probably related to do_package_write_ipk and do_package_write_tar running concurrently, and temporary files being written to and then removed from PKGDESTWORK by the former during its operation. Assuming that's the case, we just need to ignore those files as we have for the other package backends.