<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7107</bug_id>
          
          <creation_ts>2014-12-29 02:48:09 +0000</creation_ts>
          <short_desc>do_package_write_deb failure because of tar complaining file changing</short_desc>
          <delta_ts>2015-07-02 02:06:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47697</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-12-29 02:48:09 +0000</bug_when>
    <thetext>Error message as below:

     | dpkg-deb: building package `hostap-utils-dbg&apos; 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&apos;.
     | 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&apos;s subprocess tar is using them.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47757</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-01-06 21:31:28 +0000</bug_when>
    <thetext>Robert, maybe Rongqing can look at this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48176</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-01-22 09:14:12 +0000</bug_when>
    <thetext>Problem reproduced on autobuilder.

https://autobuilder.yoctoproject.org/main/builders/nightly-multilib/builds/167/steps/BuildImages_2/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52086</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-07-02 02:02:12 +0000</bug_when>
    <thetext>This bug has been fixed by Richard.

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

Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Sat Mar 28 08:50:27 2015 +0000

dpkg-native: Avoid &apos;file changed&apos; errors from tar

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

[YOCTO #7529]

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;


//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52087</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-07-02 02:06:29 +0000</bug_when>
    <thetext>Fixed by RP:

http://cgit.openembedded.org/openembedded-core/commit/?id=8ee36a5f2f9367550d28bf271afc53bca6ff3d5f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>