All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] lib/bb/cooker.py: fix for BBFILE_PATTERN = ""
@ 2016-10-27  8:50 Robert Yang
  2016-10-27  8:50 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2016-10-27  8:50 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit e5815d0b607ff262663864d51fe51fbb37172329:

  build-appliance-image: Update to master head revision (2016-10-26 09:33:57 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib rbt/bbfile
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/bbfile

Robert Yang (1):
  lib/bb/cooker.py: fix for BBFILE_PATTERN = ""

 bitbake/lib/bb/cooker.py | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.9.0



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

* [PATCH 1/1] lib/bb/cooker.py: fix for BBFILE_PATTERN = ""
  2016-10-27  8:50 [PATCH 0/1] lib/bb/cooker.py: fix for BBFILE_PATTERN = "" Robert Yang
@ 2016-10-27  8:50 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2016-10-27  8:50 UTC (permalink / raw)
  To: bitbake-devel

There would be error when BBFILE_PATTERN = None:
  BBFILE_PATTERN_foo not defined

This is the correct behaviour, but when the layer sets BBFILE_PATTERN = "",
it would match all the remaining recipes, and cause "No bb files matched BBFILE_PATTERN"
warnings for all the layers which behind it.

When a layer sets BBFILE_PATTERN = "" (for example, a layer only
provides git repos and source tarballs), now it means has no recipes.
This is different from BBFILE_PATTERN_IGNORE_EMPTY, the later one means
that it *may* not have any recipes.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/cooker.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 42831e2..c08af45 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1240,6 +1240,10 @@ class BBCooker:
                     parselog.error("BBFILE_PATTERN_%s not defined" % c)
                     errors = True
                     continue
+                elif regex == "":
+                    parselog.debug(1, "BBFILE_PATTERN_%s is empty" % c)
+                    errors = False
+                    continue
                 try:
                     cre = re.compile(regex)
                 except re.error:
-- 
2.9.0



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

end of thread, other threads:[~2016-10-27  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-27  8:50 [PATCH 0/1] lib/bb/cooker.py: fix for BBFILE_PATTERN = "" Robert Yang
2016-10-27  8:50 ` [PATCH 1/1] " Robert Yang

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.