<?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>8566</bug_id>
          
          <creation_ts>2015-10-25 12:40:25 +0000</creation_ts>
          <short_desc>It&apos;s not documented that include/require checks the current directory in addition to BBPATH</short_desc>
          <delta_ts>2016-03-23 21:46:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>BitBake User Manual</product>
          <component>bitbake-manual</component>
          <version>2.1</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>23 March 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55709</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2015-10-25 12:40:25 +0000</bug_when>
    <thetext>This is the responsible code in lib/bb/parse/parse_py/ConfHandler.py, inside the include() function:

dname = os.path.dirname(parentfn)
bbpath = &quot;%s:%s&quot; % (dname, data.getVar(&quot;BBPATH&quot;, True))
abs_fn, attempts = bb.utils.which(bbpath, fn, history=True)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55715</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-26 09:04:29 +0000</bug_when>
    <thetext>Richard, I noticed you removed equivalent code from BBHandler just recently; did you mean to leave it in ConfHandler?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55716</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-26 09:08:41 +0000</bug_when>
    <thetext>Actually, I&apos;m not thinking straight - of course you wouldn&apos;t change this - the change was only for bbclass files. We should document this behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55819</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-27 12:50:53 +0000</bug_when>
    <thetext>So for this bug, I don&apos;t know where the related area would be in the BitBake Manual.  Can I get some guidance here?

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55821</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-27 12:58:31 +0000</bug_when>
    <thetext>In looking through the BB manual, there is a section http://www.yoctoproject.org/docs/2.0/bitbake-user-manual/bitbake-user-manual.html#sharing-functionality that talks about sharing functionality.  Is this the area we need this change in?  

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55822</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-27 13:02:03 +0000</bug_when>
    <thetext>It would make sense to document it in that section, yes. Probably under &quot;Locating Include and Class Files&quot;; but we need to be clear that the current directory is only checked for the require and include directives.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55828</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-27 13:56:20 +0000</bug_when>
    <thetext>Setting to 2.1 and ACCEPTED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60352</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-03-23 17:11:14 +0000</bug_when>
    <thetext>Hi, 

See http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#locating-include-and-class-files and let me know if this is acceptable. 

Thanks, http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#locating-include-and-class-files
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60365</commentid>
    <comment_count>8</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-03-23 20:57:16 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Hi, 
&gt; 
&gt; See
&gt; http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.
&gt; html#locating-include-and-class-files and let me know if this is acceptable. 
&gt; 
&gt; Thanks,
&gt; http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.
&gt; html#locating-include-and-class-files
&gt; Scott

Looks good - thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60369</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-03-23 21:46:47 +0000</bug_when>
    <thetext>Thanks, 

Setting to RESOLVED and putting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>