<?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>867</bug_id>
          
          <creation_ts>2011-03-14 18:44:46 +0000</creation_ts>
          <short_desc>If Bump connman&apos;s PR and rebuild live image,  poky-image-minimal-initramfs&apos;s do_rootfs will sometimes fail</short_desc>
          <delta_ts>2011-03-14 19:34:31 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>797</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dongxiao Xu">dongxiao.xu</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12588</commentid>
    <comment_count>0</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-03-14 18:44:46 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12590</commentid>
    <comment_count>1</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-03-14 18:46:57 +0000</bug_when>
    <thetext>Commit 43a2d098008eee711399b8d64594d84ae034b9bf.

1) Run &quot;bitbake poky-image-sato-live&quot;. Build the full sato-live image until it is successful.
2) Bump connman&apos;s PR (or some other sato recipe&apos;s PR).
3) Rebuild the sato live image by &quot;bitbake poky-image-sato-live&quot;.

Sometimes, I meet build error like the following, however it does not happen every time.

-------------------------------------------------------
Generating solve db for /distro/dongxiao/build-qemux86/tmp/deploy/rpm/qemux86...
   total:               1      0.000000 MB      1.424841 secs
   fingerprint:      1020      0.006796 MB      0.033057 secs
   install:           340      0.000000 MB      0.371773 secs
   dbadd:             340      0.000000 MB      0.362746 secs
   dbget:            2196      0.000000 MB      0.004278 secs
   dbput:             340      1.504908 MB      0.308950 secs
   readhdr:          3401      2.961280 MB      0.005603 secs
   hdrload:          1700      4.389932 MB      0.007001 secs
   hdrget:          57535      0.000000 MB      0.043769 secs
Generating solve db for /distro/dongxiao/build-qemux86/tmp/deploy/rpm/i586...
error: open of /distro/dongxiao/build-qemux86/tmp/deploy/rpm/i586/connman-plugin-ethernet-0.65-r4.i586.rpm failed: No such file or directory
rpm.real: ./rpmio_internal.h:190: fdGetOPath: Assertion `fd != ((void *)0) &amp;&amp; fd-&gt;magic == 0x04463138&apos; failed.
/distro/dongxiao/build-qemux86/tmp/work/qemux86-poky-linux/poky-image-minimal-initramfs-1.0-r0/temp/run.do_rootfs.468: line 375:   669 Aborted                 rpm --dbpath /var/lib/rpm --define=&apos;_openall_before_chroot 1&apos; -i --replacepkgs --replacefiles --oldpackage -D &quot;_dbpath $pkgdir/solvedb&quot; --justdb --noaid --nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos --stats --ignoresize --nosignature --nodigest -D &quot;__dbi_txn create nofsync&quot; $pkgdir/solvedb/manifest
ERROR: Function &apos;do_rootfs&apos; failed (see /distro/dongxiao/build-qemux86/tmp/work/qemux86-poky-linux/poky-image-minimal-initramfs-1.0-r0/temp/log.do_rootfs.468 for further information)
-------------------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12591</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-03-14 18:49:37 +0000</bug_when>
    <thetext>The root cause for this issue should be, poky-image-minimal-initramfs&apos;s do_rootfs task doesn&apos;t have dependency on connman, thus their tasks will be run simultaneously. Poky-image-minimal-initramfs&apos;s do_rootfs will call &quot;rootfs_rpm_do_rootfs&quot; --&gt; &quot;package_update_index_rpm&quot;, where it will update all the packages depsolver db in ${DEPLOY_DIR_RPM}.

When the package_update_index_rpm function is handling connman&apos;s rpm package, and at the same time, connman is removing old rpm and trying to generate a new one (e.x, from r4 to r5), then the build error will occur, saying that it could not find r4 version of connman-plugin-ethernet...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12594</commentid>
    <comment_count>3</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-03-14 19:34:31 +0000</bug_when>
    <thetext>This bug is a duplication of BUG 797

*** This bug has been marked as a duplicate of bug 797 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>