All of lore.kernel.org
 help / color / mirror / Atom feed
* FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
       [not found] <alpine.DEB.2.02.1311061346180.25975@oneiric>
@ 2013-11-06 19:11 ` Rifenbark, Scott M
  2013-11-06 20:38   ` Saul Wold
  0 siblings, 1 reply; 7+ messages in thread
From: Rifenbark, Scott M @ 2013-11-06 19:11 UTC (permalink / raw)
  To: Yocto discussion list

Anyone know this?

>-----Original Message-----
>From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>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
>
>
>  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.
>
>  that is, it's not really *explicitly* explained whether running that script with a
>port number *starts* the bitbake server. does it?
>
>rday


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-11-06 19:11 ` FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres Rifenbark, Scott M
@ 2013-11-06 20:38   ` Saul Wold
  2013-11-06 20:41     ` Robert P. J. Day
  0 siblings, 1 reply; 7+ messages in thread
From: Saul Wold @ 2013-11-06 20:38 UTC (permalink / raw)
  To: Rifenbark, Scott M, Yocto discussion list

On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
> Anyone know this?
>
>> -----Original Message-----
>> From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>> 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
>>
>>
>>   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.

>>   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!

>> rday
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-11-06 20:38   ` Saul Wold
@ 2013-11-06 20:41     ` Robert P. J. Day
  2013-11-07 15:35       ` Rifenbark, Scott M
  2013-11-07 16:37       ` Rifenbark, Scott M
  0 siblings, 2 replies; 7+ messages in thread
From: Robert P. J. Day @ 2013-11-06 20:41 UTC (permalink / raw)
  To: Saul Wold; +Cc: Yocto discussion list

On Wed, 6 Nov 2013, Saul Wold wrote:

> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
> > Anyone know this?
> >
> > > -----Original Message-----
> > > From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
> > > 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
> > >
> > >
> > >   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

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-11-06 20:41     ` Robert P. J. Day
@ 2013-11-07 15:35       ` Rifenbark, Scott M
  2013-11-07 16:37       ` Rifenbark, Scott M
  1 sibling, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2013-11-07 15:35 UTC (permalink / raw)
  To: Robert P. J. Day, Saul Wold; +Cc: Yocto discussion list

I will look at the wording

>-----Original Message-----
>From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>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-memres
>
>On Wed, 6 Nov 2013, Saul Wold wrote:
>
>> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
>> > Anyone know this?
>> >
>> > > -----Original Message-----
>> > > From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>> > > 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
>> > >
>> > >
>> > >   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
>
>Twitter:                                       http://twitter.com/rpjday
>LinkedIn:                               http://ca.linkedin.com/in/rpjday
>===========================================================
>=============


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-11-06 20:41     ` Robert P. J. Day
  2013-11-07 15:35       ` Rifenbark, Scott M
@ 2013-11-07 16:37       ` Rifenbark, Scott M
  2013-12-12  1:01         ` Rudolf Streif
  1 sibling, 1 reply; 7+ messages in thread
From: Rifenbark, Scott M @ 2013-11-07 16:37 UTC (permalink / raw)
  To: Robert P. J. Day, Saul Wold; +Cc: Yocto discussion list

I updated the section.  See if that is better. 

Thanks 
Scott

>-----Original Message-----
>From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>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-memres
>
>On Wed, 6 Nov 2013, Saul Wold wrote:
>
>> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
>> > Anyone know this?
>> >
>> > > -----Original Message-----
>> > > From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
>> > > 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
>> > >
>> > >
>> > >   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
>
>Twitter:                                       http://twitter.com/rpjday
>LinkedIn:                               http://ca.linkedin.com/in/rpjday
>===========================================================
>=============


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-11-07 16:37       ` Rifenbark, Scott M
@ 2013-12-12  1:01         ` Rudolf Streif
  2013-12-12 12:44           ` Rifenbark, Scott M
  0 siblings, 1 reply; 7+ messages in thread
From: Rudolf Streif @ 2013-12-12  1:01 UTC (permalink / raw)
  To: Rifenbark, Scott M; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 3558 bytes --]

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 <
scott.m.rifenbark@intel.com> wrote:

> I updated the section.  See if that is better.
>
> Thanks
> Scott
>
> >-----Original Message-----
> >From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
> >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-memres
> >
> >On Wed, 6 Nov 2013, Saul Wold wrote:
> >
> >> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
> >> > Anyone know this?
> >> >
> >> > > -----Original Message-----
> >> > > From: Robert P. J. Day [mailto:rpjday@crashcourse.ca]
> >> > > 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
> >> > >
> >> > >
> >> > >   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
> >
> >Twitter:                                       http://twitter.com/rpjday
> >LinkedIn:                               http://ca.linkedin.com/in/rpjday
> >===========================================================
> >=============
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

[-- Attachment #2: Type: text/html, Size: 5163 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres
  2013-12-12  1:01         ` Rudolf Streif
@ 2013-12-12 12:44           ` Rifenbark, Scott M
  0 siblings, 0 replies; 7+ messages in thread
From: Rifenbark, Scott M @ 2013-12-12 12:44 UTC (permalink / raw)
  To: Rudolf Streif; +Cc: Yocto discussion list

[-- Attachment #1: Type: text/plain, Size: 3936 bytes --]

I would opt for solution one as well since it makes it more consistent with the regular setup script.

Scott

From: Rudolf Streif [mailto:rstreif@linuxfoundation.org]
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 <scott.m.rifenbark@intel.com<mailto:scott.m.rifenbark@intel.com>> wrote:
I updated the section.  See if that is better.

Thanks
Scott

>-----Original Message-----
>From: Robert P. J. Day [mailto:rpjday@crashcourse.ca<mailto:rpjday@crashcourse.ca>]
>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-memres
>
>On Wed, 6 Nov 2013, Saul Wold wrote:
>
>> On 11/06/2013 11:11 AM, Rifenbark, Scott M wrote:
>> > Anyone know this?
>> >
>> > > -----Original Message-----
>> > > From: Robert P. J. Day [mailto:rpjday@crashcourse.ca<mailto:rpjday@crashcourse.ca>]
>> > > 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
>> > >
>> > >
>> > >   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
>
>Twitter:                                       http://twitter.com/rpjday
>LinkedIn:                               http://ca.linkedin.com/in/rpjday
>===========================================================
>=============
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto




[-- Attachment #2: Type: text/html, Size: 10110 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-12 12:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <alpine.DEB.2.02.1311061346180.25975@oneiric>
2013-11-06 19:11 ` FW: curious about ref manual, sec 6.1.11, oe-init-build-env-memres Rifenbark, Scott M
2013-11-06 20:38   ` Saul Wold
2013-11-06 20:41     ` Robert P. J. Day
2013-11-07 15:35       ` Rifenbark, Scott M
2013-11-07 16:37       ` Rifenbark, Scott M
2013-12-12  1:01         ` Rudolf Streif
2013-12-12 12:44           ` Rifenbark, Scott M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.