diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-05-15 18:35:04 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 10:45:17 +0100 |
commit | 54a92bdd0555d776efe92f7cf57a75039562556a (patch) | |
tree | 93d28bf2158f8ec50eb0f9db0190e73d2dbb2859 | |
parent | e7164da229d8ccccb043a790b25c995a46a83c88 (diff) | |
download | openembedded-core-54a92bdd0555d776efe92f7cf57a75039562556a.tar.gz openembedded-core-54a92bdd0555d776efe92f7cf57a75039562556a.tar.bz2 openembedded-core-54a92bdd0555d776efe92f7cf57a75039562556a.zip |
ncurses: use new update-alternatives
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | meta/recipes-core/ncurses/ncurses.inc | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index b0311196ee..fbfbf0c735 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc @@ -166,12 +166,6 @@ shell_do_install() { rm -f ${D}${libdir}/terminfo - if [ "${PN}" = "ncurses" ]; then - mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN} - mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN} - fi - - # create linker scripts for libcurses.so and libncurses to # link against -ltinfo when needed. Some builds might break # else when '-Wl,--no-copy-dt-needed-entries' has been set in @@ -220,19 +214,11 @@ python populate_packages_prepend () { } -pkg_postinst_ncurses-tools () { - if [ "${PN}" = "ncurses" ]; then - update-alternatives --install ${bindir}/clear clear clear.${PN} 100 - update-alternatives --install ${bindir}/reset reset reset.${PN} 100 - fi -} +inherit update-alternatives -pkg_prerm_ncurses-tools () { - if [ "${PN}" = "ncurses" ]; then - update-alternatives --remove clear clear.${PN} - update-alternatives --remove reset reset.${PN} - fi -} +ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_ncurses-tools = "clear reset" BBCLASSEXTEND = "native nativesdk" |