From patchwork Fri Apr 20 16:45:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [CONSOLIDATED,PULL,26/43] ncurses: Use update-alternatives Date: Fri, 20 Apr 2012 16:45:17 -0000 From: Saul Wold X-Patchwork-Id: 26207 Message-Id: To: openembedded-core@lists.openembedded.org From: Mark Hatle Specify update-alternatives with MANUAL_ALTERNATIVE_LINKS to ensure that the packages get proper runtime provides. Signed-off-by: Mark Hatle --- 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