<?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>4474</bug_id>
          
          <creation_ts>2013-05-09 13:42:55 +0000</creation_ts>
          <short_desc>bitbake fails to find patch files moved to a second valid location</short_desc>
          <delta_ts>2013-06-12 09:34:18 +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.4</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>minor</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jerrod Peach">peachj</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</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>32989</commentid>
    <comment_count>0</comment_count>
    <who name="Jerrod Peach">peachj</who>
    <bug_when>2013-05-09 13:42:55 +0000</bug_when>
    <thetext>If you have a recipe applying patches (via SRC_URI += &lt;patch file&gt;), build that recipe at least once, then move the patch file to a second valid location (e.g. from &lt;pn&gt;/&lt;patch file&gt; to files/&lt;patch file&gt;), bitbake will spit out the following warning:

WARNING: Unable to get checksum for &lt;PN&gt; SRC_URI entry &lt;patch file&gt;: [Errno 2] No such file or directory: &apos;&lt;path to patch file&apos;s previous location&gt;&apos;

The only way to clear the warning appears to be wiping out your parse cache, e.g. rm -r tmp/cache.  Rebuilding from that point on will make the warning go away.  I&apos;m believe the patch is still being applied even when the warning appears (though I am not certain), but the message might lead you to believe otherwise.  This warning should probably not appear if the patch is found in a second location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33536</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-06-04 09:02:49 +0000</bug_when>
    <thetext>Patch sent to the bitbake-devel mailing list to fix this.

FYI, you can work around this problem by running &quot;touch&quot; on the recipe file - no need to delete the cache. You are correct in that the patch file is being applied even when the warning is shown; all that breaks is the calculation of the checksum which we use to trigger a re-run of do_fetch and all tasks that depend upon it when one of the local files referred to in SRC_URI changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33794</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-06-12 09:34:18 +0000</bug_when>
    <thetext>Patch merged to master:

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

    </bug>

</bugzilla>