<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:2009165567;
mso-list-template-ids:-33500544;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I would opt for solution one as well since it makes it more consistent with the regular setup script.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Scott<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Rudolf Streif [mailto:rstreif@linuxfoundation.org]
<br>
<b>Sent:</b> Wednesday, December 11, 2013 5:01 PM<br>
<b>To:</b> Rifenbark, Scott M<br>
<b>Cc:</b> Robert P. J. Day; Saul Wold; Yocto discussion list<br>
<b>Subject:</b> Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I am picking up this thread since I have been mocking around with the bitbake server.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The use of the oe-init-build-env-memresscript is<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">source oe-init-build-env-memres <portnumber> <buildenv><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The documentation suggests that you can omit the portnumber in which case the script would use 12345. According to my tests with master [1] that is apparently not the case. If you omit the portnumber such as<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">source oe-init-build-env-memres mybuildenv<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> the script will create a build environment with the name build and then tries to convert mybuildenv into a portnumber wich will most likely fail unless you used an integer number for the name of your build environment.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">This behavior is expected since how would the script for a simple variable list that does not use any option names be able to reliably detect if the first parameter is a portnumber or a build environment name?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">There are two possible fixes for that:<o:p></o:p></p>
</div>
<div>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Reverse the order of the two arguments in which case you can omit either the portnumber or both arguments. It would also make the command line of the script more consistent with oe-init-build-env.<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Check if the first argument is an integer (since portnumbers are always integers).<o:p></o:p></li></ol>
</div>
<div>
<p class="MsoNormal">I would prefer 1. but then Scott would have to change the documentation. I can submit a patch if that is any interest.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">BTW, is the protocol that the bitbake server expects on that port documented somewhere (other than the source code that is)?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Rudi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[1] master:c9b2e30988a9eb514d42a4cf4266b032ffc36f98<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Nov 7, 2013 at 8:37 AM, Rifenbark, Scott M <<a href="mailto:scott.m.rifenbark@intel.com" target="_blank">scott.m.rifenbark@intel.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">I updated the section. See if that is better.<br>
<br>
Thanks<br>
<span style="color:#888888">Scott</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
>-----Original Message-----<br>
>From: Robert P. J. Day [mailto:<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>]<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">>Sent: Wednesday, November 06, 2013 12:41 PM<br>
>To: Saul Wold<br>
>Cc: Rifenbark, Scott M; Yocto discussion list<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">>Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build-<br>
>env-memres<br>
><br>
>On Wed, 6 Nov 2013, Saul Wold wrote:<br>
><br>
>> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:<br>
>> > Anyone know this?<br>
>> ><br>
>> > > -----Original Message-----<br>
>> > > From: Robert P. J. Day [mailto:<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>]<br>
>> > > Sent: Wednesday, November 06, 2013 10:48 AM<br>
>> > > To: Rifenbark, Scott M<br>
>> > > Subject: curious about ref manual, sec 6.1.11,<br>
>> > > oe-init-build-env-memres<br>
>> > ><br>
>> > ><br>
>> > > i've never used that memory-resident version of bitbake -- it's<br>
>> > > not clear from that section whether you need to start bitbake<br>
>> > > running before you run that script.<br>
>> > ><br>
>> Running that scripts will start the server at the default port of<br>
>> 12345 and setup the default "build" directory.<br>
><br>
> i suspected as much, but the way that section is worded, that isn't clear.<br>
>thanks.<br>
><br>
>rday<br>
><br>
>--<br>
><br>
>===========================================================<br>
>=============<br>
>Robert P. J. Day Ottawa, Ontario, CANADA<br>
> <a href="http://crashcourse.ca" target="_blank">http://crashcourse.ca</a><br>
><br>
>Twitter: <a href="http://twitter.com/rpjday" target="_blank">
http://twitter.com/rpjday</a><br>
>LinkedIn: <a href="http://ca.linkedin.com/in/rpjday" target="_blank">
http://ca.linkedin.com/in/rpjday</a><br>
>===========================================================<br>
>=============<br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>