Files
buildroot/package
Thomas Petazzoni 5a18eabdf0 util-linux: fix ncurses/wchar handling
Since commit 006a328ad6 ("util-linux: fix
build with ncurses"), we have a build failure that occurs with musl
toolchains when wide-char support is not enabled in ncurses.

The problem comes from the fact that musl provides wchar support (so it
defines wchar_t). But when ncursesw is not available, we currently pass
--disable-widechar which tells util-linux that wchar support is not
available at all (not only in ncurses). When this gets passed to
util-linux configure script, then it defines its own wchar_t, which
conflicts with the musl definition.

So, we should not pass --disable-widechar when BR2_USE_WCHAR=y, which is
what this commit does: it moves the BR2_USE_WCHAR logic outside of the
ncurses logic, and passes --enable-widechar/--disable-widechar as
appropriate.

However, there's a gotcha: util-linux really wants the ncursesw variant
of ncurses when the system has wchar support enabled. We take this into
account by:

 - Enabling ncursesw when BR2_PACKAGE_NCURSES_WCHAR=y. In this case, we
   have ncurses and we have BR2_USE_WCHAR=y, so everything is fine.

 - Otherwise, enabling ncurses when BR2_PACKAGE_NCURSES=y but
   BR2_USE_WCHAR is disabled.

To make sure that the existing util-linux programs that need ncurses
support still build fine, we adjust the Config.in to select
BR2_PACKAGE_NCURSES_WCHAR on BR2_USE_WCHAR=y configurations.

Fixes:

  http://autobuild.buildroot.net/results/19de2a0b12380ddc86dbba0dae3a3877b25f83ff/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-12-23 15:01:11 +01:00
..
2016-12-03 00:00:18 +01:00
2016-12-22 10:50:37 +01:00
2016-09-20 20:07:59 +02:00
2016-10-07 22:58:00 +02:00
2016-09-20 19:03:46 +02:00
2016-11-28 22:25:14 +01:00
2016-11-30 12:02:19 +01:00
2016-12-18 21:21:14 +01:00
2016-11-29 08:28:01 +01:00
2016-12-09 18:03:35 +01:00
2016-12-20 19:27:27 +01:00
2016-12-05 21:29:01 +01:00
2016-12-09 17:56:52 +01:00
2016-12-02 23:58:14 +01:00
2016-11-05 15:37:21 +01:00
2016-12-11 15:09:27 +01:00
2016-12-02 17:17:09 +01:00
2016-10-13 08:02:27 +02:00
2016-10-13 08:05:38 +02:00
2016-12-01 22:29:56 +01:00
2016-12-12 12:02:24 +01:00
2016-12-12 10:57:20 +01:00
2016-12-07 18:16:42 +01:00
2016-12-07 23:45:35 +01:00
2016-12-09 20:12:06 +01:00
2016-10-05 22:54:09 +02:00
2016-09-21 22:25:21 +02:00
2016-12-09 18:27:36 +01:00
2016-10-26 12:29:29 +02:00
2016-12-03 00:00:24 +01:00
2016-10-16 17:49:50 +02:00
2016-12-21 17:19:58 +01:00
2016-09-21 23:32:10 +02:00
2016-11-30 11:59:27 +01:00
2016-09-25 23:17:26 +02:00
2016-12-19 00:32:56 +01:00
2016-12-02 09:19:08 +01:00
2016-12-09 18:11:24 +01:00
2016-10-28 14:44:22 +02:00
2016-11-25 17:45:26 +01:00
2016-12-09 18:12:01 +01:00
2016-10-29 15:45:33 +02:00
2016-09-25 23:17:32 +02:00
2016-10-29 15:45:31 +02:00
2016-12-17 08:40:36 +01:00
2016-10-16 13:12:29 +02:00
2016-12-09 18:11:11 +01:00
2016-10-20 21:34:32 +02:00
2016-10-15 11:24:50 +02:00
2016-11-15 13:02:04 +01:00
2016-09-14 16:46:26 +02:00
2016-12-12 22:27:10 +01:00
2016-10-11 11:22:58 +02:00
2016-10-19 23:31:59 +02:00
2016-12-22 13:36:08 +01:00
2016-12-23 00:04:46 +01:00
2016-10-28 14:44:08 +02:00
2016-10-20 21:34:26 +02:00
2016-12-02 08:53:56 +01:00
2016-12-11 21:07:52 +01:00
2016-12-23 15:00:04 +01:00
2016-12-01 22:29:56 +01:00
2016-10-30 16:29:21 +01:00
2016-10-27 21:53:01 +02:00
2016-11-16 22:15:09 +01:00
2016-12-21 19:44:44 +01:00
2016-12-02 09:28:51 +01:00
2016-10-12 22:28:22 +02:00
2016-12-09 18:11:46 +01:00
2016-10-28 15:17:43 +02:00
2016-10-20 21:34:22 +02:00
2016-11-21 23:18:33 +01:00
2016-12-12 16:56:52 +01:00
2016-12-09 17:55:04 +01:00
2016-10-16 13:07:08 +02:00
2016-10-16 18:04:11 +02:00
2016-12-21 17:14:38 +01:00
2016-10-13 08:04:13 +02:00
2016-10-26 21:51:33 +02:00
2016-11-06 22:31:53 +01:00
2016-09-20 20:07:55 +02:00
2016-10-22 16:45:06 +02:00
2016-09-16 18:38:34 +02:00
2016-12-22 10:33:23 +01:00
2016-10-19 17:57:18 +02:00
2016-11-01 14:50:51 +01:00
2016-11-16 22:14:53 +01:00
2016-10-05 22:57:54 +02:00
2016-12-04 16:11:59 +01:00
2016-11-30 22:10:42 +01:00
2016-11-21 21:24:23 +01:00
2016-11-21 21:24:23 +01:00
2016-12-21 22:18:39 +01:00
2016-12-01 22:29:56 +01:00
2016-12-06 20:20:19 +01:00
2016-10-03 13:11:03 +02:00
2016-12-01 22:29:56 +01:00
2016-12-21 11:13:03 +01:00
2016-12-04 21:54:30 +01:00
2016-12-01 22:29:56 +01:00
2016-12-15 14:55:36 +01:00
2016-11-21 21:46:00 +01:00
2016-12-09 18:10:37 +01:00
2016-10-13 08:02:50 +02:00
2016-10-13 08:06:42 +02:00
2016-12-12 21:17:42 +01:00
2016-11-30 22:16:06 +01:00
2016-10-02 16:19:47 +02:00
2016-10-02 16:21:31 +02:00
2016-09-28 15:45:21 +02:00
2016-12-21 17:14:51 +01:00
2016-10-27 10:41:53 +02:00
2016-12-21 15:13:21 +01:00
2016-12-22 10:51:20 +01:00
2016-12-02 22:38:22 +01:00
2016-10-14 16:52:08 +02:00
2016-10-03 13:15:22 +02:00
2016-11-25 17:49:01 +01:00
2016-11-19 10:57:43 +01:00
2016-11-21 21:44:58 +01:00
2016-11-14 23:47:38 +01:00
2016-10-01 10:00:17 +02:00
2016-10-07 15:49:59 +02:00
2016-09-14 21:46:04 +02:00
2016-11-10 10:39:38 +01:00
2016-10-04 14:43:34 +02:00
2016-12-12 22:46:19 +01:00
2016-12-18 21:28:29 +01:00
2016-11-06 15:00:43 +01:00
2016-12-17 15:09:15 +01:00
2016-12-08 22:28:02 +01:00
2016-11-25 21:55:03 +01:00
2016-11-13 18:03:57 +01:00
2016-11-19 10:50:19 +01:00
2016-12-17 15:31:45 +01:00
2016-11-30 12:00:46 +01:00
2016-12-18 21:30:29 +01:00
2016-12-04 15:58:14 +01:00
2016-12-04 15:58:15 +01:00
2016-11-21 21:14:36 +01:00
2016-09-19 19:28:14 +02:00
2016-12-22 10:29:25 +01:00
2016-12-01 22:29:56 +01:00
2016-12-23 11:19:58 +01:00
2016-09-09 17:01:29 +02:00
2016-10-02 21:22:27 +02:00
2016-09-20 21:04:52 +02:00
2016-11-02 17:25:09 +01:00
2016-12-18 21:27:56 +01:00
2016-09-24 16:40:10 +02:00
2016-12-21 15:12:37 +01:00
2016-11-10 13:56:18 +01:00
2016-12-06 11:28:43 +01:00
2016-12-09 18:17:04 +01:00
2016-10-26 12:29:33 +02:00
2016-12-15 13:55:48 +01:00
2016-12-17 14:19:56 +01:00
2016-09-30 11:56:36 +02:00
2016-12-21 07:29:39 +01:00
2016-11-19 10:43:06 +01:00
2016-10-29 15:15:04 +02:00
2016-10-15 12:23:39 +02:00
2016-09-26 22:37:51 +02:00
2016-11-05 13:54:41 +01:00
2016-12-09 18:11:28 +01:00
2016-11-09 22:15:06 +01:00
2016-10-13 07:38:49 +02:00
2016-10-25 22:35:32 +02:00
2016-12-02 22:02:29 +01:00
2016-09-25 23:16:48 +02:00
2016-11-11 22:33:26 +01:00
2016-12-21 22:18:58 +01:00
2016-10-22 15:30:51 +02:00
2016-12-09 20:08:29 +01:00
2016-12-23 14:36:38 +01:00
2016-12-18 21:32:17 +01:00
2016-12-01 22:29:56 +01:00
2016-09-25 21:58:07 +02:00
2016-10-20 22:58:58 +02:00
2016-12-04 16:30:12 +01:00
2016-12-18 21:33:02 +01:00
2016-12-12 17:16:34 +01:00
2016-10-25 19:59:18 +02:00
2016-12-23 11:19:58 +01:00