From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: sscache signature?
Date: Thu, 11 Aug 2011 17:00:22 +0100 [thread overview]
Message-ID: <1313078422.14274.442.camel@rex> (raw)
In-Reply-To: <0C67B7D5-11F2-45F4-AD8F-F43F508CD784@kernel.crashing.org>
On Wed, 2011-08-10 at 12:51 -0500, Kumar Gala wrote:
> the yocto wiki references mentions a bitbake-diffsigs
>
> https://wiki.yoctoproject.org/wiki/Enable_sstate_cache
>
> but not seeing that. How can one compare signature or try and figure
> out why a cache item isn't being reused between cfgs.
What I've been referring to is a process something along the lines of:
$ bitbake bash -e | grep BASEHASH | sort > hashbefore
$ vi ../scripts/oe-buildenv-internal
[Add SOCKS5_USER and SOCKS5_DOMAIN to BB_ENV_EXTRAWHITE]
$ export SOCKS5_USER=bar
$ cd ..; source oe-init-build-env b2
$ bitbake bash -e | grep BASEHASH | sort > hashafter
$ diff -u hashbefore hashafter
[no differences]
$ vi conf/local.conf
[ Add "export SOCKS5_USER" to file ]
$ bitbake bash -e | grep BASEHASH | sort > hashafter2
$ diff -u hashbefore hashafter2
[ Find hashes now changed (which is bad and what we need to avoid ]
$ vi ./meta/conf/bitbake.conf
[ Add SOCKS5_USER to BB_HASHBASE_WHIETLIST ]
$ bitbake bash -e | grep BASEHASH | sort > hashafter3
$ diff -u hashbefore hashafter2
[no differences again - good]
which proves the addition of the variable didn't result in changes
sstate checksums. The bitbake-diffsigs command can be used to find out
what caused changes but in this case we have a pretty good idea so I
didn't use it.
As mentioned on irc, adding it to BB_ENV_EXTRAWHITE isn't an issue but
since its not exported into any of bitbake's execution environment, I'm
at a loss to understand how this helps you. If you do also export the
value to include it in bitbake's execution environment it does change
the hash which is what I worried about and it needs excluding as
documented above.
Some further investigation is needed to figure out how BB_ENV_EXTRAWHITE
is enough as it shouldn't be.
Cheers,
Richard
prev parent reply other threads:[~2011-08-11 16:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 17:51 sscache signature? Kumar Gala
2011-08-10 18:00 ` Chris Larson
2011-08-10 18:07 ` Joshua Lock
2011-08-11 16:00 ` Richard Purdie [this message]
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=1313078422.14274.442.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox