Return-Path: Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mail.openembedded.org (Postfix) with ESMTP id DF1E67E66A for ; Fri, 6 Dec 2019 22:10:15 +0000 (UTC) Received: by mail-pl1-f182.google.com with SMTP id bh2so2163556plb.11 for ; Fri, 06 Dec 2019 14:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=R3eRb4dd7SH7Hxc4XiR1a96OXsKkqpCyWJKH105cZfA=; b=WhUdPogyoulUSHdflR0JtMD9hRqAVn5a+GKimcAvIk20TzpcJ3/zGOl5RZ92vlM7eE bdTswkCwiLh7/D6roBoqCL9mT5/YwT1g05eXV/05lcrtWttdi+UVnVnyvE87WgfWVrq8 Jebq1+EZsPqw8zpjMGBBkKIcMDN0GNw4cKt/YQclp7NveEPubeeQMn5vNBGIGgDMHpp+ xc7imixy3EZBONvOid5nkyX4HYMYw75tVVBZwshHXOWz6Ovqet/tgJi8duMFKGTdiDzd Mcr4DHY9OcpFygStQPQ5OKlZrxkJjw93i+6+Rop8SMS9uxe61tuG/u7ymYM0RZmF05Zx HWiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=R3eRb4dd7SH7Hxc4XiR1a96OXsKkqpCyWJKH105cZfA=; b=KXbpzprqHXAKkKHkwcLA2MbCqJdXvO1RgrwoCb2SugixWcZJ9meo+xh9Um5eXG7BGw YaUrla/E2hJBRqgwSohLtrhZX8FvqSS9uvIZ/phW9S8bk7tl9iU8J6rj4nJdut/c9cM7 +g84PMMW96YjdL8SbtROtEbHDu388BkQta1bG7v4PDLf6ahEYp3Y12B/sEYZlYB+QMQp 83yVpLFtB0txAx+2j1d1ntY0XQ5zJ6oqOfenHp87phLP3xMPvTZF0royq2bDJ+knvJpX jUF2tjOTMidgc9qZBjLX3niP2e7G1hjdvhInNyGAVSdLRUOq3Oy5vd7d3tdc9De6UQGp Mhxg== X-Gm-Message-State: APjAAAVhr4NNEDWGj4EcSTfFP8W7Uhg19xB9uXRrvPaOf35ZHoY0PBCr KAmlEL4jSg6tVXaN3AbLKX/f3TCl X-Google-Smtp-Source: APXvYqwmG9kj/G7Z2AsEntNB6CWy7uQBZ/2qMCaSJ++nF3vRTv1oa4Su4dE3QVgMvAUB82NDjGr1fw== X-Received: by 2002:a17:902:b614:: with SMTP id b20mr16956266pls.305.1575670216749; Fri, 06 Dec 2019 14:10:16 -0800 (PST) Received: from poirot.lexmark.com ([12.190.236.26]) by smtp.gmail.com with ESMTPSA id 91sm4375021pjq.18.2019.12.06.14.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 14:10:16 -0800 (PST) From: Kyle Russell To: bitbake-devel@lists.openembedded.org Date: Fri, 6 Dec 2019 17:10:00 -0500 Message-Id: <20191206221000.16714-1-bkylerussell@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [1.40][PATCH] runqueue: fix multiconfig task dependency filtering X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Dec 2019 22:10:17 -0000 multiconfig dependencies should be excluded from BB_TASKDEPDATA. However in thud, multiconfig filtering on task dependencies doesn't happen until after deps has already been added to taskdepdata. One manifestation of this results in multiconfig dependencies leaking into staging processing. File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: *** 0002:extend_recipe_sysroot(d) 0003: File: '/home/user/thud/meta/classes/staging.bbclass', lineno: 344, function: extend_recipe_sysroot 0340: #bb.note(" start is %s" % str(start)) 0341: 0342: # Direct dependencies should be present and can be depended upon 0343: for dep in set(start): *** 0344: if setscenedeps[dep][1] == "do_populate_sysroot": 0345: if dep not in configuredeps: 0346: configuredeps.append(dep) 0347: bb.note("Direct dependencies are %s" % str(configuredeps)) 0348: #bb.note(" or %s" % str(start)) Exception: KeyError: 'multiconfig:musl:/home/user/thud/meta/recipes-kernel/linux/linux-yocto_4.18.bb:do_deploy' This can be reproduced on thud by backporting the multiconfig.MultiConfig.test_multiconfig test and mcextend bbclass from warrior. d22b6e03a5504145abed7c2ca44cf12854df85da mcextend: Add helper class useful for multiconfig d9018a3d9c828551c465b68b27920ec4681524ae selftest: Add multiconfig test Flipping the ordering to match warrior's behavior fixes the test case. Signed-off-by: Kyle Russell --- lib/bb/runqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 383c1832..0f2fdcee 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -2109,8 +2109,8 @@ class RunQueueExecuteTasks(RunQueueExecute): deps = self.rqdata.runtaskentries[revdep].depends provides = self.rqdata.dataCaches[mc].fn_provides[taskfn] taskhash = self.rqdata.runtaskentries[revdep].hash - taskdepdata[revdep] = [pn, taskname, fn, deps, provides, taskhash] deps = self.filtermcdeps(task, deps) + taskdepdata[revdep] = [pn, taskname, fn, deps, provides, taskhash] for revdep2 in deps: if revdep2 not in taskdepdata: additional.append(revdep2) -- 2.17.1