<?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>10297</bug_id>
          
          <creation_ts>2016-09-17 03:22:27 +0000</creation_ts>
          <short_desc>Two suggested notes in the Other Tips section re. removing tmp/ and searching</short_desc>
          <delta_ts>2016-09-22 23:10:50 +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>22 Sept 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 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>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>66280</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-17 03:22:27 +0000</bug_when>
    <thetext>Hello again,

Here&apos;s two suggested notes to add after the existing notes in
&apos;2.3.12. Other Tips&apos;.

1. Removing tmp/ often fixes temporary issues. This hint could be added:

  * Removing [TMPDIR] (usually tmp/, within the
    [Build Directory](http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#build-directory))
    can often fix temporary build issues. Removing TMPDIR is usually a
    relatively cheap operation, because task output will be cached in
    [SSTATE_DIR](http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-SSTATE_DIR)
    (usually sstate-cache/, also in the Build Directory).

    Note that removing TMPDIR might be a workaround rather than a fix. Trying
    to determine the underlying cause of an issue is a good idea.


2. To encourage people to search through existing recipes and classes, I think it
would help if we provided a small helper function. Feel free to leave out the
last part if you think it might lead to unproductive spam. :)

  * Seeing how a feature is used in practice in existing recipes is
    often very helpful. It is recommended that you configure some method that
    always you to quickly search through files.
    
    Using GNU Grep, the shell function below can be used to recursively search
    through common recipe-related files, skipping binary files, .git
    directories, and the build directory (assuming its name starts with
    &quot;build&quot;):

      g() {
          grep -Ir \
               --exclude-dir=.git \
               --exclude-dir=&apos;build*&apos; \
               --include=&apos;*.bb*&apos; \
               --include=&apos;*.inc*&apos; \
               --include=&apos;*.conf*&apos; \
               --include=&apos;*.py*&apos; \
               &quot;$@&quot;
      }

    Below are some usage examples:

      $ g FOO    # Search recursively for &quot;FOO&quot;
      $ g -i foo # Search recursively for &quot;foo&quot;, ignoring case
      $ g -w FOO # Search recursively for &quot;FOO&quot; as a word, ignoring e.g. &quot;FOOBAR&quot;

    If figuring out how some feature works requires a lot of searching, it
    might indicate that the documentation should be extended or improved.
    Consider filing a documentation bug at our
    [Bugzilla](https://bugzilla.yoctoproject.org/) in that case. Note that the
    manuals might not be the right place to document variables that are purely
    internal and have a limited scope (e.g. internal variables used to
    implement a single .bbclass file).


Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66448</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-21 23:10:16 +0000</bug_when>
    <thetext>Ulf, 

Nice tips... 

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#usingpoky-debugging-others

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66460</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-22 05:21:16 +0000</bug_when>
    <thetext>Looks good to me!

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66531</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-22 23:10:50 +0000</bug_when>
    <thetext>Setting status to RESOLVED and doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>