<?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>1324</bug_id>
          
          <creation_ts>2011-08-03 08:27:47 +0000</creation_ts>
          <short_desc>Can&apos;t add to base files</short_desc>
          <delta_ts>2011-08-12 01:59:28 +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>Meta-yocto</product>
          <component>meta-yocto</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>Patch to bitbake docs out for review</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15187</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-08-03 08:27:47 +0000</bug_when>
    <thetext>I&apos;d like to write a .bbappend recipe which adds some files to the base-files package.  A sample version, tuned for the beagleboard target, is attached.

Problems:
* If SRC_URI has any qualifications, e.g. SRC_URI_beagleboard_append, then the main recipe fails because it&apos;s files can&apos;t be found.
* The do_install step also seems to get royally confused.

How to duplicate.
* Add the attached .bbappend to your layer, e.g. 
    .../recipes-core/base-files/base-files_3.0.14.bbappend
* Add a simple file (bb_script) 
    .../recipes-core/base-files/base-files-3.0.14/beagleboard/bb_script</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15188</commentid>
    <comment_count>1</comment_count>
      <attachid>199</attachid>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-08-03 08:29:14 +0000</bug_when>
    <thetext>Created attachment 199
Sample .bbappend script

Use this recipe chunk as a starting point to duplicate the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15191</commentid>
    <comment_count>2</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-08-03 10:14:31 +0000</bug_when>
    <thetext>More investigation shows that while
  SRC_URI_target_append = &quot;...&quot;
sort of works, it really should be written
  SRC_URI_append_target = &quot;...&quot;

Similarly for the do_install() step

Perhaps this sort of error could be pointed out by the bitbake parser?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15192</commentid>
    <comment_count>3</comment_count>
      <attachid>200</attachid>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-08-03 10:16:23 +0000</bug_when>
    <thetext>Created attachment 200
Working recipe fragment

This .bbappend fragment works properly, documenting how this can be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15220</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-04 15:18:53 +0000</bug_when>
    <thetext>So is this now a documentation issue, or is there still a problem here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15224</commentid>
    <comment_count>5</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-08-04 16:09:24 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; So is this now a documentation issue, or is there still a problem here?

The problem was all mine, albeit just a misunderstanding.

I think the documentation can be improved as there is virtually nothing on how to use _append and/or _QUALIFIER.  I looked in all the Yocto documentation, as well as the bitbake docs.  It wasn&apos;t obvious to me that 
  SRC_URI_machine_append = &quot;...&quot;
was different from
  SRC_URI_append_machine = &quot;...&quot;
and also different from
  SRC_URI_machine += &quot; ...&quot;
or even
  SRC_URI += &quot; ...&quot;
Each yielded different, mostly confusing, results with only
  SRC_URI_append_machine = &quot;...&quot;
working correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15438</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-12 01:59:28 +0000</bug_when>
    <thetext>This patch adds further documentation to the bitbake manual: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6697ce28851121fa570b93949b82a36c322e4014</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>199</attachid>
            <date>2011-08-03 08:29:14 +0000</date>
            <delta_ts>2011-08-03 08:29:14 +0000</delta_ts>
            <desc>Sample .bbappend script</desc>
            <filename>base-files_3.0.14.bbappend</filename>
            <type>application/octet-stream</type>
            <size>515</size>
            <attacher name="Gary Thomas">gary</attacher>
            
              <data encoding="base64">IwojIEp1c3QgdGVsbCBCaXRCYWtlIHdoZXJlIHRvIGZpbmQgbXkgdGhlIGV4dHJhIGZpbGVzCiMK
RklMRVNFWFRSQVBBVEhTIDo9ICIke1RISVNESVJ9LyR7UE59LSR7UFZ9OiR7VEhJU0RJUn0vJHtQ
Tn0iCgpQUiAuPSAiLjEiCgojCiMgV2h5IGRvZXNuJ3QgdGhpcyB3b3JrPyAgSWYgc3BlY2lmaWVk
IGxpa2UgdGhpcywgdGhlIHdob2xlIHJlY2lwZQojIGZhaWxzIGJlY2F1c2UgdGhlIGZpbGVzIGZy
b20gdGhlIG1haW4gU1JDX1VSSSBjYW4ndCBiZSBmb3VuZAojCiNTUkNfVVJJX2JlYWdsZWJvYXJk
X2FwcGVuZCA9ICJcCiMgICAgZmlsZTovL2JiX3NjcmlwdCBcCiMiClNSQ19VUkkgKz0gIlwKICAg
IGZpbGU6Ly9iYl9zY3JpcHQgXAoiCgpkb19pbnN0YWxsX2JlYWdsZWJvYXJkX2FwcGVuZCAoKSB7
CiAgICBpbnN0YWxsIC1tIDA3NTUgJHtXT1JLRElSfS9iYl9zY3JpcHQgJHtEfSR7U1lTQ09ORkRJ
Un0vYmJfc2NyaXB0Cn0KCkZJTEVTXyR7UE59ICs9ICIke1NZU0NPTkZESVJ9L2JiX3NjcmlwdCIK
Cgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>200</attachid>
            <date>2011-08-03 10:16:23 +0000</date>
            <delta_ts>2011-08-03 10:16:23 +0000</delta_ts>
            <desc>Working recipe fragment</desc>
            <filename>base-files_3.0.14.bbappend</filename>
            <type>application/octet-stream</type>
            <size>343</size>
            <attacher name="Gary Thomas">gary</attacher>
            
              <data encoding="base64">IwojIEp1c3QgdGVsbCBCaXRCYWtlIHdoZXJlIHRvIGZpbmQgbXkgY29tcG9uZW50IGZpbGVzCiMK
RklMRVNFWFRSQVBBVEhTX3ByZXBlbmQgOj0gIiR7VEhJU0RJUn0vJHtQTn0tJHtQVn06JHtUSElT
RElSfS8ke1BOfToiCgpQUiAuPSAiLjEiCgpTUkNfVVJJX2FwcGVuZF9teXRhcmdldCA9ICIgXAog
ICAgZmlsZTovL215X3NjcmlwdCBcCiIKCmRvX2luc3RhbGxfYXBwZW5kX215dGFyZ2V0ICgpIHsK
ICAgIGluc3RhbGwgLW0gMDc1NSAke1dPUktESVJ9L215X3NjcmlwdCAke0R9JHtzeXNjb25mZGly
fS9teV9zY3JpcHQKfQoKRklMRVNfJHtQTn0gKz0gIiR7c3lzY29uZmRpcn0vbXlfc2NyaXB0IgoK
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>