<?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>9235</bug_id>
          
          <creation_ts>2016-03-10 18:27:42 +0000</creation_ts>
          <short_desc>oe-init-build-env: to receive an argument/variable for appending to local.conf</short_desc>
          <delta_ts>2016-06-09 21:19:48 +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>Scripts and Tools</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>mariano.lopez</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59874</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-03-10 18:27:42 +0000</bug_when>
    <thetext>This is a different request than what is implemented via the templates.

The proposal is to have an argument/environment variable to pass to the oe-init-build-env* script with a file to append to the local.conf. This gives you the possibility to either add or override current local.conf variables.

examples:

$ . ./oe-init-build-env builddir /path/to/append-file.conf
or
$ CONFAPPEND=/path/to/appends.conf . ./oe-init-build-env builddir</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60526</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-03-30 10:26:34 +0000</bug_when>
    <thetext>I guess I&apos;m wondering why we wouldn&apos;t just use the -R and -r options to bitbake which allow the appending or prepending of a configuration file?

oe-init-build-env is meant to be simple and I really would prefer not to complicate that script any further.

What is the problem we&apos;re trying to solve here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60556</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-03-30 21:57:04 +0000</bug_when>
    <thetext>The -R or -r bitbake options are good, but is a bit of a pain tospecify the file every time bitbake is run.

What we were thinking was when using oe-init-build-env script have an env var with the file name and append the file name to local.conf (at the time the build dir is created). The bitbake case would be to have the env var and bitbake could append the config, instead of using -r or -R.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60585</commentid>
    <comment_count>3</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-03-31 11:42:04 +0000</bug_when>
    <thetext>Bitbake has a set environment variables which set values for command line options, e.g. BITBAKE_UI(-u), BBSERVER(--remote-server), BBTOKEN(--token) etc.

What do you think about adding two more env variables(BBREAD, BBPOSTREAD?) to set values for -r and -R ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60618</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-03-31 17:38:32 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Bitbake has a set environment variables which set values for command line
&gt; options, e.g. BITBAKE_UI(-u), BBSERVER(--remote-server), BBTOKEN(--token)
&gt; etc.
&gt; 
&gt; What do you think about adding two more env variables(BBREAD, BBPOSTREAD?)
&gt; to set values for -r and -R ?

I&apos;d say that adding such environment variables for -r/-R should work fine for the intended purpose.

Richard?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61191</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-04-14 08:46:04 +0000</bug_when>
    <thetext>I guess we could do this if people would find it really useful, I&apos;d prefer names like BBPRECONF and BBPOSTCONF though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61420</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-04-19 16:51:57 +0000</bug_when>
    <thetext>Fix has been sent for review: http://lists.openembedded.org/pipermail/bitbake-devel/2016-April/007349.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62014</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-05-06 10:24:17 +0000</bug_when>
    <thetext>The fix has been merged to master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62721</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-06-07 20:34:24 +0000</bug_when>
    <thetext>The functionality is still missing; there is a typo in the var used. I sent a patch to correct that:

http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007549.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62875</commentid>
    <comment_count>9</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-06-09 21:19:48 +0000</bug_when>
    <thetext>This has been solved in commit: 

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=40e789d1fee7f0df2d23230fff38325119ad2935</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>