diff options
Diffstat (limited to 'meta')
-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() { | |||
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 | ||
223 | pkg_postinst_ncurses-tools () { | 217 | inherit 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 | ||
230 | pkg_prerm_ncurses-tools () { | 219 | ALTERNATIVE_PRIORITY = "100" |
231 | if [ "${PN}" = "ncurses" ]; then | 220 | |
232 | update-alternatives --remove clear clear.${PN} | 221 | ALTERNATIVE_ncurses-tools = "clear reset" |
233 | update-alternatives --remove reset reset.${PN} | ||
234 | fi | ||
235 | } | ||
236 | 222 | ||
237 | BBCLASSEXTEND = "native nativesdk" | 223 | BBCLASSEXTEND = "native nativesdk" |
238 | 224 | ||