aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hollis Blanchard <hollis_blanchard@mentor.com>2018-07-10 09:46:03 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-07-17 16:39:03 +0200
commitb35ad5d0b45e5288f4019aeaa06b87ef0f2ef016 (patch)
tree3b8a18323eae1dafdda7bfd3909a101f9c452a7a
parentab196e4c91711dc96b7279c7d5efa301baa1a2ee (diff)
downloadbuildroot-b35ad5d0b45e5288f4019aeaa06b87ef0f2ef016.tar.gz
buildroot-b35ad5d0b45e5288f4019aeaa06b87ef0f2ef016.tar.bz2
ncurses: make host-ncurses use host terminfo
Host GDB suffers a serious problem: pressing backspace (or ^W ^U or any other "delete" key) results in a plain space being printed instead, making the command prompt almost completely unusable. That's because it's using host-ncurses, which embeds a path for the terminfo database into the library itself. That path ends up being something like /home/hollisb/buildroot.git/output/host/share/terminfo, which obviously doesn't generally exist other hosts. ('relocate-sdk.sh' cannot and does not edit binaries like libncurses.so.6, so doesn't resolve this problem.) /usr/share/terminfo is a far better path to use, since it almost certainly exists on the host. Theoretically, it could be from a different ncurses version with incompatible terminfo database format, but this doesn't seem to be a problem in practice. (Future patches could address the theoretical problem if it actually appears in real life.) This change allows buildroot's host gdb, which uses ncurses 6.x, to work on RHEL5, RHEL6, and RHEL7, which all provide terminfo from ncurses 5.x. Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/ncurses/ncurses.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/ncurses/ncurses.mk b/package/ncurses/ncurses.mk
index 90cf4a4dc5..5b36df564c 100644
--- a/package/ncurses/ncurses.mk
+++ b/package/ncurses/ncurses.mk
@@ -153,6 +153,7 @@ HOST_NCURSES_CONF_OPTS = \
--without-cxx \
--without-cxx-binding \
--without-ada \
+ --with-default-terminfo-dir=/usr/share/terminfo \
--without-normal
$(eval $(autotools-package))