]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Thu, 15 Mar 2018 10:38:46 +0000 (03:38 -0700)
Ncurses doesn't honour ${libdir} for terminfo, so try more options to remove it.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/ncurses/ncurses.inc

index 106dcb016e122cf57e7b6e450fc97e651298f341..0bfd644d18f30654db0d1855a470d239b3dcf3bc 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