<?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>1762</bug_id>
          
          <creation_ts>2011-11-08 15:31:32 +0000</creation_ts>
          <short_desc>change directory of poky can invalidate sstate-cache</short_desc>
          <delta_ts>2011-11-18 06:39:08 +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.1</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.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthew McClintock">msm-oss</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>msm-oss</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>17160</commentid>
    <comment_count>0</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-11-08 15:31:32 +0000</bug_when>
    <thetext>All,

I&apos;m doing some basic sstate testing as follows (note: strace is just
an example package used):

$ cd  /opt/yocto/cache-build/p1020rdb
$ source oe-init-env-build
$ bitbake strace
$ cd /opt/yocto/cache-test/p1020rdb
$ source oe-init-env-build
$ cp /opt/yocto/cache-build/p1020rdb/build/sstate-cache/* sstate-cache/
$ bitbake strace

I&apos;m left with two instances of some sstate-cache:

$ bitbake-diffsig
sstate-cache/sstate-strace-ppce5500-fsl-linux-4.5.20-r2-ppce5500-2-*_deploy-rpm.tgz.siginfo
Dependency on task
/opt/yocto/cache-test/meta/recipes-devtools/perl/perl_5.12.3.bb.do_package
was added
Dependency on task
virtual:native:/opt/yocto/cache-test/meta/recipes-devtools/pseudo/pseudo_1.1.1.bb.do_populate_sysroot
was added
Dependency on task
/opt/yocto/cache-test/meta/recipes-devtools/strace/strace_4.5.20.bb.do_package
was added
Dependency on task
virtual:native:/opt/yocto/cache-test/meta/recipes-devtools/rpm/rpm_5.4.0.bb.do_populate_sysroot
was added
Dependency on task
virtual:native:/opt/yocto/cache-build/p1020rdb/meta/recipes-devtools/pseudo/pseudo_1.1.1.bb.do_populate_sysroot
was removed
Dependency on task
/opt/yocto/cache-build/p1020rdb/meta/recipes-devtools/strace/strace_4.5.20.bb.do_package
was removed
Dependency on task
/opt/yocto/cache-build/p1020rdb/meta/recipes-devtools/perl/perl_5.12.3.bb.do_package
was removed
Dependency on task
virtual:native:/opt/yocto/cache-build/p1020rdb/meta/recipes-devtools/rpm/rpm_5.4.0.bb.do_populate_sysroot
was removed

It seems like just the task paths are changing which should not really
be an issue? Although I admit it could for some packages. This seems
to be happening for a lot of packages I&apos;m building as well and not
just strace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17240</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-17 06:08:20 +0000</bug_when>
    <thetext>I&apos;ve posted a couple of patches on bitbake-devel regarding this. The bottom line is that the path changes were cosmetic, they did show up in diffsigs but the core hashes didn&apos;t use them. I&apos;d therefore like to understand whats different after we filter that stuff out of the equation...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17256</commentid>
    <comment_count>2</comment_count>
    <who name="Matthew McClintock">msm-oss</who>
    <bug_when>2011-11-17 21:11:03 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I&apos;ve posted a couple of patches on bitbake-devel regarding this. The bottom
&gt; line is that the path changes were cosmetic, they did show up in diffsigs but
&gt; the core hashes didn&apos;t use them. I&apos;d therefore like to understand whats
&gt; different after we filter that stuff out of the equation...

I think we can mark this NOTABUG - since the hashes where wrong in my case and I&apos;ve fixed some of these through other means (by correctly adding vardepsexclude to vars). Also, your bitbake patches clear this up for future encounters.

-M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17258</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-18 06:39:08 +0000</bug_when>
    <thetext>The diffisgs issue is resolved in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cb66ebaa8bd950c9a58558ee4d74e8f4f6777403 so I&apos;m going to class this bug as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>