All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: do not hardcode oe-core path in upstream-status check
@ 2021-11-24  9:25 Alexander Kanavin
  2021-11-24  9:40 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2021-11-24  9:25 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexander Kanavin

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meta/classes/insane.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 240f3aad62..8a47da5a09 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -1176,7 +1176,9 @@ python do_qa_patch() {
        (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url)
 
        # 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
 
        content = open(fullpath, encoding='utf-8', errors='ignore').read()
-- 
2.20.1



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

* Re: [OE-core] [PATCH] insane.bbclass: do not hardcode oe-core path in upstream-status check
  2021-11-24  9:25 [PATCH] insane.bbclass: do not hardcode oe-core path in upstream-status check Alexander Kanavin
@ 2021-11-24  9:40 ` Richard Purdie
  2021-11-24 11:41   ` Alexander Kanavin
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2021-11-24  9:40 UTC (permalink / raw)
  To: Alexander Kanavin, openembedded-core; +Cc: Alexander Kanavin

On Wed, 2021-11-24 at 10:25 +0100, Alexander Kanavin wrote:
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  meta/classes/insane.bbclass | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 240f3aad62..8a47da5a09 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -1176,7 +1176,9 @@ python do_qa_patch() {
>         (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url)
>  
>         # 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
>  

Does this pass the sstate tests? I have a feeling it may encode a path into the
sstate checksums :/

Cheers,

Richard



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

* Re: [OE-core] [PATCH] insane.bbclass: do not hardcode oe-core path in upstream-status check
  2021-11-24  9:40 ` [OE-core] " Richard Purdie
@ 2021-11-24 11:41   ` Alexander Kanavin
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2021-11-24 11:41 UTC (permalink / raw)
  To: Richard Purdie; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

On Wed, 24 Nov 2021 at 10:40, Richard Purdie <
richard.purdie@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
> >
>
> Does this pass the sstate tests? I have a feeling it may encode a path
> into the
> sstate checksums :/
>

I just ran 'oe-selftest -r sstatetests' with this and they all passed.

Alex

[-- Attachment #2: Type: text/html, Size: 1070 bytes --]

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

end of thread, other threads:[~2021-11-24 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24  9:25 [PATCH] insane.bbclass: do not hardcode oe-core path in upstream-status check Alexander Kanavin
2021-11-24  9:40 ` [OE-core] " Richard Purdie
2021-11-24 11:41   ` Alexander Kanavin

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.