]> code.ossystems Code Review - openembedded-core.git/commitdiff
ncurses: fix deletion of /usr/lib/terminfo
authorKoen Kooi <koen@dominion.thruhere.net>
Fri, 9 Mar 2018 13:00:05 +0000 (14:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 May 2018 16:41:02 +0000 (17:41 +0100)
Ncurses doesn't honour ${libdir} for terminfo, so try more options to remove it.

(From OE-Core rev: 17fd322e925cf492b22c75e296d5fee31e3511db)

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/ncurses/ncurses.inc

index 5bd5c0e58d86452edd07d2117c9683f186480b7c..875385271944caf3ac206feb35cf424eb7299fe2 100644 (file)
@@ -201,7 +201,10 @@ do_install() {
                 ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
         fi
 
-        rm -f ${D}${libdir}/terminfo
+        # When changing ${libdir} to e.g. /usr/lib/myawesomelib/ ncurses 
+        # still installs '/usr/lib/terminfo', so try to rm both 
+        # the proper path and a slightly hardcoded one
+        rm -f ${D}${libdir}/terminfo ${D}${prefix}/lib/terminfo
 
         # create linker scripts for libcurses.so and libncurses to
         # link against -ltinfo when needed. Some builds might break