summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-05-15 18:35:04 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-30 12:04:41 +0100
commit4ca029b30fd24d02f235da95c6646c115f71130b (patch)
treeff5b4c646f1b30f13118db81044040f7724eb883 /meta/recipes-core/ncurses
parent07da870e5a0affdf55cd1a541faa37df39a0d52a (diff)
downloadpoky-4ca029b30fd24d02f235da95c6646c115f71130b.tar.gz
ncurses: use new update-alternatives
(From OE-Core rev: 54a92bdd0555d776efe92f7cf57a75039562556a) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/ncurses')
-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() {
166 166
167 rm -f ${D}${libdir}/terminfo 167 rm -f ${D}${libdir}/terminfo
168 168
169 if [ "${PN}" = "ncurses" ]; then
170 mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
171 mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
172 fi
173
174
175 # create linker scripts for libcurses.so and libncurses to 169 # create linker scripts for libcurses.so and libncurses to
176 # link against -ltinfo when needed. Some builds might break 170 # link against -ltinfo when needed. Some builds might break
177 # else when '-Wl,--no-copy-dt-needed-entries' has been set in 171 # else when '-Wl,--no-copy-dt-needed-entries' has been set in
@@ -220,19 +214,11 @@ python populate_packages_prepend () {
220} 214}
221 215
222 216
223pkg_postinst_ncurses-tools () { 217inherit update-alternatives
224 if [ "${PN}" = "ncurses" ]; then
225 update-alternatives --install ${bindir}/clear clear clear.${PN} 100
226 update-alternatives --install ${bindir}/reset reset reset.${PN} 100
227 fi
228}
229 218
230pkg_prerm_ncurses-tools () { 219ALTERNATIVE_PRIORITY = "100"
231 if [ "${PN}" = "ncurses" ]; then 220
232 update-alternatives --remove clear clear.${PN} 221ALTERNATIVE_ncurses-tools = "clear reset"
233 update-alternatives --remove reset reset.${PN}
234 fi
235}
236 222
237BBCLASSEXTEND = "native nativesdk" 223BBCLASSEXTEND = "native nativesdk"
238 224