diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-09-03 19:25:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-12 16:50:05 +0100 |
commit | 69daf50cde7c7f97e994d76d4c0a83e3981dce3c (patch) | |
tree | 96cfb781e3aa763ff12fb516fec42d6dac16eede | |
parent | d3a849fdb415810e5adb290ef069b98b790cccf2 (diff) | |
download | poky-69daf50cde7c7f97e994d76d4c0a83e3981dce3c.tar.gz |
ref-manual: Variable adds and edits for package exclusion changes
Fixes [YOCTO #4079]
I have added variable descriptions for NO_RECOMMENDATIONS and
PACKAGE_EXCLUDE. I updated the BAD_RECOMMENDATIONS and the
RRECOMMENDS variables.
(From yocto-docs rev: 3b5b44d3db9e723cd9836ddbd4177c2ab2e1d663)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/ref-manual/ref-variables.xml | 199 |
1 files changed, 179 insertions, 20 deletions
diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 4ffda80b96..aabc71a561 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml | |||
@@ -252,9 +252,47 @@ | |||
252 | <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm> | 252 | <glossentry id='var-BAD_RECOMMENDATIONS'><glossterm>BAD_RECOMMENDATIONS</glossterm> |
253 | <glossdef> | 253 | <glossdef> |
254 | <para> | 254 | <para> |
255 | A list of packages not to install despite being recommended by a recipe. | 255 | Lists "recommended-only" packages to not install. |
256 | Recommended-only packages are packages installed only | ||
257 | through the | ||
258 | <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link> | ||
259 | variable. | ||
260 | You can prevent any of these "recommended" packages from | ||
261 | being installed by listing them with the | ||
262 | <filename>BAD_RECOMMENDATIONS</filename> variable: | ||
263 | <literallayout class='monospaced'> | ||
264 | BAD_RECOMMENDATIONS = "<package_name> <package_name> <package_name> ..." | ||
265 | </literallayout> | ||
266 | You can set this variable globally in your | ||
267 | <filename>local.conf</filename> file or you can attach it to | ||
268 | a specific image recipe by using the recipe name override: | ||
269 | <literallayout class='monospaced'> | ||
270 | BAD_RECOMMENDATIONS_pn-<target_image> = "<package_name>" | ||
271 | </literallayout> | ||
272 | </para> | ||
273 | |||
274 | <para> | ||
275 | It is important to realize that if you choose to not install | ||
276 | a package using this variable and some other package is | ||
277 | dependent on it (i.e. listed in a recipe's | ||
278 | <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> | ||
279 | variable), the OpenEmbedded build system does not notify | ||
280 | you with a dependency error. | ||
281 | The specified package is simply not installed. | ||
282 | </para> | ||
283 | |||
284 | <para> | ||
256 | Support for this variable exists only when using the | 285 | Support for this variable exists only when using the |
257 | IPK packaging backend. | 286 | IPK and RPM packaging backend. |
287 | Support does not exist for DEB. | ||
288 | </para> | ||
289 | |||
290 | <para> | ||
291 | See the | ||
292 | <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link> | ||
293 | and the | ||
294 | <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link> | ||
295 | variables for related information. | ||
258 | </para> | 296 | </para> |
259 | </glossdef> | 297 | </glossdef> |
260 | </glossentry> | 298 | </glossentry> |
@@ -3158,6 +3196,59 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
3158 | </glossdef> | 3196 | </glossdef> |
3159 | </glossentry> | 3197 | </glossentry> |
3160 | 3198 | ||
3199 | <glossentry id='var-NO_RECOMMENDATIONS'><glossterm>NO_RECOMMENDATIONS</glossterm> | ||
3200 | <glossdef> | ||
3201 | <para> | ||
3202 | Prevents installation of all "recommended-only" packages. | ||
3203 | Recommended-only packages are packages installed only | ||
3204 | through the | ||
3205 | <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link> | ||
3206 | variable). | ||
3207 | Setting the <filename>NO_RECOMMENDATIONS</filename> variable | ||
3208 | to "1" turns this feature on: | ||
3209 | <literallayout class='monospaced'> | ||
3210 | NO_RECOMMENDATIONS = "1" | ||
3211 | </literallayout> | ||
3212 | You can set this variable globally in your | ||
3213 | <filename>local.conf</filename> file or you can attach it to | ||
3214 | a specific image recipe by using the recipe name override: | ||
3215 | <literallayout class='monospaced'> | ||
3216 | NO_RECOMMENDATIONS_pn-<target_image> = "<package_name>" | ||
3217 | </literallayout> | ||
3218 | </para> | ||
3219 | |||
3220 | <para> | ||
3221 | It is important to realize that if you choose to not install | ||
3222 | packages using this variable and some other packages are | ||
3223 | dependent on them (i.e. listed in a recipe's | ||
3224 | <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> | ||
3225 | variable), the OpenEmbedded build system does not notify | ||
3226 | you with dependency errors. | ||
3227 | The packages are simply not installed. | ||
3228 | <note> | ||
3229 | Some recommended packages might be required for certain | ||
3230 | system functionality, such as kernel modules. | ||
3231 | It is up to you to add packages with | ||
3232 | <link linkend='var-IMAGE_INSTALL'><filename>IMAGE_INSTALL</filename></link> | ||
3233 | variable. | ||
3234 | </note> | ||
3235 | </para> | ||
3236 | |||
3237 | <para> | ||
3238 | Support for this variable exists only when using the | ||
3239 | IPK and RPM packaging backend. | ||
3240 | Support does not exist for DEB. | ||
3241 | </para> | ||
3242 | |||
3243 | <para> | ||
3244 | See the | ||
3245 | <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link> | ||
3246 | and the | ||
3247 | <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link> | ||
3248 | variables for related information. | ||
3249 | </para> | ||
3250 | </glossdef> | ||
3251 | </glossentry> | ||
3161 | </glossdiv> | 3252 | </glossdiv> |
3162 | 3253 | ||
3163 | <glossdiv id='var-glossary-o'><title>O</title> | 3254 | <glossdiv id='var-glossary-o'><title>O</title> |
@@ -3318,6 +3409,57 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
3318 | </glossdef> | 3409 | </glossdef> |
3319 | </glossentry> | 3410 | </glossentry> |
3320 | 3411 | ||
3412 | <glossentry id='var-PACKAGE_EXCLUDE'><glossterm>PACKAGE_EXCLUDE</glossterm> | ||
3413 | <glossdef> | ||
3414 | <para> | ||
3415 | Lists "recommended-only" packages to not install. | ||
3416 | Recommended-only packages are packages installed only | ||
3417 | through the | ||
3418 | <link linkend='var-RRECOMMENDS'><filename>RRECOMMENDS</filename></link> | ||
3419 | variable. | ||
3420 | You can prevent any of these "recommended" packages from | ||
3421 | being installed by listing them with the | ||
3422 | <filename>PACKAGE_EXCLUDE</filename> variable: | ||
3423 | <literallayout class='monospaced'> | ||
3424 | PACKAGE_EXCLUDE = "<package_name> <package_name> <package_name> ..." | ||
3425 | </literallayout> | ||
3426 | You can set this variable globally in your | ||
3427 | <filename>local.conf</filename> file or you can attach it to | ||
3428 | a specific image recipe by using the recipe name override: | ||
3429 | <literallayout class='monospaced'> | ||
3430 | PACKAGE_EXCLUDE_pn-<target_image> = "<package_name>" | ||
3431 | </literallayout> | ||
3432 | </para> | ||
3433 | |||
3434 | <para> | ||
3435 | If you choose to not install | ||
3436 | a package using this variable and some other package is | ||
3437 | dependent on it (i.e. listed in a recipe's | ||
3438 | <link linkend='var-RDEPENDS'><filename>RDEPENDS</filename></link> | ||
3439 | variable), the OpenEmbedded build system generates a fatal | ||
3440 | installation error. | ||
3441 | Because the build system halts the process with a fatal | ||
3442 | error, you can use the variable with an iterative | ||
3443 | development process to remove specific components from a | ||
3444 | system. | ||
3445 | </para> | ||
3446 | |||
3447 | <para> | ||
3448 | Support for this variable exists only when using the | ||
3449 | IPK and RPM packaging backend. | ||
3450 | Support does not exist for DEB. | ||
3451 | </para> | ||
3452 | |||
3453 | <para> | ||
3454 | See the | ||
3455 | <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link> | ||
3456 | and the | ||
3457 | <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link> | ||
3458 | variables for related information. | ||
3459 | </para> | ||
3460 | </glossdef> | ||
3461 | </glossentry> | ||
3462 | |||
3321 | <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm> | 3463 | <glossentry id='var-PACKAGE_EXTRA_ARCHS'><glossterm>PACKAGE_EXTRA_ARCHS</glossterm> |
3322 | <glossdef> | 3464 | <glossdef> |
3323 | <para>Specifies the list of architectures compatible with the device CPU. | 3465 | <para>Specifies the list of architectures compatible with the device CPU. |
@@ -3930,27 +4072,43 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
3930 | <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm> | 4072 | <glossentry id='var-RRECOMMENDS'><glossterm>RRECOMMENDS</glossterm> |
3931 | <glossdef> | 4073 | <glossdef> |
3932 | <para> | 4074 | <para> |
3933 | A list of packages that extends the usability of a package being | 4075 | A list of packages that extends the usability of a package |
3934 | built. | 4076 | being built. |
3935 | The package being built does not depend on this list of packages in | 4077 | The package being built does not depend on this list of |
3936 | order to successfully build, but needs them for the extended usability. | 4078 | packages in order to successfully build, but needs them for |
4079 | the extended usability. | ||
3937 | To specify runtime dependencies for packages, see the | 4080 | To specify runtime dependencies for packages, see the |
3938 | <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename> variable. | 4081 | <filename><link linkend='var-RDEPENDS'>RDEPENDS</link></filename> |
4082 | variable. | ||
3939 | </para> | 4083 | </para> |
4084 | |||
3940 | <para> | 4085 | <para> |
3941 | The OpenEmbedded build process automatically installs the list of packages | 4086 | The OpenEmbedded build process automatically installs the |
3942 | as part of the built package. | 4087 | list of packages as part of the built package. |
3943 | However, you can remove them later if you want. | 4088 | However, you can remove these packages later if you want. |
3944 | If, during the build, a package from the list cannot be found, the build | 4089 | If, during the build, a package from the |
3945 | process continues without an error. | 4090 | <filename>RRECOMMENDS</filename> list cannot be |
4091 | found, the build process continues without an error. | ||
3946 | </para> | 4092 | </para> |
4093 | |||
3947 | <para> | 4094 | <para> |
3948 | Because the <filename>RRECOMMENDS</filename> variable applies to packages | 4095 | You can also prevent packages in the list from being |
3949 | being built, you should | 4096 | installed by using several variables. |
3950 | always attach an override to the variable to specify the particular package | 4097 | See the |
3951 | whose usability is being extended. | 4098 | <link linkend='var-BAD_RECOMMENDATIONS'><filename>BAD_RECOMMENDATIONS</filename></link>, |
3952 | For example, suppose you are building a development package that is extended | 4099 | <link linkend='var-NO_RECOMMENDATIONS'><filename>NO_RECOMMENDATIONS</filename></link>, |
3953 | to support wireless functionality. | 4100 | and |
4101 | <link linkend='var-PACKAGE_EXCLUDE'><filename>PACKAGE_EXCLUDE</filename></link> | ||
4102 | variables for more information. | ||
4103 | </para> | ||
4104 | |||
4105 | <para> | ||
4106 | Because the <filename>RRECOMMENDS</filename> variable | ||
4107 | applies to packages being built, you should always attach | ||
4108 | an override to the variable to specify the particular | ||
4109 | package whose usability is being extended. | ||
4110 | For example, suppose you are building a development package | ||
4111 | that is extended to support wireless functionality. | ||
3954 | In this case, you would use the following: | 4112 | In this case, you would use the following: |
3955 | <literallayout class='monospaced'> | 4113 | <literallayout class='monospaced'> |
3956 | RRECOMMENDS_${PN}-dev += "<wireless_package_name>" | 4114 | RRECOMMENDS_${PN}-dev += "<wireless_package_name>" |
@@ -3958,8 +4116,9 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" | |||
3958 | In the example, the package name | 4116 | In the example, the package name |
3959 | (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>) | 4117 | (<filename>${<link linkend='var-PN'>PN</link>}-dev</filename>) |
3960 | must appear as it would in the | 4118 | must appear as it would in the |
3961 | <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename> namespace before any | 4119 | <filename><link linkend='var-PACKAGES'>PACKAGES</link></filename> |
3962 | renaming of the output package by classes like <filename>debian.bbclass</filename>. | 4120 | namespace before any renaming of the output package by |
4121 | classes such as <filename>debian.bbclass</filename>. | ||
3963 | </para> | 4122 | </para> |
3964 | </glossdef> | 4123 | </glossdef> |
3965 | </glossentry> | 4124 | </glossentry> |