diff options
Diffstat (limited to 'documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html')
| -rw-r--r-- | documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html b/documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html new file mode 100644 index 0000000000..cb6dfac6c4 --- /dev/null +++ b/documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | <html> | ||
| 2 | <head> | ||
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | ||
| 4 | <title>7.3. Alternatives - update-alternatives.bbclass</title> | ||
| 5 | <link rel="stylesheet" type="text/css" href="../book.css"> | ||
| 6 | <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> | ||
| 7 | <link rel="home" href="index.html" title="The Yocto Project Reference Manual"> | ||
| 8 | <link rel="up" href="ref-classes.html" title="Chapter 7. Classes"> | ||
| 9 | <link rel="prev" href="ref-classes-autotools.html" title="7.2. Autotooled Packages - autotools.bbclass"> | ||
| 10 | <link rel="next" href="ref-classes-update-rc.d.html" title="7.4. Initscripts - update-rc.d.bbclass"> | ||
| 11 | </head> | ||
| 12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" title="7.3. Alternatives - update-alternatives.bbclass"> | ||
| 13 | <div class="titlepage"><div><div><h2 class="title" style="clear: both"> | ||
| 14 | <a name="ref-classes-update-alternatives"></a>7.3. Alternatives - <code class="filename">update-alternatives.bbclass</code> | ||
| 15 | </h2></div></div></div> | ||
| 16 | <p> | ||
| 17 | Several programs can fulfill the same or similar function and be installed with the same name. | ||
| 18 | For example, the <code class="filename">ar</code> command is available from the | ||
| 19 | <code class="filename">busybox</code>, <code class="filename">binutils</code> and | ||
| 20 | <code class="filename">elfutils</code> packages. | ||
| 21 | The <code class="filename">update-alternatives.bbclass</code> class handles renaming the | ||
| 22 | binaries so that multiple packages can be installed without conflicts. | ||
| 23 | The <code class="filename">ar</code> command still works regardless of which packages are installed | ||
| 24 | or subsequently removed. | ||
| 25 | The class renames the conflicting binary in each package and symlinks the highest | ||
| 26 | priority binary during installation or removal of packages. | ||
| 27 | </p> | ||
| 28 | <p> | ||
| 29 | Four variables control this class: | ||
| 30 | </p> | ||
| 31 | <div class="itemizedlist"><ul class="itemizedlist" type="disc"> | ||
| 32 | <li class="listitem"><p><code class="filename">ALTERNATIVE_NAME</code> ‐ The name of the | ||
| 33 | binary that is replaced (<code class="filename">ar</code> in this example).</p></li> | ||
| 34 | <li class="listitem"><p><code class="filename">ALTERNATIVE_LINK</code> ‐ The path to | ||
| 35 | the resulting binary (<code class="filename">/bin/ar</code> in this example).</p></li> | ||
| 36 | <li class="listitem"><p><code class="filename">ALTERNATIVE_PATH</code> ‐ The path to the | ||
| 37 | real binary (<code class="filename">/usr/bin/ar.binutils</code> in this example).</p></li> | ||
| 38 | <li class="listitem"><p><code class="filename">ALTERNATIVE_PRIORITY</code> ‐ The priority of | ||
| 39 | the binary. | ||
| 40 | The version with the most features should have the highest priority.</p></li> | ||
| 41 | </ul></div> | ||
| 42 | <p> | ||
| 43 | </p> | ||
| 44 | <p> | ||
| 45 | Currently, the OpenEmbedded build system supports only one binary per package. | ||
| 46 | </p> | ||
| 47 | </div></body> | ||
| 48 | </html> | ||
