Bug 5652 - package_tar sometimes gives errors during do_package_write_tar
Summary: package_tar sometimes gives errors during do_package_write_tar
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.6
Hardware: All Multiple
: Low minor
Target Milestone: 1.6
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-12-10 12:35 UTC by Paul Eggleton
Modified: 2014-02-25 10:27 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.