[OE-core] [CONSOLIDATED PULL 26/43] ncurses: Use update-alternatives
Saul Wold
sgw at linux.intel.com
Fri Apr 20 16:45:17 UTC 2012
From: Mark Hatle <mark.hatle at windriver.com>
Specify update-alternatives with MANUAL_ALTERNATIVE_LINKS to ensure
that the packages get proper runtime provides.
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
---
meta/recipes-core/ncurses/ncurses.inc | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index ae99e2c..e46f341 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
SECTION = "libs"
DEPENDS = "ncurses-native"
DEPENDS_virtclass-native = ""
-INC_PR = "r8"
+INC_PR = "r9"
inherit autotools binconfig multilib_header
@@ -206,6 +206,9 @@ python populate_packages_prepend () {
do_split_packages(d, base_libdir, '^lib(.*)\.so\..*', pnbase, 'ncurses %s library', prepend=True, extra_depends = '', allow_links=True)
}
+inherit update-alternatives
+
+MANUAL_ALTERNATIVE_LINKS = "${bindir}/clear ${bindir}/reset"
pkg_postinst_ncurses-tools () {
if [ "${PN}" = "ncurses" ]; then
--
1.7.7.6
More information about the Openembedded-core
mailing list