Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 12610E00B70; Mon, 9 Nov 2015 02:42:11 -0800 (PST) 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 * [134.134.136.65 listed in list.dnswl.org] * -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 BCB70E00AB0 for ; Mon, 9 Nov 2015 02:42:09 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 09 Nov 2015 02:42:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,265,1444719600"; d="scan'208";a="846582843" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga002.fm.intel.com with ESMTP; 09 Nov 2015 02:42:08 -0800 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by irsmsx105.ger.corp.intel.com (163.33.3.28) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 9 Nov 2015 10:42:06 +0000 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.163]) by irsmsx112.ger.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0248.002; Mon, 9 Nov 2015 10:42:06 +0000 From: "Barros Pena, Belen" To: Brian Avery , Belen Barros Pena Thread-Topic: [Toaster] [PATCH] toaster: Improve messaging when conf file not found Thread-Index: AQHRGttGMFyNxu2uPkeohi4VEwCVWQ== Date: Mon, 9 Nov 2015 10:42:05 +0000 Message-ID: References: <1446812748-2018-1-git-send-email-belen.barros.pena@linux.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.7.151005 x-originating-ip: [10.237.224.38] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH] toaster: Improve messaging when conf file not found 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: Mon, 09 Nov 2015 10:42:11 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <3BA538A76B0F8149815D22B7CD36A1BB@intel.com> Content-Transfer-Encoding: quoted-printable On 06/11/2015 18:15, "toaster-bounces@yoctoproject.org on behalf of Brian Avery" wrote: >2 things. >1) encouraging people to modify the script scares me. these variables >are better/more safely set in the environment. Sorry, I didn't really mean to suggest the right way of setting the variable. The point of the patch was highlighting that the string, as is, tells me what to do, but not how to do it, which: 1. It's not very useful 2. Means that I am likely to do it wrong (as in fact I did). Whichever way is the right way of setting the variable, it needs to be explained whenever toasterconf.json is not found. > we should probably do >something like: >echo " "$TOASTER_CONF configuration file not found. Set the >TOASTER_CONF variable in your env and export it i.e. $>export >TOASTER_CONF=3D/home/me/mytoasterconf.json" > >2) I switched (again) the way toasterconf's are done in response to a >valid Khem/Paul complaint wrt the fact that we should use the same >template approach that bb uses to decide between meta/conf and >meta-yocto/conf. >https://lists.yoctoproject.org/pipermail/toaster/2015-November/003268.html Right, the string in this patch has the same problem: "echo "$TOASTER_CONF configuration file not found. Set TOASTER_CONF to specify file or fix .templateconf"" This string needs to tell me: 1. How to set TOASTER_CONF 2. How to fix .templateconf We can fix the text after the patch is merged: no hurry. Cheers Bel=E9n Tibh > >-b > >On Fri, Nov 6, 2015 at 4:25 AM, Belen Barros Pena > wrote: >> From: Belen Barros Pena >> >> If the toasterconf.json file specified in TOASTER_CONF >> does not exist, you get a message asking you to set >> TOASTER_CONF to the path of a valid configuration file. >> >> The message, however, doesn't tell you where to set >> TOASTER_CONF. Specify that you set TOASTER_CONF in the >> bitbake/bin/toaster script to save people the proverbial >> grepping. >> >> Signed-off-by: Belen Barros Pena >> --- >> bitbake/bin/toaster | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster >> index 2c3432c..db02bc3 100755 >> --- a/bitbake/bin/toaster >> +++ b/bitbake/bin/toaster >> @@ -200,7 +200,7 @@ if [ "$TOASTER_CONF" =3D "" ]; then >> export TOASTER_CONF=3D$(python -c "import os; print >>os.path.realpath('$TOASTER_CONF')") >> fi >> if [ ! -f $TOASTER_CONF ]; then >> - echo "$TOASTER_CONF configuration file not found. set TOASTER_CONF >>to specify a path" >> + echo "$TOASTER_CONF configuration file not found. Set the >>TOASTER_CONF variable in the \"bitbake/bin/toaster\" script to specify >>the path to a Toaster configuration file." >> [ "$TOASTER_MANAGED" =3D '1' ] && exit 1 || return 1 >> fi >> # this defines the dir toaster will use for >> -- >> 2.4.9 (Apple Git-60) >> >> -- >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster