<?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>3165</bug_id>
          
          <creation_ts>2012-09-24 22:14:15 +0000</creation_ts>
          <short_desc>kernel recipes must be cleaned to avoid a confused runtime-reverse directory</short_desc>
          <delta_ts>2012-09-27 14:41:43 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.3</version>
          <rep_platform>All</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.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>25619</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-24 22:14:15 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;sys940x&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120924&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta-yocto        = &quot;master:88429f018bbb15749f31067d5e7bf33c21b15f92&quot;
meta-sys940x      
meta-intel        = &quot;dvhart/1.3/fri2:102814d8ba2735d1e24c75b297508f863da9915e&quot;
meta              = &quot;master:88429f018bbb15749f31067d5e7bf33c21b15f92&quot;

While updating sys940x from linux-yocto 3.2 to 3.4, the core-image-sato do_rootfs task would fail with:

| ++ ls /build/poky/master/sys940x_AdM_pj/tmp/pkgdata/sys940x-poky-linux/runtime-reverse/kernel-module-ipv6
| + filename=/build/poky/master/sys940x_AdM_pj/tmp/pkgdata/sys940x-poky-linux/runtime-reverse/kernel-module-ipv6
| ++ sed -n &apos;s/^PN: //p&apos; /build/poky/master/sys940x_AdM_pj/tmp/pkgdata/sys940x-poky-linux/runtime-reverse/kernel-module-ipv6
| sed: can&apos;t read /build/poky/master/sys940x_AdM_pj/tmp/pkgdata/sys940x-poky-linux/runtime-reverse/kernel-module-ipv6: No such file or directory


In linux-yocto 3.4 CONFIG_IPV6=y, in 3.2 CONFIG_IPV6=m. The do_rootfs task found the runtime-reverse/kernel-module-ipv6 link from the previous linux-yocto-rt 3.2 build, while the 3.4 build didn&apos;t add or remove the link, but it also didn&apos;t install the target the link was pointing to in ../runtime.

The warning:
bb.warn(&quot;The recipe is trying to install files into a shared area when those files already exist. Those files are:\n   %s&quot; % &quot;\n   &quot;.join(match))

Didn&apos;t trigger. I suspect this is because it is looking for files that are being overwritten, as opposed to files which are left over from a previous kernel build and are NOT being recreated.

A clean of the previous kernel gets things building again. This can be confusing if the PREFERRED_PROVIDER has moved from the previous version to the new version as the wrong package will get cleaned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25855</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-09-27 14:41:43 +0000</bug_when>
    <thetext>There is a now a fix in master which sorted the duplicate file detection: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8593c6c1d8995f449a41a99c6e3242e2e58e79a5

In a later release we can change warn -&gt; error so rather than warning the user about the issue, we&apos;d see an error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>