Bug 1762 - change directory of poky can invalidate sstate-cache
Summary: change directory of poky can invalidate sstate-cache
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-11-08 15:31 UTC by Matthew McClintock
Modified: 2011-11-18 06:39 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew McClintock 2011-11-08 15:31:32 UTC
All,

I'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'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'm building as well and not
just strace.
Comment 1 Richard Purdie 2011-11-17 06:08:20 UTC
I'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't use them. I'd therefore like to understand whats different after we filter that stuff out of the equation...
Comment 2 Matthew McClintock 2011-11-17 21:11:03 UTC
(In reply to comment #1)
> I'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't use them. I'd therefore like to understand whats
> 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'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
Comment 3 Richard Purdie 2011-11-18 06:39:08 UTC
The diffisgs issue is resolved in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=cb66ebaa8bd950c9a58558ee4d74e8f4f6777403 so I'm going to class this bug as fixed.