All of lore.kernel.org
 help / color / mirror / Atom feed
* [bitbake][dunfell][1.46][PATCH 0/2] Patch review
@ 2022-01-13 14:10 Steve Sakoman
  2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 1/2] utils: Update to use exec_module() instead of load_module() Steve Sakoman
  2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 2/2] tests/fetch: Drop gnu urls from wget connectivity test Steve Sakoman
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Sakoman @ 2022-01-13 14:10 UTC (permalink / raw)
  To: bitbake-devel

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(-)

-- 
2.25.1



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

* [bitbake][dunfell][1.46][PATCH 1/2] utils: Update to use exec_module() instead of load_module()
  2022-01-13 14:10 [bitbake][dunfell][1.46][PATCH 0/2] Patch review Steve Sakoman
@ 2022-01-13 14:10 ` Steve Sakoman
  2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 2/2] tests/fetch: Drop gnu urls from wget connectivity test Steve Sakoman
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Sakoman @ 2022-01-13 14:10 UTC (permalink / raw)
  To: bitbake-devel

From: Richard Purdie <richard.purdie@linuxfoundation.org>

This is deprecated in python 3.12 and Fedora 35 is throwing warnings so
move to the new functions.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 68a18fbcb5959e334cf307d7fa8dc63832edb942)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 lib/bb/utils.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 5f5767c1..fab16ffc 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -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)
 
-- 
2.25.1



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

* [bitbake][dunfell][1.46][PATCH 2/2] tests/fetch: Drop gnu urls from wget connectivity test
  2022-01-13 14:10 [bitbake][dunfell][1.46][PATCH 0/2] Patch review Steve Sakoman
  2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 1/2] utils: Update to use exec_module() instead of load_module() Steve Sakoman
@ 2022-01-13 14:10 ` Steve Sakoman
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Sakoman @ 2022-01-13 14:10 UTC (permalink / raw)
  To: bitbake-devel

From: Richard Purdie <richard.purdie@linuxfoundation.org>

These urls are no longer adding much to the test coverage but the intermittent
network issues connecting to them are painful. Drop the urls.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit bdf5739c5d831dc97a7d81568f94a0953c71017f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 lib/bb/tests/fetch.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 6ef5183b..44dc0945 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -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"
                       ]
-- 
2.25.1



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

end of thread, other threads:[~2022-01-13 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 14:10 [bitbake][dunfell][1.46][PATCH 0/2] Patch review Steve Sakoman
2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 1/2] utils: Update to use exec_module() instead of load_module() Steve Sakoman
2022-01-13 14:10 ` [bitbake][dunfell][1.46][PATCH 2/2] tests/fetch: Drop gnu urls from wget connectivity test Steve Sakoman

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.