On Thu, 9 Dec 2021 at 13:12, Richard Purdie <
richard.pur...@linuxfoundation.org> wrote:

> >         # skip patches not in oe-core
> > -       if '/meta/' not in fullpath:
> > +       oecore_re = re.compile(d.getVar('BBFILE_PATTERN_core'))
> > +       match_oecore = oecore_re.search(fullpath)
> > +       if not match_oecore:
> >             continue
>
...

> I've realised the sstate tests don't pick this up since the metadata is in
> a
> fixed location for the tests so it doesn't change. As well as fixing this
> patch,
> we should revise the sstate sigs tests to test for changes in metadata path
> changing the sigs.
>

I've sent a patch that adds the test that fails with this change and passes
without it.

The next step would be to fix the above snippet. Taking the path variable
out of the signature is possible, but it would be better to do away with
file paths altogether, and start giving layers unique layer ids that can be
used in recipe context to detect which layer we're in. I can't quite figure
out how to do this - presumably, such id would be set in layer.conf, but
its scope would be limited only to recipes from that layer.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#159485): 
https://lists.openembedded.org/g/openembedded-core/message/159485
Mute This Topic: https://lists.openembedded.org/mt/87599626/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to