diff options
| -rw-r--r-- | meta/recipes-core/ncurses/ncurses.inc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index a94466a634..f0a4044345 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc | |||
| @@ -147,12 +147,7 @@ _install_cfgs = "\ | |||
| 147 | PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \ | 147 | PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \ |
| 148 | " | 148 | " |
| 149 | 149 | ||
| 150 | python do_install () { | 150 | 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() { | ||
| 156 | # Order of installation is important; widec installs a 'curses.h' | 151 | # Order of installation is important; widec installs a 'curses.h' |
| 157 | # header with more definitions and must be installed last hence. | 152 | # header with more definitions and must be installed last hence. |
| 158 | # Compatibility of these headers will be checked in 'do_test()'. | 153 | # Compatibility of these headers will be checked in 'do_test()'. |
| @@ -226,8 +221,11 @@ shell_do_install() { | |||
| 226 | 221 | ||
| 227 | mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir} | 222 | mv ${D}${libdir}/libtinfo.so.* ${D}${base_libdir} |
| 228 | rm ${D}${libdir}/libtinfo.so | 223 | rm ${D}${libdir}/libtinfo.so |
| 229 | # We'll turn this into a relative symlink after do_install returns | 224 | |
| 230 | ln -sf ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so | 225 | # Use lnr to ensure this is a relative link despite absolute paths |
| 226 | # (as we can't know the relationship between base_libdir and libdir). | ||
| 227 | # At some point we can rely on coreutils 8.16 which has ln -r. | ||
| 228 | lnr ${D}${base_libdir}/libtinfo.so.5 ${D}${libdir}/libtinfo.so | ||
| 231 | fi | 229 | fi |
| 232 | 230 | ||
| 233 | oe_multilib_header curses.h | 231 | oe_multilib_header curses.h |
