diff options
| -rw-r--r-- | meta/recipes-core/ncurses/ncurses.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 835ecc33e8..a94466a634 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc | |||
| @@ -147,7 +147,12 @@ _install_cfgs = "\ | |||
| 147 | PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \ | 147 | PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \ |
| 148 | " | 148 | " |
| 149 | 149 | ||
| 150 | do_install() { | 150 | python do_install () { |
| 151 | bb.build.exec_func("shell_do_install", d) | ||
| 152 | oe.path.make_relative_symlink(d.expand("${D}${libdir}/libtinfo.so")) | ||
| 153 | } | ||
| 154 | |||
| 155 | shell_do_install() { | ||
| 151 | # Order of installation is important; widec installs a 'curses.h' | 156 | # Order of installation is important; widec installs a 'curses.h' |
| 152 | # header with more definitions and must be installed last hence. | 157 | # header with more definitions and must be installed last hence. |
| 153 | # Compatibility of these headers will be checked in 'do_test()'. | 158 | # Compatibility of these headers will be checked in 'do_test()'. |
| @@ -221,7 +226,8 @@ do_install() { | |||
| 221 | 226 | ||
| 222 | mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir} | 227 | mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir} |
| 223 | rm ${D}${libdir}/libtinfo.so | 228 | rm ${D}${libdir}/libtinfo.so |
| 224 | ln -rsf ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so | 229 | # We'll turn this into a relative symlink after do_install returns |
| 230 | ln -sf ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so | ||
| 225 | fi | 231 | fi |
| 226 | 232 | ||
| 227 | oe_multilib_header curses.h | 233 | oe_multilib_header curses.h |
