[1.46][PATCH 0/2] Patch review
Please review this set of patches for dunfell/1.46 and have comments back by end of day Monday.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3112
The following changes since commit c5969eedd035648e3258bade386cc67ce3bb0e03:
cooker/command: Add a dummy event for tinfoil testing (2022-01-07 23:43:41 +0000)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Richard Purdie (2):
utils: Update to use exec_module() instead of load_module() tests/fetch: Drop gnu urls from wget connectivity test
lib/bb/tests/fetch.py | 3 --- lib/bb/utils.py | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1
[bitbake][dunfell][1.46][PATCH 1/2] utils: Update to use exec_module() instead of load_module()
From: Richard Purdie <[email protected]>
This is deprecated in python 3.12 and Fedora 35 is throwing warnings so move to the new functions.
--- lib/bb/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
lib/bb/utils.py +5 -2
@@ -16,7 +16,8 @@ import bb.msg import multiprocessing import fcntl import importlib -from importlib import machinery +import importlib.machinery +import importlib.util import itertools import subprocess import glob
@@ -1584,7 +1585,9 @@ def load_plugins(logger, plugins, pluginpath): logger.debug(1, 'Loading plugin %s' % name) spec = importlib.machinery.PathFinder.find_spec(name, path=[pluginpath] ) if spec: - return spec.loader.load_module() + mod = importlib.util.module_from_spec(spec) + spec.loader.exec_module(mod) + return mod logger.debug(1, 'Loading plugins from %s...' % pluginpath)
Signature · 1 line
2.25.1
[bitbake][dunfell][1.46][PATCH 2/2] tests/fetch: Drop gnu urls from wget connectivity test
In reply to Steve SakomanFrom: Richard Purdie <[email protected]>
These urls are no longer adding much to the test coverage but the intermittent network issues connecting to them are painful. Drop the urls.
--- lib/bb/tests/fetch.py | 3 --- 1 file changed, 3 deletions(-)
lib/bb/tests/fetch.py +0 -3
@@ -1290,9 +1290,6 @@ class FetchCheckStatusTest(FetcherTest): "http://downloads.yoctoproject.org/releases/opkg/opkg-0.1.7.tar.gz", "http://downloads.yoctoproject.org/releases/opkg/opkg-0.3.0.tar.gz", "ftp://sourceware.org/pub/libffi/libffi-1.20.tar.gz", - "http://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz", - "https://ftp.gnu.org/gnu/chess/gnuchess-5.08.tar.gz", - "https://ftp.gnu.org/gnu/gmp/gmp-4.0.tar.gz", # GitHub releases are hosted on Amazon S3, which doesn't support HEAD "https://github.com/kergoth/tslib/releases/download/1.1/tslib-1.1.tar.xz" ]
Signature · 1 line
2.25.1