All of lore.kernel.org
 help / color / mirror / Atom feed
* SSTATE MIRRORS only partly working?
@ 2011-05-11 14:11 Gary Thomas
  2011-05-17 10:56 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2011-05-11 14:11 UTC (permalink / raw)
  To: Poky Project

Trying my SSTATE_MIRROR test with a recent Poky tree, I find
that for the most part, it doesn't work as expected (at least
not as I expect).

Here's my test setup:
   * Create a complete build
     % . /local/poky/oe-init-build-env /local/build_orig
     % bitbake SOME-RECIPE
   * Use that build for the SSTATE_MIRROR
     % . /local/poky/oe-init-build-env /local/build_test
     -- edit conf/local.conf to have these lines:
         SSTATE_MIRRORS ?= "\
         file://.* file:///local/build_orig/sstate-cache/"
     % bitbake SOME-RECIPE

What I find is that this second build is rebuilding a lot of
things, most strikingly the -native packages.  Looking into
it, I see that the original build creates
   sstate-pseudo-native-i686-linux-1.0-r0-i686-2-999fef0f7f260a6672c3678a831fa36f_populate-sysroot.tgz
but when the test build runs, it's looking for
   sstate-pseudo-native-i686-linux-1.0-r0-i686-2-feb469d055bfc4f32074e7e9499eaf22_populate-sysroot.tgz

Odd, but it's not always different, for example
   sstate-perl-native-i686-linux-5.12.3-r2-i686-2-75d16ce5b7c945262d819c24f59d1c9f_populate-sysroot.tgz
is the same in both builds and is thus shared.

Note that nothing else has changed, other than the process above.
The COREBASE tree is identical/untouched.

Am I missing something here?

Thanks

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SSTATE MIRRORS only partly working?
  2011-05-11 14:11 SSTATE MIRRORS only partly working? Gary Thomas
@ 2011-05-17 10:56 ` Richard Purdie
  2011-05-17 22:52   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2011-05-17 10:56 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky Project

On Wed, 2011-05-11 at 08:11 -0600, Gary Thomas wrote:
> Trying my SSTATE_MIRROR test with a recent Poky tree, I find
> that for the most part, it doesn't work as expected (at least
> not as I expect).
> 
> Here's my test setup:
>    * Create a complete build
>      % . /local/poky/oe-init-build-env /local/build_orig
>      % bitbake SOME-RECIPE
>    * Use that build for the SSTATE_MIRROR
>      % . /local/poky/oe-init-build-env /local/build_test
>      -- edit conf/local.conf to have these lines:
>          SSTATE_MIRRORS ?= "\
>          file://.* file:///local/build_orig/sstate-cache/"
>      % bitbake SOME-RECIPE
> 
> What I find is that this second build is rebuilding a lot of
> things, most strikingly the -native packages.  Looking into
> it, I see that the original build creates
>    sstate-pseudo-native-i686-linux-1.0-r0-i686-2-999fef0f7f260a6672c3678a831fa36f_populate-sysroot.tgz
> but when the test build runs, it's looking for
>    sstate-pseudo-native-i686-linux-1.0-r0-i686-2-feb469d055bfc4f32074e7e9499eaf22_populate-sysroot.tgz
> 
> Odd, but it's not always different, for example
>    sstate-perl-native-i686-linux-5.12.3-r2-i686-2-75d16ce5b7c945262d819c24f59d1c9f_populate-sysroot.tgz
> is the same in both builds and is thus shared.
> 
> Note that nothing else has changed, other than the process above.
> The COREBASE tree is identical/untouched.
> 
> Am I missing something here?

Did you try comparing the siginfo/sigdata files using bitbake-diffsigs?

That should give some clues about what changed.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SSTATE MIRRORS only partly working?
  2011-05-17 10:56 ` Richard Purdie
@ 2011-05-17 22:52   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2011-05-17 22:52 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Poky Project

On 05/17/2011 04:56 AM, Richard Purdie wrote:
> On Wed, 2011-05-11 at 08:11 -0600, Gary Thomas wrote:
>> Trying my SSTATE_MIRROR test with a recent Poky tree, I find
>> that for the most part, it doesn't work as expected (at least
>> not as I expect).
>>
>> Here's my test setup:
>>     * Create a complete build
>>       % . /local/poky/oe-init-build-env /local/build_orig
>>       % bitbake SOME-RECIPE
>>     * Use that build for the SSTATE_MIRROR
>>       % . /local/poky/oe-init-build-env /local/build_test
>>       -- edit conf/local.conf to have these lines:
>>           SSTATE_MIRRORS ?= "\
>>           file://.* file:///local/build_orig/sstate-cache/"
>>       % bitbake SOME-RECIPE
>>
>> What I find is that this second build is rebuilding a lot of
>> things, most strikingly the -native packages.  Looking into
>> it, I see that the original build creates
>>     sstate-pseudo-native-i686-linux-1.0-r0-i686-2-999fef0f7f260a6672c3678a831fa36f_populate-sysroot.tgz
>> but when the test build runs, it's looking for
>>     sstate-pseudo-native-i686-linux-1.0-r0-i686-2-feb469d055bfc4f32074e7e9499eaf22_populate-sysroot.tgz
>>
>> Odd, but it's not always different, for example
>>     sstate-perl-native-i686-linux-5.12.3-r2-i686-2-75d16ce5b7c945262d819c24f59d1c9f_populate-sysroot.tgz
>> is the same in both builds and is thus shared.
>>
>> Note that nothing else has changed, other than the process above.
>> The COREBASE tree is identical/untouched.
>>
>> Am I missing something here?
>
> Did you try comparing the siginfo/sigdata files using bitbake-diffsigs?
>
> That should give some clues about what changed.

Odd - I just tried this again after merging up to 31a763d7bd97f57586c6bb9ec223bfa7e333d21c
I can't make it happen again - SSTATE_MIRROR is working as I expect.  Sadly, I don't have
the trees from the previous attempt around any more to diagnose.

My previous merge of f285547a3820f394f7dd9dd974f876353d4ddc6c is when this happened.

I don't see anything obvious that changed between these two revisions that
might affect this, but I'm happy it seems to be working again.  If it breaks
again, I'll know what to look at.

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-17 22:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-11 14:11 SSTATE MIRRORS only partly working? Gary Thomas
2011-05-17 10:56 ` Richard Purdie
2011-05-17 22:52   ` Gary Thomas

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.