<?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>3521</bug_id>
          
          <creation_ts>2012-12-01 07:53:49 +0000</creation_ts>
          <short_desc>Warnings from sstate overwriting files in sysroot</short_desc>
          <delta_ts>2012-12-17 17:41:15 +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>configuration</component>
          <version>1.4</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.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <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>27868</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-01 07:53:49 +0000</bug_when>
    <thetext>I think I&apos;ve found easy reproducible way to get those warning we discussed in:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-October/031184.html

WARNING: The recipe foo is trying to install files into a shared area when those files already exist. Those files and their manifest location are:

One easy way to reproduce this, is to change PACKAGE_ARCH in foo recipe, I guess it is because foo with ARCH_NEW does not find foo stamps from ARCH_OLD, so it does not clean sysroot before installing new version.

In this case I was changing fsodeviced recipe from TUNE_PKGARCH to MACHINE_ARCH
manifest-cortexa8-vfp-neon-fsodeviced.populate-sysroot.om-gta04:/OE/shr-core/tmp-eglibc/sysroots/om-gta04/usr/lib/cornucopia/modules/fsodevice/kernel_idle.so
manifest-om_gta04-fsodeviced.populate-sysroot.om-gta04:/OE/shr-core/tmp-eglibc/sysroots/om-gta04/usr/lib/cornucopia/modules/fsodevice/kernel_idle.so

stamps/cortexa8-vfp-neon-oe-linux-gnueabi/fsodeviced/2_0.12.99+gitr52+54c6ef77dddb8efbf48b7b93c8f817c366890e4b-r4.0.do_populate_sysroot.om-gta04
stamps/cortexa8-vfp-neon-oe-linux-gnueabi/fsodeviced/2_0.12.99+gitr52+54c6ef77dddb8efbf48b7b93c8f817c366890e4b-r4.0.do_populate_sysroot.sigdata.8d264c6323799ab7c02e1b8babd72dc4
stamps/om_gta04-oe-linux-gnueabi/fsodeviced/2_0.12.99+gitr52+54c6ef77dddb8efbf48b7b93c8f817c366890e4b-r4.0.do_populate_sysroot.om-gta04
stamps/om_gta04-oe-linux-gnueabi/fsodeviced/2_0.12.99+gitr52+54c6ef77dddb8efbf48b7b93c8f817c366890e4b-r4.0.do_populate_sysroot.sigdata.2174631ad8a9a816e11c4f3a669fec3e

BTW: I never seen &quot;Matched in&quot; message showing something useful but in this case it should show something like &quot;Matched in the same recipe but with different architecture cortexa8-vfp-neon-oe-linux-gnueabi&quot;. And if this warning became fatal later it should be non-fatal for cases of different architecture.

Or is there &quot;safe&quot; way to clean sysroot properly? I always find hard to &quot;cleanup after recipe removed from metadata. E.g. after gcc-cross-intermediate removal, the files stay in sysroot forever and you cannot even -c cleansstate them, because for that you need old recipe (checkout older metadata).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28301</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-12-14 15:40:33 +0000</bug_when>
    <thetext>Patches out for review on OE-Core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28315</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-12-16 21:03:05 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Patches out for review on OE-Core.

It seems to be better (well I got a lot of warnings from old manifests, I&apos;ll retest in another build from scratch).

Is that last bb.error correct or is it left over from debugging?
http://patchwork.openembedded.org/patch/41025/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28332</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-12-17 17:41:15 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Patches out for review on OE-Core.
&gt; 
&gt; It seems to be better (well I got a lot of warnings from old manifests, I&apos;ll
&gt; retest in another build from scratch).
&gt; 
&gt; Is that last bb.error correct or is it left over from debugging?
&gt; http://patchwork.openembedded.org/patch/41025/

Left over debugging. I spotted and removed it in the code that was in master-next. I&apos;ve just merged this patch into master:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1e548a7fc735e55d411e3c529e1fcf8ded626156</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>