All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: McClintock Matthew-B29882 <B29882@freescale.com>
Cc: Poky Project <poky@yoctoproject.org>
Subject: Re: sstate info
Date: Thu, 12 Jan 2012 10:06:41 -0700	[thread overview]
Message-ID: <4F0F1321.8080706@mlbassoc.com> (raw)
In-Reply-To: <CAEsOVNcLNJ2iD2YANL6z2ris6kjbQ1kbky2onu8hZrNTim=P+Q@mail.gmail.com>

On 2012-01-12 09:53, McClintock Matthew-B29882 wrote:
> First off, what version of Yocto are you running? I've made a lot of
> fixes post 1.1 release (others have made some as well ;)), and I
> believe lots of these fixes will be in the 1.1.1 release. They should
> all be in master, although I've not tested master sstate-cache in a
> while now.
>
> On Thu, Jan 12, 2012 at 9:33 AM, Gary Thomas<gary@mlbassoc.com>  wrote:
>> I worked this down to the do_patch in pseudo-native:
>> $ bitbake-diffsigs
>> p60_poky/tmp/stamps/i686-linux/pseudo-native-1.2-r4.do_patch.sigdata.6e97a41d825568db298fdc9dbaed563c
>> p60_test_pass1/tmp/stamps/i686-linux/pseudo-native-1.2-r4.do_patch.sigdata.a0d4e99625c211f4f1d793213014ac07
>> basehash changed from f5994d735ee2b909b72ee811364befc1 to
>> 564be8db4146afa5fc3579dc4c1618d3
>> Variable DATE value changed from 20120110 to 20120111
>> Hash for dependent task quilt-native_0.50.bb.do_populate_sysroot changed
>> from 9307106f3c5dfd49d953e206cb1b6da5 to 24151a370083d625b84a2afb77955021
>>
>
> This is telling you that you need to look at the quilt-native task
> now. Nothing is wrong about the signature for psuedo-natve.
>
>> Why is DATE as a variable important?
>> Why is it not ignored by this statement in ./meta/classes/patch.bbclass?
>>    patch_do_patch[vardepsexclude] = "DATE SRCDATE PATCHRESOLVE"
>
> DATE is not important, that is why we are explicitly telling the
> signature to ignore this variable.

It seems that DATE needs to be ignored other places as well.  Digging
further, I find:

$ bitbake-diffsigs p60_poky/tmp/stamps/i686-linux/quilt-native-0.50-r0.do_patch.sigdata.216968eaca38198b88a7520be02e3fca 
p60_test_pass1/tmp/stamps/i686-linux/quilt-native-0.50-r0.do_patch.sigdata.0ce7898e700de80ff8afcb0850ec4ed0
basehash changed from 4863b21531f8236184a7c3b16da3ea13 to 7ee430d1251148b2509ef2aefb6e5443
Variable DATE value changed from 20120110 to 20120111

which is why pseudo-native changed which is why almost every other
recipe signature changed :-(

>
>> As is, it seems that the sstate cache is only good on the day it
>> was made :-(
>
> This is possible, but you need to check the upstream task that
> changed. Since psuedo-native depends on quilt-native it's getting a
> new signature since something that changed in quilt-native might
> effect psuedo-native.
>
>> Here's what I tried yesterday:
>>   * Create a new build, e.g.
>>     % . /local/poky/oe-init-build-env /local/test_pass1
>>     -- adjust local.conf to match desired target
>>     % bitbake core-image-minimal
>>   * Create a new build, using the previous one's sstate-cache
>>     % . /local/poky/oe-init-build-env /local/test_pass2
>>     -- adjust local.conf to match desired target
>>     -- enable sstate cache via these lines in local.conf:
>>          SSTATE_MIRRORS ?= "\
>>          file://.* file:///local/test_pass1/sstate-cache/"
>>     % bitbake core-image-minimal
>>
>> This all went to plan - the sstate cache was reused for every package except
>> one.  For some reason, dbus-1 had to be rebuilt.
>
> This should work. I'm building on one machine and reusing on others
> including native cache. I'm doing thing on something close to what
> 1.1.1 will look like.

It did work *YESTERDAY*, but the exact same steps today do not work.
There were no changes to my poky source tree and no new packages
were downloaded.

>
>> Today, I tried it again, just like the second step.  Low and behold,
>> virtually
>> none of the sstate packages were reused :-(  This seems totally broken to me
>> and has been filed as bug #1896
>
> -M

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


  reply	other threads:[~2012-01-12 17:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12  9:57 sstate info Gary Thomas
2012-01-12 13:13 ` Martin Jansa
2012-01-12 13:31   ` Gary Thomas
2012-01-12 13:37     ` Martin Jansa
2012-01-12 15:33       ` Gary Thomas
2012-01-12 16:53         ` McClintock Matthew-B29882
2012-01-12 17:06           ` Gary Thomas [this message]
2012-01-12 17:23             ` McClintock Matthew-B29882
2012-01-12 21:07               ` Gary Thomas
2012-01-12 21:12                 ` Chris Larson
2012-01-12 21:14                   ` McClintock Matthew-B29882
2012-01-13 15:23                   ` Gary Thomas
2012-01-13 15:40                     ` McClintock Matthew-B29882
2012-01-13 16:27                       ` Richard Purdie
2012-01-13 16:53                         ` Gary Thomas
2012-01-13 17:11                           ` Gary Thomas
2012-01-14 13:30                             ` Gary Thomas
2012-01-15  0:06                               ` Richard Purdie
2012-01-13 18:09                           ` Richard Purdie
2012-01-13 18:19                             ` Gary Thomas
2012-01-13 19:36                               ` McClintock Matthew-B29882
2012-01-13 18:10                           ` Richard Purdie
2012-01-12 21:13                 ` McClintock Matthew-B29882
2012-01-12 21:28                   ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F0F1321.8080706@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=B29882@freescale.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.