poky ref manual still confuses BB_ENV_WHITELIST and BB_ENV_EXTRAWHITE
in ref manual, B.5, "Running a Task",
"Tell BitBake to load what you want from the environment into the data store. You can do so through the BB_ENV_WHITELIST variable. For example, assume you want to prevent the build system from accessing your $HOME/.ccache directory. The following command tells BitBake to load CCACHE_DIR from the environment into the data store:
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE CCACHE_DIR""
as you can see, the para refers to one variable, while the export
command refers to another. not sure how someone wants to word that so i'll leave it for someone else to fix.
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
========================================================================Okay - I dug into this a bit with the help of Scott Garman. He uncovered a bit in the BitBake changelog. It states the following:
By default it will now only pass certain
whitelisted variables into the data store. If BB_PRESERVE_ENV is set bitbake will use all variable from the environment. If BB_ENV_WHITELIST is set, that whitelist will be used instead of the internal bitbake one. Alternatively, BB_ENV_EXTRAWHITE can be used to extend the internal whitelist
This entry is by no means clear but has some information. It implies that BitBake has an internal list of environment variables that can be preserved if the user sets BB_PRESERVE_ENV. Where those variables are set and what they are I don't know. Maybe BB_ENV_WHITELIST defines them. But, Scott Garman said that BB_ENV_WHITELIST doesn't seem to be getting set in the sources. Does this mean the user has to set it up? I don't know. Maybe there is an internal list separate from everything and then if the user sets BB_ENV_WHITELIST to anything that list becomes the BB environment list. Regarding BB_ENV_EXTRAWHITE, I think it is pretty clear that is just used to append or augment BB_ENV_WHITELIST.
I think the actual example in the section B.5 is valid if you take it as augmenting a set of whitelisted variables. What I need a clearer understanding of BB_ENV_WHITELIST, the existence or non-existence of a set of internal environment variables outside these lists as a default, and the effects of BB_PRESERVE_ENV.
I need help from the audience here....
Thanks,
scott
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Robert P. J. Day
Sent: Thursday, March 22, 2012 9:37 AM
To: Yocto discussion list
Subject: [yocto] poky ref manual still confuses BB_ENV_WHITELIST and BB_ENV_EXTRAWHITE
in ref manual, B.5, "Running a Task",
"Tell BitBake to load what you want from the environment into the data store. You can do so through the BB_ENV_WHITELIST variable. For example, assume you want to prevent the build system from accessing your $HOME/.ccache directory. The following command tells BitBake to load CCACHE_DIR from the environment into the data store:
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE CCACHE_DIR""
as you can see, the para refers to one variable, while the export
command refers to another. not sure how someone wants to word that so i'll leave it for someone else to fix.
rday
Signature · 11 lines
========================================================================
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
[email protected]
https://lists.yoctoproject.org/listinfo/yoctoQuoted 9 lines · Scott M
Okay - I dug into this a bit with the help of Scott Garman. He uncovered a bit in the BitBake changelog. It states the following:
"By default it will now only pass certain whitelisted variables into the data store. If
BB_PRESERVE_ENVis set bitbake will use all variable from the environment. IfBB_ENV_WHITELISTis set, that whitelist will be used instead of the internal bitbake one. Alternatively,BB_ENV_EXTRAWHITEcan be used to extend the internal whitelist"
it's also worth noting that none of those variables are listed in
the variable glossary in the reference manual. should they be? i've already started a list of variables missing from the glossary.
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
========================================================================It is worth noting and the state of the variables is being worked. I have several noted that I need to document. Understanding which ones are deprecated will be good too. Thanks for the diligence Robert.
Scott
-----Original Message-----
From: Robert P. J. Day [mailto:[email protected]]
Sent: Saturday, March 24, 2012 1:43 AM
To: Rifenbark, Scott M
Cc: Yocto discussion list
Subject: RE: [yocto] poky ref manual still confuses BB_ENV_WHITELIST and BB_ENV_EXTRAWHITE
Quoted 9 lines · Scott M
Okay - I dug into this a bit with the help of Scott Garman. He uncovered a bit in the BitBake changelog. It states the following:
"By default it will now only pass certain whitelisted variables into the data store. If
BB_PRESERVE_ENVis set bitbake will use all variable from the environment. IfBB_ENV_WHITELISTis set, that whitelist will be used instead of the internal bitbake one. Alternatively,BB_ENV_EXTRAWHITEcan be used to extend the internal whitelist"
it's also worth noting that none of those variables are listed in
the variable glossary in the reference manual. should they be? i've already started a list of variables missing from the glossary.
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
========================================================================