From bb8e0a4d8b3c4cb41011408d913283ebcaa37b47 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Fri, 7 Jun 2013 15:23:04 +0300 Subject: ref-manual: Updates to the RDEPENDS variable entry. Re-wrote some stuff to be clearer. (From yocto-docs rev: b4c117fe17aaf2385be192fc6cd6d634331828a0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 40 +++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 12 deletions(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index b56b43fdf4..a7635e07d4 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -3050,20 +3050,25 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - The names of the variables you list with + The names of the packages you list within RDEPENDS must be the names of other - packages as listed in the + packages - they cannot be recipe names. + + Although package names and recipe names usually match, + the important point here is that you are + providing package names within the + RDEPENDS variable. + + For an example of the default list of packages created from + a recipe, see the PACKAGES variable. - You should not list recipe names - (PN). Because the RDEPENDS variable applies - to packages being built, you should - always attach a package name to the variable to specify the - particular run-time package that has the dependency. + to packages being built, you should always use the variable + in a form with an attached package name. For example, suppose you are building a development package that depends on the perl package. In this case, you would use the following @@ -3071,17 +3076,28 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" RDEPENDS_${PN}-dev += "perl" - In the example, the package name - (${PN}-dev) must appear as it would - in the + In the example, the development package depends on + the perl package. + Thus, the RDEPENDS variable has the + ${PN}-dev package name as part of the + variable. + + + + If the package with the dependency is one of the default + packages as listed in the PACKAGES + variable, the package name you attach to the + RDEPENDS variable must appear + as it would in the PACKAGES namespace before any renaming of the output package by classes like debian.bbclass. - In many cases you do not need to explicitly add dependencies - to RDEPENDS since some automatic + In many cases you do not need to explicitly add + run-time dependencies using + RDEPENDS since some automatic handling occurs: shlibdeps: If -- cgit v1.2.3-54-g00ecf