<?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>10002</bug_id>
          
          <creation_ts>2016-07-22 12:56:48 +0000</creation_ts>
          <short_desc>Suggested glossary entries for PATH and EXTRANATIVEPATH</short_desc>
          <delta_ts>2016-08-01 18:58:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>2.2</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>01 August 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>64346</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-22 12:56:48 +0000</bug_when>
    <thetext>This would make it a bit more transparent how the path handling works. Here&apos;s the proposed definitions:

  PATH: This variable is exported to the environment of all tasks, where it
  serves the usual purpose of the PATH environment variable. See bitbake.conf for
  a list of paths that are guaranteed to appear in PATH.
  

  EXTRANATIVEPATH: A list of subdirectories of ${STAGING_BINDIR_NATIVE} that are
  added to the beginning of [PATH]. As an example, the following prepends
  &quot;${STAGING_BINDIR_NATIVE}/foo:${STAGING_BINDIR_NATIVE}/bar:&quot; to PATH:
  
    EXTRANATIVEPATH = &quot;foo bar&quot;

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64356</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-22 15:25:34 +0000</bug_when>
    <thetext>Adding Paul Eggleton to the CC list.  In the past, we had made the decision to not include environment variables as part of the variables glossary.  However, the issue of making these types of variables more transparent on how YP uses them is a point.  

Is the variable EXTRANATIVEPATH an environment variable or is that unique to YP?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64370</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-22 16:20:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Adding Paul Eggleton to the CC list.  In the past, we had made the decision
&gt; to not include environment variables as part of the variables glossary. 
&gt; However, the issue of making these types of variables more transparent on
&gt; how YP uses them is a point.  

Yeah, wouldn&apos;t hurt to have some more coverage for how Yocto deals with the environment, IMO. I think many people wanting to know how Yocto handles the path would look up PATH in the glossary thinking there might be a Yocto variable for it. When reading the definition, they would indirectly learn that variables can be exported to the environment.
 
&gt; Is the variable EXTRANATIVEPATH an environment variable or is that unique to
&gt; YP?

It&apos;s unique to YP. base.bbclass prepends PATH with the extra directories from EXTRANATIVEPATH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64690</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 22:15:46 +0000</bug_when>
    <thetext>Paul, 

Can I get a raw description of the EXTRANATIVEPATH variable from you?

Based on Ulf&apos;s statement I have this:

  &quot;EXTRANATIVEPATH:
     Provides extra directories, which are pre-pended to the environment 
     variable PATH.  The OpenEmbedded build system uses EXTRANATIVEPATH to be 
     sure to include these paths when searching for metadata.&quot;

That is pretty basic.

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64702</commentid>
    <comment_count>4</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-30 19:35:16 +0000</bug_when>
    <thetext>Note (In reply to comment #3)
&gt; Paul, 
&gt; 
&gt; Can I get a raw description of the EXTRANATIVEPATH variable from you?
&gt; 
&gt; Based on Ulf&apos;s statement I have this:
&gt; 
&gt;   &quot;EXTRANATIVEPATH:
&gt;      Provides extra directories, which are pre-pended to the environment 
&gt;      variable PATH.  The OpenEmbedded build system uses EXTRANATIVEPATH to
&gt; be 
&gt;      sure to include these paths when searching for metadata.&quot;
&gt; 
&gt; That is pretty basic.
&gt; 
&gt; Thanks,
&gt; Scott

Note that EXTRANATIVEPATH does not contain full paths though. The entries in it are relative to ${STAGING_BINDIR_NATIVE}. I don&apos;t think it&apos;s used to search for metadata either, but just for setting the right PATH while tasks run.

I included a description for EXTRANATIVEPATH above btw, in case you only saw the PATH one.

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64739</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 18:40:43 +0000</bug_when>
    <thetext>Ulf, 

I didn&apos;t see that definition... sorry.  See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-EXTRANATIVEPATH for the new entry.  

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64742</commentid>
    <comment_count>6</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-08-01 18:56:49 +0000</bug_when>
    <thetext>Looks good to me.

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64744</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 18:58:52 +0000</bug_when>
    <thetext>Resetting to RESOLVED and &quot;done.&quot;


Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>