<?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>8542</bug_id>
          
          <creation_ts>2015-10-19 18:27:06 +0000</creation_ts>
          <short_desc>The S entry in the glossary does not make it clear that S can be an input</short_desc>
          <delta_ts>2016-03-22 16:21:28 +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>1.8</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>21 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>poky.doc.watcher</cc>
    
    <cc>poky.watcher</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>55453</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2015-10-19 18:27:06 +0000</bug_when>
    <thetext>The glossary in the reference manual does not make it clear that S can be set by the user (recipe writer) to tell Yocto where the source is after unpacking. I suggest the following rewording (provided it&apos;s the correct interpretation - I&apos;m still a bit confused):

&quot;S

The location in the Build Directory where unpacked recipe source code resides. Defaults to ${WORKDIR}/${BPN}-${PV}, where ${BPN} is the base recipe name and ${PV} the recipe version. If the source tarball extracts the code to a directory called something other than ${BPN}-${PV}, or if the source code if fetched from an SCM like Git or Subversion, then S needs to be set in the recipe to tell Yocto where to find the unpacked source.
                   
As an example, assume a Source Directory top-level folder named poky and a default Build Directory at poky/build. In this case, the work directory the build system uses to keep the unpacked recipe for db would be the following by default:

     poky/build/tmp/work/qemux86-poky-linux/db/5.1.19-r3/db-5.1.19&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55581</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-21 18:09:27 +0000</bug_when>
    <thetext>Moving to 2.1.  Note to self:  I will need to back-port this to some other branches.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55584</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-10-21 18:40:29 +0000</bug_when>
    <thetext>Here are some more implementation notes for me when I get to this issue:

* Convey that S points to where the source has been extracted, and that the user needs to actually set it 

* adjust the example to talk about the db-5.1.1.9 subdirectory of the workdir rather than just pasting the full path</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58688</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-05 22:50:59 +0000</bug_when>
    <thetext>Hi, 

Take a look at the variable description at http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-S.  Let me know if this is okay.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58701</commentid>
    <comment_count>4</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-02-06 10:09:46 +0000</bug_when>
    <thetext>Looks good. One more thing I&apos;d add is an example that involves Git, because it&apos;s a very common case yet doesn&apos;t seem to get mentioned much. I&apos;m thinking of something like the following:


For example, BitBake&apos;s [Git fetcher](http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#git-fetcher) checks out source code to ${WORKDIR}/git by default. Since this path differs from the default value of S, it needs to be set explicitly as follows:

SRC_URI = &quot;git://path/to/repo.git&quot;
S = &quot;${WORKDIR}/git&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59047</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-15 18:33:01 +0000</bug_when>
    <thetext>Hi, 

Take a look at the change I put into the S variable description in the glossary at http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-S.  Let me know if this works. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59049</commentid>
    <comment_count>6</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-02-15 18:52:18 +0000</bug_when>
    <thetext>Looks good - thanks! Maybe it could be phrased like this to emphasize that it&apos;s a fetch-related default, though it&apos;s pretty minor:


This next example assumes a Git repository. By default, Git repositories are cloned to ${WORKDIR}/git during do_fetch. Since this path is different from the default value of S, it must be set explicitly so the source can be located:

     SRC_URI = &quot;git://path/to/repo.git&quot;
     S = &quot;${WORKDIR}/git&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59051</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-15 18:59:55 +0000</bug_when>
    <thetext>Fair enough ... changed.  See http://www.yoctoproject.org/docs/2.1/ref-manual/ref-manual.html#var-S

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60297</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-03-22 16:21:28 +0000</bug_when>
    <thetext>no further comments.. closing this one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>