summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2012-12-11 12:07:58 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 14:43:25 +0000
commited0a240e1632682ec4c33341f3e24ad71773cdfc (patch)
tree201557f498b77b9f51fad7e12a6009f74aca4c65 /documentation/ref-manual/eclipse/html/poky-ref-manual/ref-classes-update-alternatives.html
parentaf19d889ef320f9625aae42eed6688b5cc739793 (diff)
downloadpoky-ed0a240e1632682ec4c33341f3e24ad71773cdfc.tar.gz
documentation: Rename of poky-ref-manual folder to ref-manual.
Changing the folder that holds the YP Reference Manual to be "ref-manual". This will help with confustion over the manual's intended purpose. (From yocto-docs rev: 1106442964b5080cb0b6b3bd3af32e9407c0f7c1) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.html48
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> &#8208; 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> &#8208; 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> &#8208; 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> &#8208; 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>