Bug 7107

Summary: do_package_write_deb failure because of tar complaining file changing
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.8   
Target Milestone: 1.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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