From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andre McCurdy <armccurdy@gmail.com>,
Mounesh Sutar <mounesh.sutar@gmail.com>
Cc: bitbake-devel <bitbake-devel@lists.openembedded.org>,
Mounesh Sutar <mounesh_sutar@mentor.com>
Subject: Re: [PATCH] bitbake warning fix: No bb files matched BBFILE_PATTERN_packageName
Date: Sat, 07 Oct 2017 11:01:04 +0100 [thread overview]
Message-ID: <1507370464.20313.65.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAJ86T=XWPVANsJmSW2aPCWKQOEB_r84E-08HTirHSjxQVPxmkQ@mail.gmail.com>
On Fri, 2017-10-06 at 13:37 -0700, Andre McCurdy wrote:
> >
> > On Tue, Sep 27, 2016 at 11:54 AM, Mounesh Sutar <mounesh.sutar@gmai
> > l.com>
> > >
> > >
> > > bitbake is parsing all recipe files, against layers
> > > BBFILE_PATTERN for
> > > warning message display.
> > > In case of sublayer with lower/equal priority, then all
> > > sublayer's
> > > patterns are not being
> > > considered for pattern match. While checking recipe file against
> > > matching
> > > pattern,
> > > the first matching pattern is accepted and added to matched list,
> > > while
> > > remaning PATTERNs are
> > > not being considered. With this, the recipes are being neglected
> > > from
> > > PATTERN match.
> > > This fix let's parser run through all the layers PATTERNs and on
> > > matching
> > > added to match list.
> > >
> > > Upstream-Status: Submitted [bitbake-devel@lists.openembedded.org]
> > >
> > > Signed-off-by: Mounesh Sutar <mounesh_sutar@mentor.com>
> > > ---
> > > bitbake/lib/bb/cooker.py | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> > > index 4df8881..5fde995 100644
> > > --- a/bitbake/lib/bb/cooker.py
> > > +++ b/bitbake/lib/bb/cooker.py
> > > @@ -1705,7 +1705,7 @@ class CookerCollectFiles(object):
> > > if matched != None:
> > > if not regex in matched:
> > > matched.add(regex)
> > > - return pri
> > > + return pri
> > > return 0
> > >
> > > def get_bbfiles(self):
> > > --
> Resurrecting an old thread as it's been pointed out to me that this
> patch fixes the issue I raised a while ago on the oe-core list:
>
> http://lists.openembedded.org/pipermail/openembedded-core/2016-July
> /123466.html
>
> Are there any problems or concerns with this change?
I had to go and look at this again but yes, there are problems with the
patch:
a) If matched = None, the function never returns a priority after this
change.
b) Currently the first match is returned and also used in parallel for
the priority calculation. After the patch, the priority used would
be the last match found. The patch therefore reverses priority
assignments for layers.
There is a definite problem here but the patch simply moves the
goalposts, it doesn't actually fix it. It breaks the current behaviour
too.
Cheers,
Richard
next prev parent reply other threads:[~2017-10-07 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-27 6:24 [PATCH] bitbake warning fix: No bb files matched BBFILE_PATTERN_packageName Mounesh Sutar
2016-12-08 6:01 ` Mounesh Sutar
2017-10-06 20:37 ` Andre McCurdy
2017-10-07 10:01 ` Richard Purdie [this message]
2017-10-12 10:13 ` Mounesh Sutar
-- strict thread matches above, loose matches on Subject: below --
2017-10-12 10:57 Mounesh Sutar
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=1507370464.20313.65.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=armccurdy@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=mounesh.sutar@gmail.com \
--cc=mounesh_sutar@mentor.com \
/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 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.