From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tim.rpsys.net (93-97-173-237.zone5.bethere.co.uk [93.97.173.237]) by mx1.pokylinux.org (Postfix) with ESMTP id 5E52C4C8043A for ; Fri, 27 May 2011 07:52:29 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p4RCnJZA002264; Fri, 27 May 2011 13:49:19 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02040-05; Fri, 27 May 2011 13:49:15 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id p4RCnDuP002258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 13:49:14 +0100 From: Richard Purdie To: Gerard van den Bosch In-Reply-To: <4DDF404D.2010504@de-haardt.com> References: <4DDE01BB.3000109@de-haardt.com> <1306402981.27470.97.camel@rex> <4DDE37EE.101@de-haardt.com> <1306418056.27470.181.camel@rex> <4DDF404D.2010504@de-haardt.com> Date: Fri, 27 May 2011 13:49:07 +0100 Message-ID: <1306500547.27470.269.camel@rex> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-Virus-Scanned: amavisd-new at rpsys.net Cc: poky Subject: Re: wrong rpm name qt package X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 12:52:29 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2011-05-27 at 08:10 +0200, Gerard van den Bosch wrote: > Ok, I have tried the following with the Bernard release: > > print "hello" > print bb.data.getVar('BB_WORKERCONTEXT', d, True) > if bb.data.getVar('BB_WORKERCONTEXT', d, True) is not None: > print "hello2" > runtime_mapping_rename("PACKAGE_INSTALL", d) > runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", d) > The "hello" gets printed, and the variable outputs "None", the "hello2" doesn't get printed because the variable is None. > > In the laverne release I use here it checks on something else namely: > if bb.data.getVar('__RUNQUEUE_DO_NOT_USE_EXTERNALLY', d, True) is not None: > I can't add print commands there because it gives ident errors, found that has something todo with spaces but couldn't get it working. > > I tried searching some further, I see in this commit that the if is added, that is in the laverne release: > http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/meta/classes/image.bbclass?id=4e0ee648b4c18b770aba11921370258f3e2aaeef > > Then a few commits later it is changed to the BB_WORKERCONTEXT: > http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/meta/classes/image.bbclass?id=e427f251a457f3015c4b1cdf1648c53a9acc646d > > Thus I tried to figure out what sets the BB_WORKERCONTEXT, I found it in two files in bitbake namely cooker.py and runqueue.py. > Eventually it leads to the loading of the configuration file and something set BB_WORKERCONTEXT then but I couldn't figure out what sets the variable. > > I looked up the commits where it is added to bitbake: > http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/runqueue.py?id=1f3e313fd5cc5ae8ea838bf8fcdedace3cb72584 > http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb/cooker.py?id=ca09a6f08cc29f79f9742058d737deaef9d6d5ef > > But I couldn't figure out what the changes did and I did not come further than this. > If I need to try something else out, let me know. This code only triggers at rootfs generation time. I've discovered this broken in master at least. To test I did: bitbake -b /path/to/some-image.bb -c rootfs and then saw: NOTE: Preparing runqueue NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks ERROR: Start package mapping ERROR: Found package mapping NOTE: Running task 10 of 10 (ID: 6, /media/build2/builds/rptest/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) NOTE: package core-image-minimal-1.0-r0: task do_rootfs: Started ^C with the following in image.bbclass: bb.error("Start package mapping") if bb.data.getVar('BB_WORKERCONTEXT', d, True) is not None: bb.error("Found package mapping") runtime_mapping_rename("PACKAGE_INSTALL", d) when I'd fixed the underlying problem. Cheers, Richard