<?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>7704</bug_id>
          
          <creation_ts>2015-04-30 23:39:22 +0000</creation_ts>
          <short_desc>SRC_URI_append with override</short_desc>
          <delta_ts>2015-05-01 14:58:11 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.8.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50697</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-04-30 23:39:22 +0000</bug_when>
    <thetext>Assume recipe contains the following and MACHINE=qemux86-64:

SRC_URI = &quot;file://file1&quot;
SRC_URI_qemux86-64 += &quot;file://file2&quot;
SRC_URI_qemux86-64 += &quot;file://file3&quot;

run bitbake -e 

and observe:
SRC_URI=&quot;file://file2 file://file3&quot;

Seemingly identical program: 

SRC_URI = &quot;file://file1&quot;
SRC_URI_append_qemux86-64 = &quot;file://file2&quot;
SRC_URI_append_qemux86-64 = &quot;file://file3&quot;


SRC_URI=&quot;file://file1 file://file2file://file3&quot;

So apparently the two syntaxes are not equivalent, and I suspect there is a bug in the first case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50698</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-04-30 23:41:32 +0000</bug_when>
    <thetext>It should say 
&lt;snip&gt;

case 2:
run bitbake -e 

and observe:

SRC_URI=&quot;file://file1 file://file2 file://file3&quot;

So apparently the two syntaxes are not equivalent, and I suspect there is a bug in the first case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50704</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-05-01 13:46:49 +0000</bug_when>
    <thetext>If you read the bitbake manual you will see that these are not intended to behave identically. This is how it is defined to behave.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50716</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2015-05-01 14:58:11 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; If you read the bitbake manual you will see that these are not intended to
&gt; behave identically. This is how it is defined to behave.

Fair enough, RTFM. I got bitten by this but why blame self when I can blame it on a bug. However, I still think there are some inconsistencies. As I recall, this were the steps I took:

Step 1:

SRC_URI = &quot;file://file1&quot;
SRC_URI += &quot;file://file2&quot;

bitbake -&gt; builds OK

Step 2: &quot;Improve&quot; recipe by adding an override:

SRC_URI = &quot;file://file1&quot;
SRC_URI_qemux86-64 += &quot;file://file2&quot;

bitbake -&gt; builds OK

Step 3:
Final test, same &quot;improved&quot; recipe, clean build (wipe TMP)

bitbake -&gt; error: file1 not found.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>