Bug 7107 - do_package_write_deb failure because of tar complaining file changing
Summary: do_package_write_deb failure because of tar complaining file changing
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.9 M3
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-12-29 02:48 UTC by Chen Qi
Modified: 2015-07-02 02:06 UTC (History)
4 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 Chen Qi 2014-12-29 02:48:09 UTC
Error message as below:

     | dpkg-deb: building package `hostap-utils-dbg' in `/buildarea2/chenqi/poky/build-systemd/tmp/work/i586-poky-linux/hostap-utils/0.4.7-r4/deploy-debs/i586/hostap-utils-dbg_0.4.7-r4_i386.deb'.
     | tar: ./usr/src/debug/hostap-utils/0.4.7-r4/hostap-utils-0.4.7/util.c: file changed as we read it
     | dpkg-deb: error: subprocess tar -cf returned error exit status 1

It seems that this caused by sstate tasks changing hardlinks of files which dpkg-deb's subprocess tar is using them.

//Chen Qi
Comment 1 Saul Wold 2015-01-06 21:31:28 UTC
Robert, maybe Rongqing can look at this?
Comment 3 Chen Qi 2015-07-02 02:02:12 UTC
This bug has been fixed by Richard.

Module: openembedded-core.git
Branch: master
Commit: 8ee36a5f2f9367550d28bf271afc53bca6ff3d5f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8ee36a5f2f9367550d28bf271afc53bca6ff3d5f

Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Sat Mar 28 08:50:27 2015 +0000

dpkg-native: Avoid 'file changed' errors from tar

Hardlink count duing do_package_write_deb can change causing dpkg-deb
failures. We don't care about this error case so avoid it by checking
the tar exit code.

[YOCTO #7529]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>


//Chen Qi