]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
util-linux: fix build with ncurses
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Thu, 22 Dec 2016 16:27:07 +0000 (21:57 +0530)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 23 Dec 2016 09:22:38 +0000 (10:22 +0100)
commit006a328ad6bed214ec3c4d92120510ea37329dd1
tree86433186c32ff6d915cf312b170c015ebb8c1e02
parent3eddce6ea04a752388bec22a623320290a5834b5
util-linux: fix build with ncurses

util-linux version 2.29 changed ncurses handling a lot. pkg-config
support to detect ncurses is removed from configure.ac and
ncurses-config is used to detect it. But it even didn't allow to
change config file for cross compilation. However, it is fixed in
upstream later and pkg-config support is added back.

This commit adds two patches from upstream that adds pkg-config support
and allows specifying ncurses-config file as well. However preference is
first given to pkg-config and later ncurses-config file. It also first checks
for version 6 and later 5.

Config option that changed are, ncursesw is enabled by default and ncurses
is disabled by default. So we need to explicilty specify with/without wide
char support now. This new version also allows disabling widechar support.
But it can't be enabled if ncurses without widechar support is enabled.

While building ncurses package, we explicitly enable pkg-config support,
so we don't need to specify ncurses-config file, but it is specified for
completeness.

Fixes:
  http://autobuild.buildroot.net/results/4a2/4a25fb0d4546391d5dbbaa6cde17c45aeddb3549

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Cc: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/util-linux/0001-build-sys-prefer-pkg-config-for-ncurses.patch [new file with mode: 0644]
package/util-linux/0002-build-sys-cleanup-UL_NCURSES_CHECK.patch [new file with mode: 0644]
package/util-linux/Config.in
package/util-linux/util-linux.mk