<?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>6447</bug_id>
          
          <creation_ts>2014-06-13 13:27:10 +0000</creation_ts>
          <short_desc>Add ability to find a target file and create a bbappend to replace it</short_desc>
          <delta_ts>2015-10-09 13:11:25 +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.7</version>
          <rep_platform>All</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.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>kergoth</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <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>43927</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-06-13 13:27:10 +0000</bug_when>
    <thetext>Locating which recipe provides a file in an image that you want to modify can be a tedious process. We should create a tool that finds which recipe a particular config file (or other file I want to replace) comes from, and then automatically creates a bbappend to substitute my version.

As long as we assume a build has completed already, we have the part that tracks down the recipe from a file - albeit in a not-very-easy-to-use form - in scripts/oe-pkgdata-util (with its &quot;find-path&quot; command). Toaster has the functionality to do this as well. We&apos;d need to use the build system to tell us the right recipe to pick if there are multiple providers.

For creating the bbappend, this is also moderately challenging since:

* The original file may be directly in SRC_URI (in which case we don&apos;t need to add it) or provided as part of a source tree (e.g. upstream tarball, in which case we do). We&apos;ll also have to interpret install lines in do_install as a way of mapping back files installed by the package to entries in SRC_URI.

* There might already be a bbappend in the current configuration which provides its own version of the file. (Perhaps we ignore this part of the problem initially.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51183</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-05-21 10:28:01 +0000</bug_when>
    <thetext>Implementation merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=fbfc06a969200e582a059c9943e6fd17aca70e30

Note that this does require some of the preceding commits including some in bitbake that have recently been merged:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ba0546bfaf23aa5ba1033e348a0a1addf0623abb
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aefc80c02ed6d4de5768723d86ce80520387e1d3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55113</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-10-09 13:11:25 +0000</bug_when>
    <thetext>Verified on master: eac61f37e36099f74485dab398b57f3812826d17

Functionality testing is covered in oe-selftest testcases from devtool and recipetool.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>