summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-26 12:18:00 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-26 12:18:00 +0200
commit679e133bfd6ec062659bb8cfe09b593e8081fef8 (patch)
treed6df40d10156e90d09af0e3064c5e4123b6aae8c
parentae3bb50a6c0075f9c1ac432ae101011446096aad (diff)
downloadbuildroot-679e133bfd6ec062659bb8cfe09b593e8081fef8.tar.gz
buildroot-679e133bfd6ec062659bb8cfe09b593e8081fef8.zip
util-linux: fix host build when ncurses is not installed
lib/colors.c uses HAVE_LIBTINFO to decide whether term.h and ncurses.h should be included. However, the configure.ac check is bogus: it checks for tinfo using pkg-config, and then if it fails, checks with AC_CHECK_LIB(). So, if you have tinfo installed, but not the corresponding development package, the pkg-config test will fail, but the AC_CHECK_LIB test will succeed, even though the headers are not available. To address this, we explicitly tell host-util-linux that tinfo is not available, like we're already doing for ncurses. Fixes: http://autobuild.buildroot.net/results/3c447e601a7b728860e78cabf2191ab206e6480d/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/util-linux/util-linux.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index bd6508ce44..cf03fd44ac 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -133,7 +133,8 @@ HOST_UTIL_LINUX_CONF_OPTS += \
--enable-libblkid \
--enable-libmount \
--enable-libuuid \
- --without-ncurses
+ --without-ncurses \
+ --without-tinfo
ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX),y)
HOST_UTIL_LINUX_CONF_OPTS += --disable-makeinstall-chown
OpenPOWER on IntegriCloud