From: Koen Kooi Date: Fri, 9 Mar 2018 13:00:05 +0000 (+0100) Subject: ncurses: fix deletion of /usr/lib/terminfo X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17fd322e925cf492b22c75e296d5fee31e3511db;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git ncurses: fix deletion of /usr/lib/terminfo Ncurses doesn't honour ${libdir} for terminfo, so try more options to remove it. Signed-off-by: Koen Kooi Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 106dcb016e1..0bfd644d18f 100644 --- a/meta/recipes-core/ncurses/ncurses.inc +++ b/meta/recipes-core/ncurses/ncurses.inc @@ -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