Skip to contentSkip to conversation

are the fetch-related variables in bitbake's bitbake.conf of any value?

DISCUSSION Robert P. J. Day 3 participants 6 messages Jun 20, 2014 – Jun 25, 2014

lore
Share & tools
lore
#0 lore raw

more specific question related to my earlier post -- is there any
value whatever in the variables in bitbake's bitbake.conf file of the form:

FETCHCOMMAND*
RESUMECOMMAND*
UPDATECOMMAND*
MKTEMP*CMD

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

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
========================================================================
#1 lore raw
Quoted 5 lines · Robert P. J. Day

more specific question related to my earlier post -- is there any
value whatever in the variables in bitbake's bitbake.conf file of the form:

Quoted 8 lines

FETCHCOMMAND*
RESUMECOMMAND*
UPDATECOMMAND*
MKTEMP*CMD

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

As far as I know, as you say, those were deprecated in favor of the FETCHCMD vars, so can almost certainly be dropped.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 12 lines · Christopher Larson

On Fri, Jun 20, 2014 at 9:00 AM, Robert P. J. Day <[email protected]> wrote:

  more specific question related to my earlier post -- is there any value whatever in the variables in bitbake's bitbake.conf file of the form:

  FETCHCOMMAND*
  RESUMECOMMAND*
  UPDATECOMMAND*
  MKTEMP*CMD

Quoted 6 lines

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

As far as I know, as you say, those were deprecated in favor of the FETCHCMD vars, so can almost certainly be dropped.

one more question before i submit a patch to do some cleaning.
AFAICT, the bitbake.conf settings for RESUMECOMMAND* and UPDATECOMMAND* variables can be removed as well since nothing in bitbake refers to those variables, and it seems logical that bitbake should not be setting variables that it doesn't directly use in some way.

however, i'm puzzled by this from the bitbake codebase:

$ grep -r "MKTEMP.*CMD" *
conf/bitbake.conf:MKTEMPCMD = "mktemp -q ${TMPBASE}"
conf/bitbake.conf:MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
lib/toaster/orm/fixtures/orm_views_testdata.json:        "variable_name": "MKTEMPCMD"
lib/toaster/orm/fixtures/orm_views_testdata.json:        "variable_name": "MKTEMPDIRCMD"
$

so the only reference to the MKTEMP-related variables are in the
toaster directory in some .json files. what does that mean? if one wanted to remove the MKTEMP* variables, would one also have to adjust those .json files accordingly?

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
========================================================================
#3 lore raw
Quoted 20 lines · On Friday 20 June 2014 12:23:12 Robert P. J. Day wrote:
Quoted 12 lines · Christopher Larson

On Fri, Jun 20, 2014 at 9:00 AM, Robert P. J. Day <[email protected]> wrote:

more specific question related to my earlier post -- is there any
value whatever in the variables in bitbake's bitbake.conf file of the form:

FETCHCOMMAND*
RESUMECOMMAND*
UPDATECOMMAND*
MKTEMP*CMD

Quoted 6 lines

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

As far as I know, as you say, those were deprecated in favor of the FETCHCMD vars, so can almost certainly be dropped.

Quoted 6 lines

one more question before i submit a patch to do some cleaning.
AFAICT, the bitbake.conf settings for RESUMECOMMAND* and UPDATECOMMAND* variables can be removed as well since nothing in bitbake refers to those variables, and it seems logical that bitbake should not be setting variables that it doesn't directly use in some way.

Those look old to me as well.

Quoted 9 lines

however, i'm puzzled by this from the bitbake codebase:

$ grep -r "MKTEMP.*CMD" *
conf/bitbake.conf:MKTEMPCMD = "mktemp -q ${TMPBASE}"
conf/bitbake.conf:MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
lib/toaster/orm/fixtures/orm_views_testdata.json:        "variable_name":
"MKTEMPCMD" lib/toaster/orm/fixtures/orm_views_testdata.json:       
"variable_name": "MKTEMPDIRCMD" $
Quoted 4 lines

so the only reference to the MKTEMP-related variables are in the
toaster directory in some .json files. what does that mean? if one wanted to remove the MKTEMP* variables, would one also have to adjust those .json files accordingly?

The intention is to provide a way for QA verify that Toaster is collecting the variable data correctly, but because the json files contain every variable value, they are already out-of-date. We probably ought to filter the list that is used for that test to make it more maintainable.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 44 lines · Paul Eggleton
Quoted 20 lines · On Friday 20 June 2014 12:23:12 Robert P. J. Day wrote:
Quoted 12 lines · Christopher Larson

On Fri, Jun 20, 2014 at 9:00 AM, Robert P. J. Day <[email protected]> wrote:

