curious about ref manual, sec 6.1.11, oe-init-build-env-memres
A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.02.1311061346180.25975@oneiric
Anyone know this?
Quoted 15 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresi've never used that memory-resident version of bitbake -- it's not clear from
that section whether you need to start bitbake running before you run that script.that is, it's not really *explicitly* explained whether running that script with a
port number *starts* the bitbake server. does it?rday
Quoted 13 lines · Scott M
Anyone know this?
Quoted 11 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresi've never used that memory-resident version of bitbake -- it's not clear from
that section whether you need to start bitbake running before you run that script.
Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
Quoted 3 lines
Quoted 3 lines
that is, it's not really *explicitly* explained whether running that script with a
port number *starts* the bitbake server. does it?
Yes, running the script with a port number will start the server using that port number.
The bitbake -m command will Stop the server.
Sau!
Quoted 6 lines
Quoted 1 line
rday
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 10 lines · Saul Wold
Quoted 9 lines · Scott M
Anyone know this?
Quoted 7 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
i've never used that memory-resident version of bitbake -- it's not
clear from
that section whether you need to start bitbake running before you run that script.Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
i suspected as much, but the way that section is worded, that isn't
clear. thanks.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================I will look at the wording
Quoted 44 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 12:41 PM
To: Saul Wold
Cc: Rifenbark, Scott M; Yocto discussion list
Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build- env-memresQuoted 11 lines · Saul Wold
Quoted 10 lines · Scott M
Anyone know this?
Quoted 8 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresQuoted 6 lines
Quoted 4 lines
Quoted 4 lines
i've never used that memory-resident version of bitbake -- it's
not clear from that section whether you need to start bitbake running before you run that script.Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
i suspected as much, but the way that section is worded, that isn't clear.
thanks.rday
--
===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday===========================================================
=============
I updated the section. See if that is better.
Thanks
Scott
Quoted 44 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 12:41 PM
To: Saul Wold
Cc: Rifenbark, Scott M; Yocto discussion list
Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build- env-memresQuoted 11 lines · Saul Wold
Quoted 10 lines · Scott M
Anyone know this?
Quoted 8 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresQuoted 6 lines
Quoted 4 lines
Quoted 4 lines
i've never used that memory-resident version of bitbake -- it's
not clear from that section whether you need to start bitbake running before you run that script.Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
i suspected as much, but the way that section is worded, that isn't clear.
thanks.rday
--
===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caTwitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday===========================================================
=============
I am picking up this thread since I have been mocking around with the bitbake server.
The use of the oe-init-build-env-memresscript is
source oe-init-build-env-memres <portnumber> <buildenv>
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
source oe-init-build-env-memres mybuildenv
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.
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?
There are two possible fixes for that:
1. 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.
2. Check if the first argument is an integer (since portnumbers are always integers).
I would prefer 1. but then Scott would have to change the documentation. I can submit a patch if that is any interest.
BTW, is the protocol that the bitbake server expects on that port documented somewhere (other than the source code that is)?
Cheers,
Rudi
[1] master:c9b2e30988a9eb514d42a4cf4266b032ffc36f98
Quoted 56 lines · Scott M
I updated the section. See if that is better.
Thanks
ScottQuoted 6 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 12:41 PM
To: Saul Wold
Cc: Rifenbark, Scott M; Yocto discussion list
Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11,oe-init-build-
Quoted 15 lines
env-memres
Quoted 11 lines · Saul Wold
Quoted 10 lines · Scott M
Anyone know this?
Quoted 8 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresQuoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
i've never used that memory-resident version of bitbake -- it's
not clear from that section whether you need to start bitbake running before you run that script.Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
i suspected as much, but the way that section is worded, that isn't
clear.
Quoted 11 lines
thanks.
rday
--
===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.caQuoted 4 lines
Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday===========================================================
=============_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
I would opt for solution one as well since it makes it more consistent with the regular setup script.
Scott
From: Rudolf Streif [mailto:[email protected]]
Sent: Wednesday, December 11, 2013 5:01 PM
To: Rifenbark, Scott M
Cc: Robert P. J. Day; Saul Wold; Yocto discussion list
Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
I am picking up this thread since I have been mocking around with the bitbake server.
The use of the oe-init-build-env-memresscript is
source oe-init-build-env-memres <portnumber> <buildenv>
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
source oe-init-build-env-memres mybuildenv
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.
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?
There are two possible fixes for that:
1. 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.
2. Check if the first argument is an integer (since portnumbers are always integers).
I would prefer 1. but then Scott would have to change the documentation. I can submit a patch if that is any interest.
BTW, is the protocol that the bitbake server expects on that port documented somewhere (other than the source code that is)?
Cheers,
Rudi
[1] master:c9b2e30988a9eb514d42a4cf4266b032ffc36f98
On Thu, Nov 7, 2013 at 8:37 AM, Rifenbark, Scott M <[email protected]<mailto:[email protected]>> wrote:
I updated the section. See if that is better.
Thanks
Scott
Quoted 40 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, November 06, 2013 12:41 PM
To: Saul Wold
Cc: Rifenbark, Scott M; Yocto discussion list
Subject: Re: [yocto] FW: curious about ref manual, sec 6.1.11, oe-init-build- env-memresQuoted 11 lines · Saul Wold
Quoted 10 lines · Scott M
Anyone know this?
Quoted 8 lines
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, November 06, 2013 10:48 AM
To: Rifenbark, Scott M
Subject: curious about ref manual, sec 6.1.11, oe-init-build-env-memresQuoted 6 lines
Quoted 4 lines
Quoted 4 lines
i've never used that memory-resident version of bitbake -- it's
not clear from that section whether you need to start bitbake running before you run that script.Running that scripts will start the server at the default port of 12345 and setup the default "build" directory.
i suspected as much, but the way that section is worded, that isn't clear.
thanks.rday
--
===========================================================
=============
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Quoted 4 lines
Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday===========================================================
=============
_______________________________________________
yocto mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto