[2.18][PATCH 0/3] Patch review
Please review this set of changes for wrynose/2.18 and have comments back by end of day Monday, May 11.
Passed a-full on autobuilder with 3 AB-INT issues:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3795
* qemuarm-tc: 15698 – AB-INT: runqemu.QemuTest.test_qemu_can_shutdown hangs with "Data received serial thread" Retried in https://autobuilder.yoctoproject.org/valkyrie/#/builders/42/builds/3689
* qemuriscv64-ptest: https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1562
This is a ptest failure in procps: 'pgrep_match_against_full_process_name'
This particular ptest later passed in https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1564
(I have yet to properly report this one)
* qemuarmv5: 16217 – AB-INT: boot hang in qemu (amba chip errors?)
Retried in https://autobuilder.yoctoproject.org/valkyrie/#/builders/80/builds/3559
The following changes since commit a2dd9be788274d9c7280be5b1be5eb5c3990cf54:
fetch2/crate: use CDN endpoint for version checking if possible (2026-04-30 10:08:54 +0100)
are available in the Git repository at:
https://git.openembedded.org/bitbake-contrib stable/2.18-nut
https://git.openembedded.org/bitbake-contrib/log/?h=stable/2.18-nut
for you to fetch changes up to 87dcc2935137558ac236676ab7bcbc3cc4883c2c:
lib: Replace codegen with ast.unparse() (2026-05-05 17:36:57 +0200)
----------------------------------------------------------------
Alexander Kanavin (1):
fetch/wget: in upstream version checks, match versioned directories
exactly
Paul Barker (1):
doc: Fix description of git shallow mirror tarball creation
Richard Purdie (1):
lib: Replace codegen with ast.unparse()
.../bitbake-user-manual-ref-variables.rst | 5 +- lib/bb/codeparser.py | 5 +- lib/bb/fetch2/wget.py | 2 +- lib/codegen.py | 564 ------------------ 4 files changed, 6 insertions(+), 570 deletions(-) delete mode 100644 lib/codegen.py
[bitbake][wrynose][2.18][PATCH 3/3] lib: Replace codegen with ast.unparse()
From: Richard Purdie <[email protected]>
Since python 3.9, ast can generate code from an ast. We can therefore drop codegen.py and use python's internal functionality for this.
[YOCTO #16229]
--- lib/bb/codeparser.py | 5 +- lib/codegen.py | 564 ------------------------------------------- 2 files changed, 2 insertions(+), 567 deletions(-) delete mode 100644 lib/codegen.py
lib/bb/codeparser.py +2 -3
@@ -25,7 +25,6 @@ recipe caches don't trigger "Taskhash mismatch" errors. import ast import sys -import codegen import logging import inspect import bb.pysh as pysh
@@ -263,8 +262,8 @@ class PythonParser(): """ try: - funcstr = codegen.to_source(func) - argstr = codegen.to_source(arg) + funcstr = ast.unparse(func) + argstr = ast.unparse(arg) except TypeError: self.log.debug2('Failed to convert function and argument to source form') else:
lib/codegen.py deleted +0 -564
564 lines not on this page · raw message
[bitbake][wrynose][2.18][PATCH 2/3] fetch/wget: in upstream version checks, match versioned directories exactly
In reply to Yoann CongalFrom: Alexander Kanavin <[email protected]>
This change is in code that iterates over a html page, picking out links to versioned subdirectories to check further for new versions.
Without the ^ and $ guards, there would be sub-string matches. This results in querying the server multiple times for the same directory (for example,
perl check where the page contains multiple references to 5.0/something-unrelated) or querying the server for directory that doesn't exist (nasm check, where existence of 3.02rcX directories would result in querying the server for non-existing 3.02).
I have confirmed that the overall oe-core version check returns same results as before, with less network churn and nasm version check working properly again.
--- lib/bb/fetch2/wget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/wget.py +1 -1
@@ -539,7 +539,7 @@ class Wget(FetchMethod): version_dir = ['', '', ''] version = ['', '', ''] - dirver_regex = re.compile(r"(?P<pfx>\D*)(?P<ver>(\d+[\.\-_])*(\d+))") + dirver_regex = re.compile(r"^(?P<pfx>\D*)(?P<ver>(\d+[\.\-_])*(\d+))$") s = dirver_regex.search(dirver) if s: version_dir[1] = s.group('ver')
[bitbake][wrynose][2.18][PATCH 1/3] doc: Fix description of git shallow mirror tarball creation
In reply to Yoann CongalFrom: Paul Barker <[email protected]>
The method used to create shallow tarballs was changed back in 2024, but the associated documentation was not updated.
--- .../bitbake-user-manual-ref-variables.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +3 -2
@@ -349,8 +349,9 @@ overview of their function and contents. :term:`BB_GIT_SHALLOW` Setting this variable to "1" enables the support for fetching, using and generating mirror tarballs of `shallow git repositories <https://riptutorial.com/git/example/4584/shallow-clone>`_. - The external `git-make-shallow <https://git.openembedded.org/bitbake/tree/bin/git-make-shallow>`_ - script is used for shallow mirror tarball creation. + A git shallow fetch is used for shallow mirror tarball creation (i.e. + ``git fetch --depth <depth> ...`` or + ``git fetch --shallow-exclude=<revs> ...``. When :term:`BB_GIT_SHALLOW` is enabled, bitbake will attempt to fetch a shallow mirror tarball. If the shallow mirror tarball cannot be fetched, it will