update-alternatives: Add a build-time dependency
authorMark Hatle <mark.hatle@windriver.com>
Fri, 18 Jan 2013 23:13:38 +0000 (17:13 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Jan 2013 13:06:43 +0000 (13:06 +0000)
commite5ede86c36553f7b14fb2d62c05829ed408034df
tree97c4780866f7c7c62ae9cdc7b0e1b864ea4fc632
parent799c8106cfe8b1977dae6801b68c86bf6fb6d83b
update-alternatives: Add a build-time dependency

We need to add a build time dependency on virtual/update-alternatives,
however we can't just do DEPENDS +=, or we end up with various problems.  To
work around this, in the anonymous python space we ensure we only do the
addition when the package does not provide virtual/update-alternatives and
it is a target package.

Also the system wide PREFERRED_PROVIDER was incorrect.  It references a
runtime package, and not the recipe it should have.  This has been corrected.

[YOCTO #3691]

(From OE-Core rev: 56a59ef12936dcc6464cf1d43dda6957a5aa8c65)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Tested-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-alternatives.bbclass
meta/conf/distro/include/default-providers.inc