<?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>9933</bug_id>
          
          <creation_ts>2016-07-14 07:16:34 +0000</creation_ts>
          <short_desc>Suggested additions to the DEPENDS documentation</short_desc>
          <delta_ts>2016-07-18 17:09:11 +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.3</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>18 July 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <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>63964</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-14 07:16:34 +0000</bug_when>
    <thetext>Hello,

I suggest adding the following two notes to the DEPENDS glossary entry. Both are things I&apos;ve seen a lot of confusion over. That precompiled components might still need DEPENDS is subtle and has caused many build failures here.


...

Here, the dependency is such that the do_configure task for recipe &quot;a&quot; depends on the do_populate_sysroot task of recipe &quot;b&quot;. This means anything that recipe &quot;b&quot; puts into sysroot is available when recipe &quot;a&quot; is configuring itself.

NEW NOTE:
DEPENDS is a list of recipe names (or, to be precise, a list of
(PROVIDES)[http://www.yoctoproject.org/docs/2.2/bitbake-user-manual/bitbake-user-manual.html#var-PROVIDES]
names, though these usually match recipe names). Putting a package name such as
&quot;foo-dev&quot; in DEPENDS is nonsensical. Put &quot;foo&quot; instead, as this will put files
from all the packages that make up foo - including those from foo-dev - into
the sysroot.

NEW NOTE:
Counterintuitively, DEPENDS is often necessary even for recipes that install
precompiled components. For example, if libfoo is a precompiled library that
links against libbar, then linking against libfoo requires both libfoo and
libbar to be available in the sysroot. Without a DEPENDS from the recipe that
installs libfoo to the recipe that installs libbar, other recipes might fail to
link against libfoo.

For information on runtime dependencies, see the RDEPENDS variable. You can also see the &quot;Tasks&quot; and &quot;Dependencies&quot; sections in the BitBake User Manual for additional information on tasks and dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64002</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-14 19:36:31 +0000</bug_when>
    <thetext>Ulf, 

Added the notes with a bit of compliance for the manual&apos;s style.  Check it out for me and let me know:

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-DEPENDS

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64022</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-15 05:56:20 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Ulf, 
&gt; 
&gt; Added the notes with a bit of compliance for the manual&apos;s style.  Check it
&gt; out for me and let me know:
&gt; 
&gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-DEPENDS
&gt; 
&gt; Thanks, 
&gt; Scott

Some feedback below.

First note:

  - I&apos;d remove the quotes and use code formatting instead in two places:

      DEPENDS is a list of recipe names. Or, to be more precise, it is a list
      of PROVIDES names, which usually match recipe names. Putting a package
      name such as &quot;foo-dev&quot; in DEPENDS does not make sense. Use &quot;foo&quot; instead,
      as this will put files from all the packages that make up
      *&lt;code&gt;foo&lt;/code&gt;* - including those from *&lt;code&gt;foo-dev&lt;/code&gt;* - into
      the sysroot.

    The changes are surrounded by *. foo and foo-dev refer directly to the
    recipe and the package there rather than being strings.

  - The hyphens in &quot;- including those from &lt;code&gt;foo-dev&lt;/code&gt; -&quot; could be
    turned into dashes.


Second note:

  - s/counter intuitively/counterintuitively/?

  - I&apos;d use code formatting everywhere for libfoo and libbar in this note.
    Search for e.g. &quot;glibc&quot; to see the format I&apos;m thinking of.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64077</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-16 18:53:23 +0000</bug_when>
    <thetext>Ulf, 

I fixed things up.  Initially, I did not thing &quot;counterintuitively&quot; would fly as a word but I checked into it and it is :)

Also, I am dumping the dashes for a clause.  I don&apos;t really like setting things off with dashes or hyphens and try to avoid it.  

Formatting is fixed.

thanks,
Scott

http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-DEPENDS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64081</commentid>
    <comment_count>4</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-17 08:01:33 +0000</bug_when>
    <thetext>Looks good to me now. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64104</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-18 17:09:11 +0000</bug_when>
    <thetext>Thanks, 

Resetting the bug to RESOLVED and the doc flag to &quot;Done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>