From cc11dfa4eb3616547a8a3909f89da0cc4f35dc57 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 22 Jul 2020 21:23:46 +0100 Subject: cooker: Handle multiconfig name mappings correctly "bitbake mc:arm:bash mc:arm:busybox" works but "bitbake multiconfig:arm:bash multiconfig:arm:busybox" does not. The reason is the list is modified whilst iterating. Don't do that. [YOCTO #13607] Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index e527e2311..d90bd3945 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1592,7 +1592,7 @@ class BBCooker: raise NothingToBuild ignore = (self.data.getVar("ASSUME_PROVIDED") or "").split() - for pkg in pkgs_to_build: + for pkg in pkgs_to_build.copy(): if pkg in ignore: parselog.warning("Explicit target \"%s\" is in ASSUME_PROVIDED, ignoring" % pkg) if pkg.startswith("multiconfig:"): -- cgit 1.2.3-korg