Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3D192E00AC1; Thu, 15 Oct 2015 03:54:09 -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,NORMAL_HTTP_TO_IP, RCVD_IN_DNSWL_HI,WEIRD_PORT 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 * [134.134.136.65 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * 0.0 NORMAL_HTTP_TO_IP URI: URI host has a public dotted-decimal IPv4 * address * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C5BCFE00A49 for ; Thu, 15 Oct 2015 03:54:07 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 15 Oct 2015 03:54:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,684,1437462000"; d="scan'208";a="664858433" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga003.jf.intel.com with ESMTP; 15 Oct 2015 03:54:01 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.151]) by IRSMSX106.ger.corp.intel.com ([169.254.8.229]) with mapi id 14.03.0248.002; Thu, 15 Oct 2015 11:50:02 +0100 From: "Barros Pena, Belen" To: "ed.bartosh@linux.intel.com" , Brian Avery Thread-Topic: [Toaster] [PATCH 0/4] Fixes for toaster script Thread-Index: AQHRBnyedCtHcvsxeUqYR9shRbd31Z5q9lKAgABh6ICAAEGOAIAAEO4AgAB6KQCAADyjgA== Date: Thu, 15 Oct 2015 10:50:02 +0000 Message-ID: References: <20151015081300.GA18320@linux.intel.com> In-Reply-To: <20151015081300.GA18320@linux.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.6.150930 x-originating-ip: [10.237.224.32] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH 0/4] Fixes for toaster script 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, 15 Oct 2015 10:54:09 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <4388495DB096BA41BA9849C97B02AB85@intel.com> Content-Transfer-Encoding: quoted-printable On 15/10/2015 09:13, "Ed Bartosh" wrote: >On Wed, Oct 14, 2015 at 05:55:46PM -0700, Brian Avery wrote: >> Also, >>=20 >> Michael mentioned that he didn't have realpath installed (on ubuntu it >> is a separate dpkg). This patch will check for realpath and if it >> doesn't find it, it will look for readlink (readlink -f will >> accomplish the same thing as realpath) and if it doesn't find that it >> will complain and exit. >> -b >>=20 > >Thank you for review and testing! > >Fixed both issues and updated ed/toaster/fixes-for-toaster-script >please review and submit I've been playing with this for a bit. To make sure nothing in my tree was making things magically work, I made a clean clone of Ed's branch. Everything works like a charm as long as I issue the commands from inside the poky directory. I can source the environment script, then source the toaster script and Toaster starts in analysis mode, although without importing any toasterconf.json file (which is probably ok, since I don't need any releases or layer information from the layer index if I am running builds from cli). I can then do source toaster stop and toaster stops. From a clean shell, I can then do bitbake/bin/toaster and start Toaster in build mode. The meta-yocto/conf/toasterconf.json file is imported, the data from the layer index is fetched, and I can happily run a build. However, if I try to source the toaster script from outside the poky directory, I get this error: Installed 0 object(s) from 0 fixture(s) Starting webserver... Webserver address: http://0.0.0.0:8000/ The BBPATH variable is not set and bitbake did not find a conf/bblayers.conf file in the expected location. Maybe you accidentally invoked bitbake from the wrong directory? DEBUG: Removed the following variables from the environment: LESSOPEN, SSH_CLIENT, VIRTUALENVWRAPPER_SCRIPT, TOASTER_CONF, LANG, LANGUAGE, SHLVL, QT_QPA_PLATFORMTHEME, _VIRTUALENVWRAPPER_API, XDG_RUNTIME_DIR, SSH_SOCKS_SERVER, socks_proxy, TOASTER_DIR, XDG_SESSION_ID, _, SSH_CONNECTION, LESSCLOSE, BUILDDIR, SSH_TTY, OLDPWD, MAIL, LS_COLORS Bitbake server start failed Failed to read bitbake.lock ([Errno 2] No such file or directory: './bitbake.lock'), invalid port [1]+ Terminated python $BBBASEDIR/lib/toaster/manage.py runserver "0.0.0.0:$WEB_PORT" < /dev/null >> ${BUILDDIR}/toaster_web.log 2>&1 lsof: status error on bitbake.lock: No such file or directory lsof 4.86 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] Use the ``-h'' option to get more help information. Failed start. =20 > >>=20 >> On Wed, Oct 14, 2015 at 4:55 PM, Brian Avery >>wrote: >> > The source of the problem is that you switched from the meta-yocto >> > toasterconf to the meta toasterconf as the default. The >> > meta/conf/toasterconf.json is only for pure open embedded (non poky) >> > runs. It shouldn't be the default as it can't build anything unless >> > you add some layers by hand. >> > >> > - export=20 >>TOASTER_CONF=3D"$BIN_DIR/../../meta-yocto/conf/toasterconf.json" >> > >> > + TOASTER_CONF=3D"$(dirname >>$TOASTER)/../../meta/conf/toasterconf.json" >> > >> > On the assumption that this was a typo, I amended your git 8d7023f41 >> > to be meta-yocto and signed off on it. I also signed off on the other >> > 3 commits. >> > >> > If you agree that this amend makes sense, go ahead and upstream it and >> > add it to toaster-next. It already has 2 signoffs on it so it's good >> > to go. >> > >> > the branch with the 2 signoffs is on >> > bavery/submit/ed/2015-10-14_fix-script-for-2-modes on poky-contrib. >> > >> > -b >> > >> > On Wed, Oct 14, 2015 at 1:00 PM, Brian Avery >>wrote: >> >> Tried it but had an issue. >> >> To replicate issue >> >> be in a directory that is *not* poky >> >>> ~/src/poky/bitbake/bin/toaster >> >> then make a new project. >> >> you will see that it does not have enough layers. (missing meta and >>meta-yocto) >> >> building bash then fails with >> >> ShellCmdException: command: git clone "" >> >>=20 >>"/home/bavery/src/intel/yocto-builds/TOASTER/myBugs2/elliot-cli-8231/mana >>ged/_toaster_clones/__master" >> >> >> >> fatal: repository '' does not exist >> >> >> >> >> >> Note, if this is done from the poky directory, it works, but it needs >> >> to work from a build dir as well so people do not *have* to dirty up >> >> their src dir. >> >> -b >> >> >> >> On Wed, Oct 14, 2015 at 6:10 AM, Barros Pena, Belen >> >> wrote: >> >>> >> >>> >> >>> On 14/10/2015 13:33, "toaster-bounces@yoctoproject.org on behalf of >>Ed >> >>> Bartosh" > >>> ed.bartosh@linux.intel.com> wrote: >> >>> >> >>>>Hi, >> >>>> >> >>>>This patchset should make toaster script working in both modes. >> >>>>It was not possible due to the way TOASTER_CONF variable was set. >> >>>> >> >>>>The following changes since commit >> >>>>c1ba977bf55424bf9f9e899db89eafa338edccb4: >> >>>> >> >>>> toaster: importlayer Update property names for importlayer api >>calls >> >>>>(2015-10-14 14:11:23 +0300) >> >>>> >> >>>>are available in the git repository at: >> >>>> >> >>>> git://git.yoctoproject.org/poky-contrib >> >>>>ed/toaster/fixes-for-toaster-script >> >>>> >>=20 >>>>>>http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=3Ded/toaster= /f >>>>>>ixes- >> >>>>for-toaster-script >> >>> >> >>> Pending code review, this works for me. I can start toaster in >>'build' >> >>> mode the usual way (bitbake/bin/toaster) and I can start toaster in >> >>> 'analysis' mode by sourcing the build environment script, then >>sourcing >> >>> the toaster script (. ../bitbake/bin/toaster). >> >>> >> >>> Both modes build for me, and cli builds are picked up by Toaster. >> >>> >> >>> Cheers >> >>> >> >>> Bel=E9n >> >>> >> >>>> >> >>>>Ed Bartosh (4): >> >>>> toaster: use path to the script to guess config path >> >>>> toaster: get rid of SRCFILE >> >>>> toaster: set TOASTER_MANAGED variable >> >>>> toaster: exit or return depending on the mode >> >>>> >> >>>> bitbake/bin/toaster | 16 +++++++--------- >> >>>> 1 file changed, 7 insertions(+), 9 deletions(-) >> >>>> >> >>>>-- >> >>>>2.1.4 >> >>>> >> >>>>-- >> >>>>_______________________________________________ >> >>>>toaster mailing list >> >>>>toaster@yoctoproject.org >> >>>>https://lists.yoctoproject.org/listinfo/toaster >> >>> >> >>> -- >> >>> _______________________________________________ >> >>> toaster mailing list >> >>> toaster@yoctoproject.org >> >>> https://lists.yoctoproject.org/listinfo/toaster > > > >--=20 >-- >Regards, >Ed