<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4367</bug_id>
          
          <creation_ts>2013-04-22 06:10:44 +0000</creation_ts>
          <short_desc>Cleanup the assignments (=)</short_desc>
          <delta_ts>2013-10-02 09:56:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>configuration</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Jesse Zhang">sen.zhang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sen.zhang</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32425</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-22 06:10:44 +0000</bug_when>
    <thetext>If a variable is in BB_ENV_EXTRAWHITE (or BB_ENV_WHITELIST if any) it should can be overrided by the system environment variable, the current BB_ENV_EXTRAWHITE is:

MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR

e.g.:

If we
$ export BB_NUMBER_THREADS=&lt;number&gt;
$ bitbake -e | grep &apos;^BB_NUMBER_THREADS&apos;

The BB_NUMBER_THREADS will still be the value assigned in local.conf, since local.conf uses:

BB_NUMBER_THREADS =

use &quot;?=&quot; would fix the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33655</commentid>
    <comment_count>1</comment_count>
    <who name="Jesse Zhang">sen.zhang</who>
    <bug_when>2013-06-06 06:07:12 +0000</bug_when>
    <thetext>Only BB_NUMBER_THREADS and PARALLEL_MAKE need fix.

See below for the analysis.

$ for x in MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR ; do env $x=xyz bitbake -e | grep &quot;$x&quot;; done

Of the 28 variables, these (21) got the &quot;xyz&quot; value correctly:

HTTP_PROXY=&quot;xyz&quot;
http_proxy=&quot;xyz&quot;
HTTPS_PROXY=&quot;xyz&quot;
https_proxy=&quot;xyz&quot;
FTP_PROXY=&quot;xyz&quot;
ftp_proxy=&quot;xyz&quot;
FTPS_PROXY=&quot;xyz&quot;
ftps_proxy=&quot;xyz&quot;
ALL_PROXY=&quot;xyz&quot;
all_proxy=&quot;xyz&quot;
NO_PROXY=&quot;xyz&quot;
no_proxy=&quot;xyz&quot;
SSH_AGENT_PID=&quot;xyz&quot;
SSH_AUTH_SOCK=&quot;xyz&quot;
SDKMACHINE=&quot;xyz&quot;
BB_NO_NETWORK=&quot;xyz&quot;
GIT_PROXY_COMMAND=&quot;xyz&quot;
SOCKS5_PASSWD=&quot;xyz&quot;
SOCKS5_USER=&quot;xyz&quot;
SCREENDIR=&quot;xyz&quot;
STAMPS_DIR=&quot;xyz&quot;

The others would cause errors but it indicates that environment variable is passed in correctly:

* MACHINE

Please set a valid MACHINE in your local.conf or environment

* DISTRO

DISTRO &apos;xyz&apos; not found. Please set a valid DISTRO in your local.conf

* TCMODE

ERROR: Unable to parse conf/bitbake.conf: ParseError at /buildarea/szhang3/wrlinux/poky/meta/conf/distro/defaultsetup.conf:7: Could not include required file conf/distro/include/tcmode-xyz.inc

* TCLIBC

ERROR: Unable to parse conf/bitbake.conf: ParseError at /buildarea/szhang3/wrlinux/poky/meta/conf/distro/defaultsetup.conf:10: Could not include required file conf/distro/include/tclibc-xyz.inc

* BB_SRCREV_POLICY

FetchError: Fetcher failure: Invalid SRCREV cache policy of: xyz

----

Apart from the docs and those &apos;PARALLEL_MAKE = &quot;&quot;&apos; assignments in the recipes, here are all the &quot;direct&quot; assignments to the whitelist variables:

$ for x in MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR; do git grep &quot;\&lt;$x = &quot; &gt;&gt; log; done

meta-skeleton/conf/multilib-example.conf:MACHINE = &quot;qemux86-64&quot;
meta-skeleton/conf/multilib-example2.conf:MACHINE = &quot;qemux86-64&quot;
meta/classes/tinderclient.bbclass:    output.append(&quot;MACHINE = &apos;%(machine)s&apos;&quot; )
meta/recipes-rt/README:COMPATIBLE_MACHINE_$MACHINE = $MACHINE
meta-skeleton/conf/multilib-example.conf:MACHINE = &quot;qemux86-64&quot;
meta-skeleton/conf/multilib-example2.conf:MACHINE = &quot;qemux86-64&quot;
meta/classes/tinderclient.bbclass:    output.append(&quot;MACHINE = &apos;%(machine)s&apos;&quot; )
meta/recipes-rt/README:COMPATIBLE_MACHINE_$MACHINE = $MACHINE
README:DISTRO = &quot;&quot;) and contains only emulated machine support.
meta-yocto/conf/distro/poky-bleeding.conf:DISTRO = &quot;poky-bleeding&quot;
meta-yocto/conf/distro/poky-lsb.conf:DISTRO = &quot;poky-lsb&quot;
meta-yocto/conf/distro/poky-tiny.conf:DISTRO = &quot;poky-tiny&quot;
meta-yocto/conf/distro/poky.conf:DISTRO = &quot;poky&quot;
meta/classes/tinderclient.bbclass:    output.append(&quot;DISTRO = &apos;%(distro)s&apos;&quot; )
meta-yocto/conf/local.conf.sample.extended:# TCMODE = &quot;external-eabi&quot;
meta/conf/distro/include/tcmode-external-csl.inc:TCMODE = &quot;external-sourcery&quot;
meta-yocto/conf/local.conf.sample:#BB_NUMBER_THREADS = &quot;4&quot;
meta-yocto/conf/local.conf.sample:# For a quad-core machine, BB_NUMBER_THREADS = &quot;4&quot;, PARALLEL_MAKE = &quot;-j 4&quot; would
meta-yocto/conf/local.conf.sample:#PARALLEL_MAKE = &quot;-j 4&quot;
meta-yocto/conf/local.conf.sample:# For a quad-core machine, BB_NUMBER_THREADS = &quot;4&quot;, PARALLEL_MAKE = &quot;-j 4&quot; would</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33949</commentid>
    <comment_count>2</comment_count>
    <who name="Jesse Zhang">sen.zhang</who>
    <bug_when>2013-06-18 01:41:26 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7f58f4c5f4e0a49b002124636d1f1c568d17bbbc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37456</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-02 09:56:00 +0000</bug_when>
    <thetext>Verified in:
poky master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>