All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] data_smart.py: Skip old override syntax checking for anonymous functions
@ 2021-11-25  8:39 Robert Yang
  2021-11-25  8:39 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2021-11-25  8:39 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit ffd87a89393f25924f53dbc86dcf5a98c3a8d0ff:

  bitbake-user-manual: fix backslash issues (2021-11-21 11:28:00 +0000)

are available in the Git repository at:

  git://github.com/robertlinux/bitbake rbt/bb
  https://github.com/robertlinux/bitbake/tree/rbt/bb

Robert Yang (1):
  data_smart.py: Skip old override syntax checking for anonymous
    functions

 lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.31.1



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

* [PATCH 1/1] data_smart.py: Skip old override syntax checking for anonymous functions
  2021-11-25  8:39 [PATCH 0/1] data_smart.py: Skip old override syntax checking for anonymous functions Robert Yang
@ 2021-11-25  8:39 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2021-11-25  8:39 UTC (permalink / raw)
  To: bitbake-devel

Fixed when oe-core's path contians append/prepend/remove, e.g.:

/path/to/append_test/oe-core/

Initial a build in any build dirs:
$ bitbake -p
ERROR: Variable __anon_32__buildarea2_xhou_builds_append_test_layers_oe_core_meta_classes_patch_bbclass
contains an operation using the old override syntax. Please convert this
layer/metadata before attempting to use with a newer bitbake.

The anonymous fuctions has no names, so skip checking for it to fix the issue.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 7ed7112bdc..543372d153 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -492,7 +492,7 @@ class DataSmart(MutableMapping):
     def setVar(self, var, value, **loginfo):
         #print("var=" + str(var) + "  val=" + str(value))
 
-        if "_append" in var or "_prepend" in var or "_remove" in var:
+        if not var.startswith("__anon_") and ("_append" in var or "_prepend" in var or "_remove" in var):
             info = "%s" % var
             if "filename" in loginfo:
                 info += " file: %s" % loginfo[filename]
-- 
2.31.1



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

end of thread, other threads:[~2021-11-25  8:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-25  8:39 [PATCH 0/1] data_smart.py: Skip old override syntax checking for anonymous functions Robert Yang
2021-11-25  8:39 ` [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.