ref-manual: Updated the RDEPENDS variable to include syntax
Fixes [YOCTO #4987] This variable supports some boolean operators that we are not showing for supporting versioned dependencies. I added the explanation for them. There will be other variables affected later once we settle on the changes here. (From yocto-docs rev: e5c1e66d670c708012bd5ab51aa94f87426f57e2) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
9cef06f693
commit
33ed042d4f
|
@ -4132,6 +4132,32 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
|
|||
</itemizedlist>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
BitBake, which the OpenEmbedded build system uses, supports
|
||||
specifying versioned dependencies.
|
||||
Although the syntax varies depending on the packaging
|
||||
format, BitBake hides these differences from you.
|
||||
Here is the general syntax to specify versions with
|
||||
the <filename>RDEPENDS</filename> variable:
|
||||
<literallayout class='monospaced'>
|
||||
RDEPENDS_${PN} = "<package> (<operator> <version>)"
|
||||
</literallayout>
|
||||
For <filename>operator</filename>, you can specify the
|
||||
following:
|
||||
<literallayout class='monospaced'>
|
||||
=
|
||||
<
|
||||
>
|
||||
<=
|
||||
>=
|
||||
</literallayout>
|
||||
For example, the following sets up a dependency on version
|
||||
1.2 or greater of the package <filename>foo</filename>:
|
||||
<literallayout class='monospaced'>
|
||||
RDEPENDS_${PN} = "foo (>= 1.2)"
|
||||
</literallayout>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For information on build-time dependencies, see the
|
||||
<link linkend='var-DEPENDS'><filename>DEPENDS</filename></link>
|
||||
|
|
Loading…
Reference in New Issue