<?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>870</bug_id>
          
          <creation_ts>2011-03-14 22:57:05 +0000</creation_ts>
          <short_desc>do_rootfs_ipk failed for atom-pc machine</short_desc>
          <delta_ts>2011-08-24 20:47:33 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>12600</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-14 22:57:05 +0000</bug_when>
    <thetext>Setting the MACHINE to atom-pc, with the PACKAGE_CLASSES=&quot;package_ipk&quot;, &quot;bitbake poky-image-minimal&quot; failed in do_rootfs_ipk:

......
Configuring task-poky-boot.
Configuring run-postinsts.
Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (oe-i586 file:/home/lulianhao/poky-build/1.0/build/tmp/deploy/ipk/i586). Skipping.
+ &apos;[&apos; &apos;!&apos; -z &apos;&apos; &apos;]&apos;
+ export D=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ D=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ export OFFLINE_ROOT=/home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/rootfs
+ echo &apos;&apos;

+ do_exit=1
+ for keyword_die in &apos;&quot;exit 1&quot;&apos; &apos;&quot;Collected errors&quot;&apos; ERR Fail
+ for keyword_die in &apos;&quot;exit 1&quot;&apos; &apos;&quot;Collected errors&quot;&apos; ERR Fail
+ test 1 = 1
+ exit 1
ERROR: Function &apos;do_rootfs&apos; failed (see /home/lulianhao/poky-build/1.0/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-1.0-r0/temp/log.do_rootfs.29743 for further information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12601</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-14 23:03:59 +0000</bug_when>
    <thetext>This is because there are duplicate values in PACKAGE_ARCHS for atom-pc machine settings, which results the log_check for ipk failed.

We need to remove those duplicate values when generating the opkg configuration files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12659</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-15 18:37:11 +0000</bug_when>
    <thetext>According to RP, the PACKAGE_ARCHS should never have duplicates in it. He committed a quick workaround http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bd161f759461d4fc96ad78cb60861e6ea34f0529 into master. And proposed a better one on the OE Core list as it needs discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12867</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-03-21 07:23:13 +0000</bug_when>
    <thetext>Between Joshua Lock&apos;s commits and mine, we have the duplicates removed and also sanity tests in place to detect duplicates, hence resolving this as fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15728</commentid>
    <comment_count>4</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-08-24 20:47:33 +0000</bug_when>
    <thetext>The following patch is used to check the duplication of PACKAGE_ARCHS.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e235357841311a4681c747cebcc5e51940aec606</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>