* [PATCH] sstate: Fix rebuilds when changing layer config
@ 2021-08-01 12:48 Richard Purdie
2021-08-02 13:30 ` [OE-core] " Michael Opdenacker
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2021-08-01 12:48 UTC (permalink / raw)
To: openembedded-core
When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
hashes were changing when they should not. This was caused by wider use
of setscene_depvalid which means the dependency on the variable was seen
when it was previously not.
Exclude the variable since this should be be included in the hashes.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/sstate.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index f6710fc2835..554e401ee25 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1018,6 +1018,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
bb.parse.siggen.checkhashes(sq_data, missed, found, d)
return found
+setscene_depvalid[vardepsexclude] = "SSTATE_EXCLUDEDEPS_SYSROOT"
BB_SETSCENE_DEPVALID = "setscene_depvalid"
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] sstate: Fix rebuilds when changing layer config
2021-08-01 12:48 [PATCH] sstate: Fix rebuilds when changing layer config Richard Purdie
@ 2021-08-02 13:30 ` Michael Opdenacker
2021-08-02 14:36 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Michael Opdenacker @ 2021-08-02 13:30 UTC (permalink / raw)
To: Richard Purdie, openembedded-core; +Cc: YP docs mailing list
Hi Richard,
On 8/1/21 2:48 PM, Richard Purdie wrote:
> When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
> hashes were changing when they should not. This was caused by wider use
> of setscene_depvalid which means the dependency on the variable was seen
> when it was previously not.
>
> Exclude the variable since this should be be included in the hashes.
I realize that this variable isn't documented in any of the manuals.
Should be document it?
Thank you in advance for your advice.
Cheers,
Michael.
--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] sstate: Fix rebuilds when changing layer config
2021-08-02 13:30 ` [OE-core] " Michael Opdenacker
@ 2021-08-02 14:36 ` Richard Purdie
2021-08-02 16:55 ` Michael Opdenacker
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2021-08-02 14:36 UTC (permalink / raw)
To: Michael Opdenacker, openembedded-core; +Cc: YP docs mailing list
On Mon, 2021-08-02 at 15:30 +0200, Michael Opdenacker wrote:
> Hi Richard,
>
> On 8/1/21 2:48 PM, Richard Purdie wrote:
> > When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
> > hashes were changing when they should not. This was caused by wider use
> > of setscene_depvalid which means the dependency on the variable was seen
> > when it was previously not.
> >
> > Exclude the variable since this should be be included in the hashes.
>
> I realize that this variable isn't documented in any of the manuals.
> Should be document it?
> Thank you in advance for your advice.
Yes, this should be on the list of things to document.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] sstate: Fix rebuilds when changing layer config
2021-08-02 14:36 ` Richard Purdie
@ 2021-08-02 16:55 ` Michael Opdenacker
0 siblings, 0 replies; 4+ messages in thread
From: Michael Opdenacker @ 2021-08-02 16:55 UTC (permalink / raw)
To: Richard Purdie, openembedded-core; +Cc: YP docs mailing list
On 8/2/21 4:36 PM, Richard Purdie wrote:
> On Mon, 2021-08-02 at 15:30 +0200, Michael Opdenacker wrote:
>> Hi Richard,
>>
>> On 8/1/21 2:48 PM, Richard Purdie wrote:
>>> When adding a layer which changed SSTATE_EXCLUDEDEPS_SYSROOT, the state
>>> hashes were changing when they should not. This was caused by wider use
>>> of setscene_depvalid which means the dependency on the variable was seen
>>> when it was previously not.
>>>
>>> Exclude the variable since this should be be included in the hashes.
>> I realize that this variable isn't documented in any of the manuals.
>> Should be document it?
>> Thank you in advance for your advice.
> Yes, this should be on the list of things to document.
Thanks for confirming. I opened a new bug for this, now that we have a
special category for undocumented variables:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14496
Cheers
Michael.
--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-02 16:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-01 12:48 [PATCH] sstate: Fix rebuilds when changing layer config Richard Purdie
2021-08-02 13:30 ` [OE-core] " Michael Opdenacker
2021-08-02 14:36 ` Richard Purdie
2021-08-02 16:55 ` Michael Opdenacker
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.