Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4AB65E00D87; Thu, 5 Oct 2017 15:35:02 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C168EE00CE2 for ; Thu, 5 Oct 2017 15:35:01 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Oct 2017 15:35:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,482,1500966000"; d="scan'208";a="1202759609" Received: from pnaidu-mobl.gar.corp.intel.com (HELO peggleto-mobl.ger.corp.intel.com) ([10.255.147.41]) by fmsmga001.fm.intel.com with ESMTP; 05 Oct 2017 15:34:58 -0700 From: Paul Eggleton To: David Reyna Date: Fri, 06 Oct 2017 11:34:54 +1300 Message-ID: <1659049.NP7vGGAN2D@peggleto-mobl.ger.corp.intel.com> Organization: Intel Corporation In-Reply-To: <1507233881-14893-1-git-send-email-david.reyna@windriver.com> References: <1507233881-14893-1-git-send-email-david.reyna@windriver.com> MIME-Version: 1.0 Cc: toaster@yoctoproject.org Subject: Re: [PATCH] toaster: build missing toaster.conf settings 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: Thu, 05 Oct 2017 22:35:02 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi David, On Friday, 6 October 2017 9:04:41 AM NZDT David Reyna wrote: > From: David Reyna > > The bitbake server changed such that the Toaster custom settings from > 'toaster.conf' and 'toaster-bblayers.conf' that were set when > the '--server-only' mode was started were lost when the subsequent build > request happened, resulting in builds missing all custom changes. > > This patch asserts those environment settings in both server calls. > > [YOCTO #12194] > > Signed-off-by: David Reyna > --- > bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py > index a2ca95b..83cb703 100644 > --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py > +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py > @@ -381,9 +381,10 @@ class LocalhostBEController(BuildEnvironmentController): > local_bitbake = os.path.join(os.path.dirname(os.getenv('BBBASEDIR')), > 'bitbake') > self._shellcmd(['bash -c \"(TOASTER_BRBE="%s" BBSERVER="0.0.0.0:%s" ' > - '%s %s -u toasterui --token="" >>%s 2>&1;' > + '%s %s -u toasterui --read %s --read %s --token="" >>%s 2>&1;' > 'BITBAKE_UI="knotty" BBSERVER=0.0.0.0:%s %s -m)&\"' \ > - % (brbe, self.be.bbport, local_bitbake, bbtargets, log, self.be.bbport, bitbake)], > + % (brbe, self.be.bbport, local_bitbake, bbtargets, confpath, toasterlayers, log, > + self.be.bbport, bitbake,)], > builddir, nowait=True) > > logger.debug('localhostbecontroller: Build launched, exiting. ' > So after a pointer from Brian I looked at this and the change in behaviour is correct - bitbake will clear out any prefiles specified in a previous invocation even if that was the invocation that started the server. This behaviour wasn't well-defined and so it was working by accident beforehand. We didn't appreciate that it would break Toaster however, sorry about that. We definitely need this fixed for 2.4 so I will send this to the bitbake list with my sign-off and hopefully that will accelerate getting the fix in. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre