<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3838</bug_id>
          
          <creation_ts>2013-02-04 12:31:26 +0000</creation_ts>
          <short_desc>Alternatives Section 7.3 obsolete</short_desc>
          <delta_ts>2013-02-06 13:41:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=bd574f2c8a95470c5a44500b70743a6e039522b7</bug_file_loc>
          <status_whiteboard>6 Feb 2013: resolved</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Radu Moisan">radu.moisan</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29494</commentid>
    <comment_count>0</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-02-04 12:31:26 +0000</bug_when>
    <thetext>From update-alternatives.bbclass

# This class is used to help the alternatives system which is useful when
# multiple sources provide same command. You can use update-alternatives
# command directly in your recipe, but in most cases this class simplifies
# that job.
#
# To use this class a number of variables should be defined:
#
# List all of the alternatives needed by a package:
# ALTERNATIVE_&lt;pkg&gt; = &quot;name1 name2 name3 ...&quot;
#
#   i.e. ALTERNATIVE_busybox = &quot;sh sed test bracket&quot;
#
# The pathname of the link
# ALTERNATIVE_LINK_NAME[name] = &quot;target&quot;
#
#   This is the name of the binary once it&apos;s been installed onto the runtime.
#   This name is global to all split packages in this recipe, and should match
#   other recipes with the same functionality.
#   i.e. ALTERNATIVE_LINK_NAME[bracket] = &quot;/usr/bin/[&quot;
#
# NOTE: If ALTERNATIVE_LINK_NAME is not defined, it defaults to ${bindir}/name
#
# The default link to create for all targets
# ALTERNATIVE_TARGET = &quot;target&quot;
#
#   This is useful in a multicall binary case
#   i.e. ALTERNATIVE_TARGET = &quot;/bin/busybox&quot;
#
# A non-default link to create for a target
# ALTERNATIVE_TARGET[name] = &quot;target&quot;
#
#   This is the name of the binary as it&apos;s been install by do_install
#   i.e. ALTERNATIVE_TARGET[sh] = &quot;/bin/bash&quot;
#
# A package specific link for a target
# ALTERNATIVE_TARGET_&lt;pkg&gt;[name] = &quot;target&quot;
#
#   This is useful when a recipe provides multiple alternatives for the
#   same item.
#
# NOTE: If ALTERNATIVE_TARGET is not defined, it will inherit the value
# from ALTERNATIVE_LINK_NAME.
#
# NOTE: If the ALTERNATIVE_LINK_NAME and ALTERNATIVE_TARGET are the same,
# ALTERNATIVE_TARGET will have &apos;.{BPN}&apos; appended to it.  If the file
# referenced has not been renamed, it will also be renamed.  (This avoids
# the need to rename alternative files in the do_install step, but still
# supports it if necessary for some reason.)
#
# The default priority for any alternatives
# ALTERNATIVE_PRIORITY = &quot;priority&quot;
#
#   i.e. default is ALTERNATIVE_PRIORITY = &quot;10&quot;
#
# The non-default priority for a specific target
# ALTERNATIVE_PRIORITY[name] = &quot;priority&quot;
#
# The package priority for a specific target
# ALTERNATIVE_PRIORITY_&lt;pkg&gt;[name] = &quot;priority&quot;
#
#
# -----
#
#
# The following describes deprecated behavior, using any of the
# following modes will result in a warning, and eventually an error:
#
# There are two basic modes supported: &apos;single update&apos; and &apos;batch update&apos;
#
# &apos;single update&apos; is used for a single alternative command, and you&apos;re
# expected to provide at least below keywords:
#
#     ALTERNATIVE_NAME - the name that the alternative is registered
#     ALTERNATIVE_PATH - the path of installed alternative
#
# ALTERNATIVE_PRIORITY and ALTERNATIVE_LINK are optional which have defaults
# in this class.
#
# &apos;batch update&apos; is used if you have multiple alternatives to be updated.
# Unlike &apos;single update&apos;, &apos;batch update&apos; in most times only require two
# parameters:
#
#     ALTERNATIVE_LINKS - a list of symbolic links for which you&apos;d like to
#                         create alternatives, with space as delimiter, e.g:
#
#         ALTERNATIVE_LINKS = &quot;${bindir}/cmd1 ${sbindir}/cmd2 ...&quot;
#
#     ALTERNATIVE_PRIORITY - optional, applies to all
#
# To simplify the design, this class has the assumption that for a name
# listed in ALTERNATIVE_LINKS, say /path/cmd:
#
#     the name of the alternative would be: cmd
#     the path of installed alternative would be: /path/cmd.${BPN}
#     ${D}/path/cmd will be renamed to ${D}/path/cmd.{BPN} automatically
#     priority will be the same from ALTERNATIVE_PRIORITY
#
# If above assumption breaks your requirement, then you still need to use
# your own update-alternatives command directly.

The manual refers to second part in description, which is marked as obsolete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29525</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-02-05 15:37:41 +0000</bug_when>
    <thetext>Updated the section so that the deprecated area is not mentioned.  Section now is more generalized.  Please review this section and comment.  If I receive no comments in a reasonable amount of time I will close the bug.

Thanks,
Scott

http://www.yoctoproject.org/docs/1.4/ref-manual/ref-manual.html#ref-classes-update-alternatives</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29556</commentid>
    <comment_count>2</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-02-06 07:29:03 +0000</bug_when>
    <thetext>It is fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29579</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-02-06 13:41:23 +0000</bug_when>
    <thetext>Thanks for the look Radu.  I am going to mark it resolved.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>