<?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>5422</bug_id>
          
          <creation_ts>2013-10-30 14:41:12 +0000</creation_ts>
          <short_desc>Stamps not correctly deleted when restoring from sstate on version change</short_desc>
          <delta_ts>2014-09-19 08:41:52 +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.6</version>
          <rep_platform>All</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>andrax.g.necula</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <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>38309</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-30 14:41:12 +0000</bug_when>
    <thetext>I was switching between dora and master with the same TMPDIR, and I noticed that you can end up with a situation where the system thinks the current version of a recipe&apos;s files are in the sysroot but aren&apos;t. This is because when the version goes backwards and the sysroot files are restored from shared state the other version&apos;s do_populate_sysroot stamp doesn&apos;t appear to get deleted, so that when the version goes forward again the sysroot&apos;s contents aren&apos;t swapped over as they should be.

To reproduce this easily do the following:

(assuming you are initially on master == origin/master)
1. Clear out everything from 5.15:
  bitbake -c cleansstate file-native
2. Revert to 5.14 for the file recipe:
  git revert 8642829d9455738a36fac71c24f0d2b995d288f3
3. Clear out everything from 5.14:
  bitbake -c cleansstate file-native
4. Build 5.14:
  bitbake file-native
5. Build 5.15:
  git checkout origin/master
  bitbake file-native
4. Switch back to 1.14 (which will be restored from sstate, but leaves the stamps for 5.15&apos;s do_populate_sysroot behind):
  git checkout master
  bitbake file-native
5. Try to switch back to 5.15 (nothing will actually be done):
  git checkout origin/master
  bitbake file-native
6. Confirm version of file-native installed is actually 5.14 (replacing i686-linux with x86_64-linux on a 64-bit host):
  tmp/sysroots/i686-linux/usr/bin/file --version</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39790</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-14 10:49:14 +0000</bug_when>
    <thetext>The problem is that the sstate_clean() in sstate.bbclass can&apos;t clean the old version&apos;s stamp, for example, if we have built version 1.0, then build 2.0, it can only remove the 2.0&apos;s stamp, we can use the STAMPCLEAN which contains wildcard rather than STAMP in sstate_clean() to remove 1.0&apos;s stamp, but it will also remove version .sigdata (should not), we have to do more work on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39956</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-01-21 12:41:22 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a6c6659b3fa9de204ef3d194407c9ede71995141</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45704</commentid>
    <comment_count>3</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-19 08:41:52 +0000</bug_when>
    <thetext>Verified on master  a44006262cf3b810ec78b4cccd8076102a7a0f3e
Host Ubuntu 14.04, x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>