bc: use update-alternatives to make dc play nice with busybox

busybox' default configuration enables dc app, which bc also provides,
setup update-alternatives to resolve the conflict.

(From OE-Core rev: f8456e7a0fd8559497db8292c87fee4fd95eb9c6)

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Denys Dmytriyenko 2012-03-28 19:52:50 -04:00 committed by Richard Purdie
parent dd4d49b20f
commit 1fd8c6fe08
1 changed files with 5 additions and 2 deletions

View File

@ -11,11 +11,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
SECTION = "base"
DEPENDS = "flex"
PR = "r0"
PR = "r1"
SRC_URI = "${GNU_MIRROR}/bc/bc-${PV}.tar.gz"
SRC_URI[md5sum] = "d44b5dddebd8a7a7309aea6c36fda117"
SRC_URI[sha256sum] = "4ef6d9f17c3c0d92d8798e35666175ecd3d8efac4009d6457b5c99cea72c0e33"
inherit autotools
inherit autotools update-alternatives
ALTERNATIVE_LINKS = "${bindir}/dc"
ALTERNATIVE_PRIORITY = "100"