ast/data/codeparser: Add dependencies from python module functions
PATCH 1/1 ast/data/codeparser: Add dependencies from python module functions
Moving code into python modules is a very effective way to reduce parsing time and overhead in recipes. The downside has always been that any dependency information on which variables those functions access is lost and the hashes can therefore become less reliable.
This patch adds parsing of the imported module functions and that dependency information is them injected back into the hash dependency information.
Intermodule function references are resolved to the full function call names in our module namespace to ensure interfunction dependencies are correctly handled too.
(Bitbake rev: 605c478ce14cdc3c02d6ef6d57146a76d436a83c)
--- lib/bb/codeparser.py | 44 +++++++++++++++++++++++++++++++++----- lib/bb/data.py | 15 +++++++++---- lib/bb/parse/ast.py | 12 +++++++++++ lib/bb/tests/codeparser.py | 14 ++++++------ 4 files changed, 69 insertions(+), 16 deletions(-)
lib/bb/codeparser.py +39 -5
@@ -27,6 +27,7 @@ import ast import sys import codegen import logging +import inspect import bb.pysh as pysh import bb.utils, bb.data import hashlib
@@ -58,10 +59,34 @@ def check_indent(codestr): return codestr -# A custom getstate/setstate using tuples is actually worth 15% cachesize by -# avoiding duplication of the attribute names! +modulecode_deps = {} +def add_module_functions(fn, functions, namespace): + fstat = os.stat(fn) + fixedhash = fn + ":" + str(fstat.st_size) + ":" + str(fstat.st_mtime) + #bb.warn(fixedhash) + for f in functions: + name = "%s.%s" % (namespace, f) + parser = bb.codeparser.PythonParser(name, logger) + try: + parser.parse_python(None, filename=fn, lineno=1, fixedhash=fixedhash+f) + #bb.warn("Cached %s" % f) + except KeyError: + lines, lineno = inspect.getsourcelines(functions[f]) + src = "".join(lines) + parser.parse_python(src, filename=fn, lineno=lineno, fixedhash=fixedhash+f) + #bb.warn("Not cached %s" % f) + execs = parser.execs.copy() + # Expand internal module exec references + for e in parser.execs: + if e in functions: + execs.remove(e) + execs.add(namespace + "." + e) + bb.codeparser.modulecode_deps[name] = [parser.references.copy(), execs, parser.var_execs.copy(), parser.contains.copy()] + #bb.warn("%s: %s\nRefs:%s Execs: %s %s %s" % (name, src, parser.references, parser.execs, parser.var_execs, parser.contains)) +# A custom getstate/setstate using tuples is actually worth 15% cachesize by +# avoiding duplication of the attribute names! class SetCache(object): def __init__(self): self.setcache = {}
@@ -289,11 +314,17 @@ class PythonParser(): self.unhandled_message = "in call of %s, argument '%s' is not a string literal" self.unhandled_message = "while parsing %s, %s" % (name, self.unhandled_message) - def parse_python(self, node, lineno=0, filename="<string>"): - if not node or not node.strip(): + # For the python module code it is expensive to have the function text so it is + # uses a different fixedhash to cache against. We can take the hit on obtaining the + # text if it isn't in the cache. + def parse_python(self, node, lineno=0, filename="<string>", fixedhash=None): + if not fixedhash and (not node or not node.strip()): return - h = bbhash(str(node)) + if fixedhash: + h = fixedhash + else: + h = bbhash(str(node)) if h in codeparsercache.pythoncache: self.references = set(codeparsercache.pythoncache[h].refs)
@@ -311,6 +342,9 @@ class PythonParser(): self.contains[i] = set(codeparsercache.pythoncacheextras[h].contains[i]) return + if fixedhash and not node: + raise KeyError + # Need to parse so take the hit on the real log buffer self.log = BufferedLogger('BitBake.Data.PythonParser', logging.DEBUG, self._log)
lib/bb/data.py +11 -4
@@ -261,7 +261,7 @@ def emit_func_python(func, o=sys.__stdout__, d = init()): newdeps |= set((d.getVarFlag(dep, "vardeps") or "").split()) newdeps -= seen -def build_dependencies(key, keys, shelldeps, varflagsexcl, ignored_vars, d): +def build_dependencies(key, keys, mod_funcs, shelldeps, varflagsexcl, ignored_vars, d): def handle_contains(value, contains, exclusions, d): newvalue = [] if value:
@@ -289,6 +289,12 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, ignored_vars, d): deps = set() try: + if key in mod_funcs: + exclusions = set() + moddep = bb.codeparser.modulecode_deps[key] + value = handle_contains("", moddep[3], exclusions, d) + return frozenset((moddep[0] | keys & moddep[1]) - ignored_vars), value + if key[-1] == ']': vf = key[:-1].split('[') if vf[1] == "vardepvalueexclude":
@@ -367,7 +373,8 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, ignored_vars, d): def generate_dependencies(d, ignored_vars): - keys = set(key for key in d if not key.startswith("__")) + mod_funcs = set(bb.codeparser.modulecode_deps.keys()) + keys = set(key for key in d if not key.startswith("__")) | mod_funcs shelldeps = set(key for key in d.getVar("__exportlist", False) if d.getVarFlag(key, "export", False) and not d.getVarFlag(key, "unexport", False)) varflagsexcl = d.getVar('BB_SIGNATURE_EXCLUDE_FLAGS')
@@ -376,7 +383,7 @@ def generate_dependencies(d, ignored_vars): tasklist = d.getVar('__BBTASKS', False) or [] for task in tasklist: - deps[task], values[task] = build_dependencies(task, keys, shelldeps, varflagsexcl, ignored_vars, d) + deps[task], values[task] = build_dependencies(task, keys, mod_funcs, shelldeps, varflagsexcl, ignored_vars, d) newdeps = deps[task] seen = set() while newdeps:
@@ -385,7 +392,7 @@ def generate_dependencies(d, ignored_vars): newdeps = set() for dep in nextdeps: if dep not in deps: - deps[dep], values[dep] = build_dependencies(dep, keys, shelldeps, varflagsexcl, ignored_vars, d) + deps[dep], values[dep] = build_dependencies(dep, keys, mod_funcs, shelldeps, varflagsexcl, ignored_vars, d) newdeps |= deps[dep] newdeps -= seen #print "For %s: %s" % (task, str(deps[task]))
lib/bb/parse/ast.py +12 -0
@@ -290,6 +290,18 @@ class PyLibNode(AstNode): toimport = getattr(bb.utils._context[self.namespace], "BBIMPORTS", []) for i in toimport: bb.utils._context[self.namespace] = __import__(self.namespace + "." + i) + mod = getattr(bb.utils._context[self.namespace], i) + fn = getattr(mod, "__file__") + funcs = {} + for f in dir(mod): + if f.startswith("_"): + continue + fcall = getattr(mod, f) + if not callable(fcall): + continue + funcs[f] = fcall + bb.codeparser.add_module_functions(fn, funcs, "%s.%s" % (self.namespace, i)) + except AttributeError as e: bb.error("Error importing OE modules: %s" % str(e))
lib/bb/tests/codeparser.py +7 -7
@@ -318,7 +318,7 @@ d.getVar(a(), False) "filename": "example.bb", }) - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(deps, set(["somevar", "bar", "something", "inexpand", "test", "test2", "a"]))
@@ -365,7 +365,7 @@ esac self.d.setVarFlags("FOO", {"func": True}) self.setEmptyVars(execs) - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(deps, set(["somevar", "inverted"] + execs))
@@ -375,7 +375,7 @@ esac self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") self.d.setVarFlag("FOO", "vardeps", "oe_libinstall") - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(deps, set(["oe_libinstall"]))
@@ -384,7 +384,7 @@ esac self.d.setVar("FOO", "foo=oe_libinstall; eval $foo") self.d.setVarFlag("FOO", "vardeps", "${@'oe_libinstall'}") - deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("FOO", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(deps, set(["oe_libinstall"]))
@@ -399,7 +399,7 @@ esac # Check dependencies self.d.setVar('ANOTHERVAR', expr) self.d.setVar('TESTVAR', 'anothervalue testval testval2') - deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(sorted(values.splitlines()), sorted([expr, 'TESTVAR{anothervalue} = Set',
@@ -418,14 +418,14 @@ esac self.d.setVar('ANOTHERVAR', varval) self.d.setVar('TESTVAR', 'anothervalue testval testval2') self.d.setVar('TESTVAR2', 'testval3') - deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(["TESTVAR"]), self.d) + deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(), set(["TESTVAR"]), self.d) self.assertEqual(sorted(values.splitlines()), sorted([varval])) self.assertEqual(deps, set(["TESTVAR2"])) self.assertEqual(self.d.getVar('ANOTHERVAR').split(), ['testval3', 'anothervalue']) # Check the vardepsexclude flag is handled by contains functionality self.d.setVarFlag('ANOTHERVAR', 'vardepsexclude', 'TESTVAR') - deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(), self.d) + deps, values = bb.data.build_dependencies("ANOTHERVAR", set(self.d.keys()), set(), set(), set(), set(), self.d) self.assertEqual(sorted(values.splitlines()), sorted([varval])) self.assertEqual(deps, set(["TESTVAR2"])) self.assertEqual(self.d.getVar('ANOTHERVAR').split(), ['testval3', 'anothervalue'])
Signature · 1 line
2.37.2
Quoted 17 lines · Richard Purdie
Moving code into python modules is a very effective way to reduce parsing time and overhead in recipes. The downside has always been that any dependency information on which variables those functions access is lost and the hashes can therefore become less reliable.
This patch adds parsing of the imported module functions and that dependency
information is them injected back into the hash dependency information.Intermodule function references are resolved to the full function call names in our module namespace to ensure interfunction dependencies are correctly handled too.
(Bitbake rev:
605c478ce14cdc3c02d6ef6d57146a76d436a83c)Signed-off-by Richard Purdie <[email protected]>
...
Quoted 23 lines
lib/bb/parse/ast.py +12
-0@@ -290,6 +290,18 @@ class PyLibNode(AstNode): toimport = getattr(bb.utils._context[self.namespace], "BBIMPORTS", []) for i in toimport: bb.utils._context[self.namespace] = __import__(self.namespace + "." + i) + mod = getattr(bb.utils._context[self.namespace], i) + fn = getattr(mod, "__file__") + funcs = {} + for f in dir(mod): + if f.startswith("_"): + continue + fcall = getattr(mod, f) + if not callable(fcall): + continue + funcs[f] = fcall + bb.codeparser.add_module_functions(fn, funcs, "%s.%s" % (self.namespace, i)) +
Quoted 3 lines
except AttributeError as e:
bb.error("Error importing OE modules: %s" % str(e))
Hi,
a while ago I've mentioned that after making syntax error in metadata I got no output at all from bitbake.
I've narrowed it down to this chunk and the issue is that my syntax error was in qa.py and it was failing in:
bb.utils._context[self.namespace] = __import__(self.namespace + "." + i)
without any output from bitbake (nor bitbake-cookerdaemon.log).
If I add simple try-catch around this like:
- bb.utils._context[self.namespace] =__import__(self.namespace + "." + i)
+ try:
+ bb.utils._context[self.namespace] =__import__(self.namespace + "." + i)
+ except Exception as e:
+ bb.error("Error importing OE module %s: %s" % (i,
str(e)))
+ continue
Then I immediately get expected syntax error:
ERROR: Error importing OE module qa: invalid syntax (qa.py, line 229) (followed by many errors about missing qa "Exception: AttributeError:
module 'oe' has no attribute 'qa'")
Where would be the right place to handle this?
If I break qa.py in langdale, I get reasonable error:
$ echo "def break()" >> oe-core/meta/lib/oe/qa.py
$ bitbake -k zlib-native
ERROR: Unable to parse Var <OE_IMPORTED[:=]>
Traceback (most recent call last):
File "Var <OE_IMPORTED[:=]>", line 1, in <module>
File
"/OE/lge/build/webos/langdale/oe-core/meta/classes-global/base.bbclass",
line 35, in oe_import(d=<bb.data_smart.DataSmart object at 0x7fa09b142790>):
# Make a python object accessible from the metadataQuoted 1 line
bb.utils._context[toimport.split(".", 1)[0]] =__import__(toimport)
except AttributeError as e:
bb.data_smart.ExpansionError: Failure expanding variable OE_IMPORTED[:=], expression was ${@oe_import(d)} which triggered exception SyntaxError:
expected ':' (qa.py, line 222)
The variable dependency chain for the failure is: OE_IMPORTED[:=]
with master:
$ time bitbake -DDDDDD -vvvvv zlib-native
real 0m0.564s user 0m0.149s sys 0m0.033s
Quoted 56 lines · Martin Jansa
Quoted 21 lines · Richard Purdie
Moving code into python modules is a very effective way to reduce parsing
time and overhead in recipes. The downside has always been that any dependency information on which variables those functions access is lost
and the hashes can therefore become less reliable.This patch adds parsing of the imported module functions and that dependency
information is them injected back into the hash dependency information.Intermodule function references are resolved to the full function call names in our module namespace to ensure interfunction dependencies
are correctly handled too.(Bitbake rev:
605c478ce14cdc3c02d6ef6d57146a76d436a83c)Signed-off-by Richard Purdie <[email protected]>...
Quoted 18 lines
lib/bb/parse/ast.py +0
-0@@ -290,6 +290,18 @@ class PyLibNode(AstNode): toimport = getattr(bb.utils._context[self.namespace], "BBIMPORTS", [])for i in toimport:
bb.utils._context[self.namespace] =__import__(self.namespace + "." + i)
+ mod = getattr(bb.utils._context[self.namespace],
i)
+ fn =getattr(mod, "__file__")
+ funcs = {}
+ for f in dir(mod):
+ iff.startswith("_"):
+ continue
+ fcall =getattr(mod, f)Quoted 9 lines
+ if not callable(fcall):
+ continue
+ funcs[f] = fcall
+bb.codeparser.add_module_functions(fn, funcs, "%s.%s" % (self.namespace, i))
+
except AttributeError as e:
bb.error("Error importing OE modules: %s" % str(e))Hi,
Quoted 7 lines
a while ago I've mentioned that after making syntax error in metadata I got no output at all from bitbake.
I've narrowed it down to this chunk and the issue is that my syntax error was in
qa.pyand it was failing in:
bb.utils._context[self.namespace] = __import__(self.namespace + "." +
i)
Was there a traceback in bitbake-cookerdeamon.log for this before your patch?
Cheers,
Richard
No, I haven't seen any error in bitbake-cookerdaemon.log, see attachment (created with this change reverted and the same syntax error in qa.py).
Quoted 65 lines · Richard Purdie
Quoted 56 lines · Martin Jansa
Quoted 21 lines · Richard Purdie
Moving code into python modules is a very effective way to reduce parsing
time and overhead in recipes. The downside has always been that any dependency information on which variables those functions access is lost
and the hashes can therefore become less reliable.This patch adds parsing of the imported module functions and that dependency
information is them injected back into the hash dependency information.Intermodule function references are resolved to the full function call names in our module namespace to ensure interfunction dependencies
are correctly handled too.(Bitbake rev:
605c478ce14cdc3c02d6ef6d57146a76d436a83c)Signed-off-by Richard Purdie <[email protected]>...
Quoted 22 lines
lib/bb/parse/ast.py +11
-0@@ -290,6 +290,18 @@ class PyLibNode(AstNode): toimport = getattr(bb.utils._context[self.namespace], "BBIMPORTS", []) for i in toimport: bb.utils._context[self.namespace] = __import__(self.namespace + "." + i) + mod = getattr(bb.utils._context[self.namespace], i) + fn = getattr(mod, "__file__") + funcs = {} + for f in dir(mod): + if f.startswith("_"): + continue + fcall = getattr(mod, f) + if not callable(fcall): + continue + funcs[f] = fcall + bb.codeparser.add_module_functions(fn, funcs,Quoted 5 lines
"%s.%s" % (self.namespace, i))
+
except AttributeError as e:
bb.error("Error importing OE modules: %s" % str(e))Hi,
Quoted 7 lines
a while ago I've mentioned that after making syntax error in metadata I got no output at all from bitbake.
I've narrowed it down to this chunk and the issue is that my syntax error was in
qa.pyand it was failing in:
bb.utils._context[self.namespace] = __import__(self.namespace + "." +
i)
Quoted 7 lines
Was there a traceback in bitbake-cookerdeamon.log for this before your patch?
Cheers,
Richard
603982 17:43:27.840576 --- Starting bitbake server pid 603982 at 2023-02-15 17:43:27.840549 ---
603982 17:43:27.841982 Started bitbake server pid 603982
603982 17:43:27.842171 Entering server connection loop
603982 17:43:27.842209 Lockfile is: /OE/build/oe-core/bitbake.lock
Socket is /OE/build/oe-core/bitbake.sock (True)
603982 17:43:27.842926 Accepting [<socket.socket fd=6, family=1, type=1, proto=0, laddr=bitbake.sock>] ([])
603982 17:43:27.844374 Processing Client
603982 17:43:27.844419 Connecting Client
603982 17:43:27.844739 Running command ['setFeatures', [2, 1]]
603982 17:43:27.844892 Command Completed (socket: True)
603982 17:43:27.846058 Running command ['updateConfig', {'halt': False, 'force': False, 'invalidate_stamp': None, 'dry_run': False, 'dump_signatures': [], 'extra_assume_provided': [], 'profile': False, 'prefile': [], 'postfile': [], 'server_timeout': None, 'nosetscene': False, 'setsceneonly': False, 'skipsetscene': False, 'runall': [], 'runonly': None, 'writeeventlog': None, 'build_verbose_shell': False, 'build_verbose_stdout': False, 'default_loglevel': 20, 'debug_domains': {}}, {'SHELL': '/bin/bash', 'BB_ENV_PASSTHROUGH_ADDITIONS': 'MACHINE DISTRO http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS GIT_PROXY_COMMAND PSEUDO_DISABLED PSEUDO_BUILD', 'SSH_AUTH_SOCK': '/tmp/ssh-XXXXXX7aumK6/agent.2043', 'SSH_AGENT_PID': '2044', 'PWD': '/OE/build/oe-core', 'LOGNAME': '', 'HOME': '/home/user', 'MACHINE': 'qemux86-64', 'USER': 'user', 'LC_ALL': 'en_US.UTF-8', 'PATH': '/OE/build/oe-core/openembedded-core/scripts:/OE/build/oe-core/bitbake/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/15/bin:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/etc/eselect/wine/bin:/usr/lib64/opencascade/bin:/var/lib/snapd/snap/bin', 'SESSION_MANAGER': 'local/jama:@/tmp/.ICE-unix/1997,unix/jama:/tmp/.ICE-unix/1997', 'WINDOWID': '33554435', 'COLORTERM': 'truecolor', 'CSF_MDTVTexturesDirectory': '/usr/share/opencascade/resources/Textures', 'XDG_CONFIG_DIRS': '/etc/xdg', 'LESS': '-R -M --shift 5', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session1', 'XDG_MENU_PREFIX': 'xfce-', 'JDK_HOME': '/etc/java-config-2/current-system-vm', 'CONFIG_PROTECT_MASK': '/etc/sandbox.d /etc/fonts/fonts.conf /etc/gentoo-release /etc/dconf /etc/ca-certificates.conf /etc/revdep-rebuild', 'TERMCAP': 'SC|screen.xterm-256color|VT 100/ANSI X3.64 virtual terminal:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:li#63:co#238:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:dc=\\E[P:DC=\\E[%dP:im=\\E[4h:ei=\\E[4l:mi:IC=\\E[%d@:ks=\\E[?1h\\E=:ke=\\E[?1l\\E>:vi=\\E[?25l:ve=\\E[34h\\E[?25h:vs=\\E[34l:ti=\\E[?1049h:te=\\E[?1049l:us=\\E[4m:ue=\\E[24m:so=\\E[3m:se=\\E[23m:mb=\\E[5m:md=\\E[1m:mh=\\E[2m:mr=\\E[7m:me=\\E[m:ms:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:po=\\E[5i:pf=\\E[4i:Z0=\\E[?3h:Z1=\\E[?3l:Km=\\E[<:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k;=\\E[21~:F1=\\E[23~:F2=\\E[24~:kB=\\E[Z:kh=\\E[1~:@1=\\E[1~:kH=\\E[4~:@7=\\E[4~:kN=\\E[6~:kP=\\E[5~:kI=\\E[2~:kD=\\E[3~:ku=\\EOA:kd=\\EOB:kr=\\EOC:kl=\\EOD:km:', 'JAVA_HOME': '/etc/java-config-2/current-system-vm', 'CSF_MIGRATION_TYPES': '/usr/share/opencascade/resources/StdResource/MigrationSheet.txt', 'WINDOW': '2', 'ANT_HOME': '/usr/share/ant', 'DESKTOP_SESSION': '/usr/share/xsessions/xfce', 'CSF_STEPDefaults': '/usr/share/opencascade/resources/XSTEPResource', 'EDITOR': 'vim', 'GTK_MODULES': 'canberra-gtk-module', 'XDG_SEAT': 'seat0', 'CONFIG_PROTECT': '/usr/share/gnupg/qualified.txt /usr/share/easy-rsa /usr/share/config /usr/lib64/libreoffice/program/sofficerc', 'XDG_SESSION_DESKTOP': 'XFCE', 'XDG_SESSION_TYPE': 'x11', 'PANEL_GDK_CORE_DEVICE_EVENTS': '0', 'MANPATH': '/etc/java-config-2/current-system-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/12/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.40/man:/etc/java-config-2/current-system-vm/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/15/share/man:/etc/eselect/wine/share/man', 'XAUTHORITY': '/home/user/.Xauthority', 'CSF_StandardLiteDefaults': '/usr/share/opencascade/resources/StdResource', 'OPENCL_PROFILE': 'nvidia', 'MOTD_SHOWN': 'pam', 'GDM_LANG': 'C.UTF-8', 'LANG': 'C', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:', 'XDG_CURRENT_DESKTOP': 'XFCE', 'VTE_VERSION': '7003', 'CSF_GraphicShr': '/usr/lib64/opencascade/libTKOpenGl.so', 'OPENGL_PROFILE': 'xorg-x11', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'QT_GRAPHICSSYSTEM': 'raster', 'XZ_OPT': '-T0', 'CSF_ShadersDirectory': '/usr/share/opencascade/resources/Shaders', 'CSF_XmlOcafResource': '/usr/share/opencascade/resources/XmlOcafResource', 'INFOPATH': '/usr/share/gcc-data/x86_64-pc-linux-gnu/12/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.40/info:/usr/share/info', 'MOZ_GMP_PATH': '/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed', 'CSF_SHMessage': '/usr/share/opencascade/resources/SHMessage', 'JAVAC': '/etc/java-config-2/current-system-vm/bin/javac', 'XDG_SESSION_CLASS': 'user', 'ANDROID_HOME': '/opt/android-sdk-update-manager', 'TERM': 'screen.xterm-256color', 'LESSOPEN': '|lesspipe %s', 'ANDROID_SWT': '/usr/share/swt-3.7/lib', 'CSF_StandardDefaults': '/usr/share/opencascade/resources/StdResource', 'CSF_IGESDefaults': '/usr/share/opencascade/resources/XSTEPResource', 'MANPAGER': 'manpager', 'NPM_CONFIG_GLOBALCONFIG': '/etc/npm/npmrc', 'DISPLAY': ':0.0', 'CSF_XCAFDefaults': '/usr/share/opencascade/resources/StdResource', 'SHLVL': '2', 'PAGER': '/usr/bin/less', 'LEX': 'flex', 'XDG_VTNR': '1', 'CSF_PluginDefaults': '/usr/share/opencascade/resources/StdResource', 'XDG_SESSION_ID': '2', 'CASROOT': '/usr', 'LD_LIBRARY_PATH': '', 'XDG_RUNTIME_DIR': '/run/user/1026', 'GCC_SPECS': '', 'GSETTINGS_BACKEND': 'dconf', 'CSF_XSMessage': '/usr/share/opencascade/resources/XSMessage', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/etc/eselect/wine/share:/var/lib/snapd/desktop', 'CSF_UnitsDefinition': '/usr/share/opencascade/resources/UnitsAPI/Units.dat', 'STY': '2282.x', 'VBOX_APP_HOME': '/usr/lib64/virtualbox', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1026/bus', 'BUILDDIR': '/OE/build/oe-core', 'MAIL': '/var/mail/user', 'OLDPWD': '/OE/build/oe-core/bitbake', '_': '/OE/build/oe-core/bitbake/bin/bitbake'}, ['/OE/build/oe-core/bitbake/bin/bitbake', '-k', 'zlib-native']] /OE/build/oe-core/openembedded-core/meta/lib/oe/package.py:11: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
603982 17:43:28.443784 Command Completed (socket: True)
603982 17:43:28.595287 Processing Client
603982 17:43:28.595399 Disconnecting Client (socket: True)
603982 17:43:28.595578 No timeout, exiting.
603982 17:43:28.695858 Exiting (socket: True)
603982 17:43:28.700327 Exiting as we could obtain the lock
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='/OE/build/oe-core/bitbake-cookerdaemon.log' mode='a+' encoding='UTF-8'>
Quoted 3 lines · Martin Jansa
No, I haven't seen any error in bitbake-cookerdaemon.log, see attachment (created with this change reverted and the same syntax error in
qa.py).
Which makes me wonder where this error is actually ending up :/
Cheers,
Richard