summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/ncurses/ncurses.inc22
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"