Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 51D34E00984; Tue, 14 Jun 2016 02:42:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [23.83.223.161 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 1205 seconds by postgrey-1.32 at yocto-www; Tue, 14 Jun 2016 02:42:38 PDT Received: from nv-egress-001.mailchannels.net (seahorse.cherry.relay.mailchannels.net [23.83.223.161]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DA616E007DA for ; Tue, 14 Jun 2016 02:42:37 -0700 (PDT) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 8A29E62DE3; Tue, 14 Jun 2016 09:04:59 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-220-9-73.us-west-2.compute.internal [10.220.9.73]) by relay.mailchannels.net (Postfix) with ESMTPA id ED5B2635C3; Tue, 14 Jun 2016 09:04:58 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.21.150.52]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.14); Tue, 14 Jun 2016 09:04:59 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1465895099256:3821934862 X-MC-Ingress-Time: 1465895099256 Received: from [176.251.19.34] (port=56878 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bCkJP-0006To-0L; Tue, 14 Jun 2016 05:07:07 -0400 From: Elliot Smith To: toaster@yoctoproject.org Date: Tue, 14 Jun 2016 10:04:53 +0100 Message-Id: <1465895093-8129-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 2.7.4 X-AuthUser: elliot@townx.org Subject: [PATCH] cooker: replace use of map() with list comprehension X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 09:42:44 -0000 In Python 3, map() returns an interator rather than a list. This causes problems for Toaster, which is unable to process the BuildInit event when it is received. This causes the build to "hang" from Toaster's point of view. Replace the call to map() with a list comprehension instead, which returns the list which Toaster is expecting and enables builds to register. Signed-off-by: Elliot Smith --- bitbake/lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 0a0b362..204709c 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1367,7 +1367,7 @@ class BBCooker: # build a list of target:task strings in format # ['zlib:do_build', 'mpfr-native:do_build', ...] - packages = map(lambda target: "%s:do_%s" % (target, task), targets) + packages = ["%s:do_%s" % (target, task) for target in targets] bb.event.fire(bb.event.BuildInit(packages), self.expanded_data) def buildTargetsIdle(server, rq, abort): -- 2.7.4