more specific question related to my earlier post -- is there any
value whatever in the variables in bitbake's bitbake.conf file of the form:

FETCHCOMMAND*
RESUMECOMMAND*
UPDATECOMMAND*
MKTEMP*CMD

Quoted 6 lines

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

As far as I know, as you say, those were deprecated in favor of the FETCHCMD vars, so can almost certainly be dropped.

Quoted 6 lines

one more question before i submit a patch to do some cleaning.
AFAICT, the bitbake.conf settings for RESUMECOMMAND* and UPDATECOMMAND* variables can be removed as well since nothing in bitbake refers to those variables, and it seems logical that bitbake should not be setting variables that it doesn't directly use in some way.

Those look old to me as well.

Quoted 9 lines

however, i'm puzzled by this from the bitbake codebase:

$ grep -r "MKTEMP.*CMD" *
conf/bitbake.conf:MKTEMPCMD = "mktemp -q ${TMPBASE}"
conf/bitbake.conf:MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
lib/toaster/orm/fixtures/orm_views_testdata.json:        "variable_name":
"MKTEMPCMD" lib/toaster/orm/fixtures/orm_views_testdata.json:
"variable_name": "MKTEMPDIRCMD" $
Quoted 4 lines

so the only reference to the MKTEMP-related variables are in the
toaster directory in some .json files. what does that mean? if one wanted to remove the MKTEMP* variables, would one also have to adjust those .json files accordingly?

Quoted 5 lines

The intention is to provide a way for QA verify that Toaster is collecting the variable data correctly, but because the json files contain every variable value, they are already out-of-date. We probably ought to filter the list that is used for that test to make it more maintainable.

so, in short, it should be safe to ditch the
{FETCH,RESUME,UPDATE}COMMAND variable settings, but i'm still unclear on what would need to be done re: the MKTEMP* variables -- i'll just submit a patch taking out the first set, and let someone else worry about the ones that show up in json files.

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
========================================================================
#5 lore raw
Quoted 55 lines · On Wednesday 25 June 2014 11:03:44 Robert P. J. Day wrote:
Quoted 48 lines · Paul Eggleton
Quoted 22 lines · On Friday 20 June 2014 12:23:12 Robert P. J. Day wrote:
Quoted 14 lines · Christopher Larson

On Fri, Jun 20, 2014 at 9:00 AM, Robert P. J. Day
<[email protected]>

wrote:
more specific question related to my earlier post -- is there any

value whatever in the variables in bitbake's bitbake.conf file of the

form:
FETCHCOMMAND*
RESUMECOMMAND*
UPDATECOMMAND*
MKTEMP*CMD

Quoted 7 lines

nothing seems to use any of those. can they all just be deleted? certainly, the FETCHCOMMAND* variables have been superseded by the FETCHCMD* variables, no? i don't know about the remainder of them.

As far as I know, as you say, those were deprecated in favor of the FETCHCMD vars, so can almost certainly be dropped.

Quoted 7 lines

one more question before i submit a patch to do some cleaning.

AFAICT, the bitbake.conf settings for RESUMECOMMAND* and UPDATECOMMAND* variables can be removed as well since nothing in bitbake refers to those variables, and it seems logical that bitbake should not be setting variables that it doesn't directly use in some way.

Those look old to me as well.

Quoted 9 lines

however, i'm puzzled by this from the bitbake codebase:

$ grep -r "MKTEMP.*CMD" *
conf/bitbake.conf:MKTEMPCMD = "mktemp -q ${TMPBASE}"
conf/bitbake.conf:MKTEMPDIRCMD = "mktemp -d -q ${TMPBASE}"
lib/toaster/orm/fixtures/orm_views_testdata.json:       
"variable_name":
"MKTEMPCMD" lib/toaster/orm/fixtures/orm_views_testdata.json:
"variable_name": "MKTEMPDIRCMD" $
Quoted 5 lines

so the only reference to the MKTEMP-related variables are in the

toaster directory in some .json files. what does that mean? if one wanted to remove the MKTEMP* variables, would one also have to adjust those .json files accordingly?

Quoted 5 lines

The intention is to provide a way for QA verify that Toaster is collecting the variable data correctly, but because the json files contain every variable value, they are already out-of-date. We probably ought to filter the list that is used for that test to make it more maintainable.

Quoted 5 lines

so, in short, it should be safe to ditch the
{FETCH,RESUME,UPDATE}COMMAND variable settings, but i'm still unclear on what would need to be done re: the MKTEMP* variables -- i'll just submit a patch taking out the first set, and let someone else worry about the ones that show up in json files.

That sounds good to me.

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre