<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Helvetica,Arial,sans-serif'>
<p>2015-10-08 06:37 skrev Vivek Per:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr"><span style="font-size: 12.8px;">Hi,</span>
<div style="font-size: 12.8px;"> Can any one please tell the what is the exact difference between DEPENDS and RDEPENDS . I am not able to get it . How these variables are exactly parsed.</div>
<div style="font-size: 12.8px;"> </div>
<div style="font-size: 12.8px;"> </div>
<div style="font-size: 12.8px;">-regards</div>
<div style="font-size: 12.8px;"><span style="color: #888888; font-size: 12.8px;">vivek</span></div>
<div style="font-size: 12.8px;">
<div id=":qh"><img src="./program/blocked.gif" alt="" /></div>
<div> </div>
<div> </div>
</div>
</div>
</blockquote>
<div>
<p>Hi,</p>
<p>I guess you already have read through the manual about the variables?</p>
<p>http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-RDEPENDS</p>
<p>http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-DEPENDS</p>
<p> </p>
<p>The overall description of the differences are (please someone correct me if you find my answer incorrect) that DEPENDS specifics build-time dependencies (e.i. other recipe files) so you should be guaranteed that all packages listed in the DEPENDS has been built and installed in the sysroot before your new package starts its configure task.</p>
<p>RDEPENDS on the other hand, is a run-time dependency so instead of other recipe files RDEPENDS lists packages that should have been installed in order to correctly run your package on target.</p>
<p><br />All this is explained more in detail in the manual (see above links). Also keep in mind that DEPENDS works with recipes and RDEPENDS with packages (which isn't necessary the same). Debug the PACKAGES for a specific variable (http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#var-PACKAGES) in order to get a clue about what packages a recipe will generate.</p>
<p>If you still have a hard to understanding the differences my suggestion is that you starts playing around a bit with them. Create a project and add some DEPENDS and RDEPENDS to a recipe(s), build the affected packages and investigate if they have been built in the expected order. This can for example be verified by tracking the build output or by looking through the cooker logs tmp/log/cooker/*.</p>
<p>BR Petter</p>
<p> </p>
<div>
<pre>Petter Mabäcker
Technux <petter@technux.se>
www.technux.se</pre>
</div>
</div>
</body></html>