Revert "util-linux: fix ncurses/wchar handling"
authorCarlos Santos <casantos@datacom.ind.br>
Sun, 22 Jan 2017 03:15:41 +0000 (01:15 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 22 Jan 2017 06:53:19 +0000 (17:53 +1100)
This reverts commit 5a18eabdf08564688761a9b2f35892d69d8f9a18.

It did not take into account all the possible situations. A different fix
will be provided in a forthcomming patch.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/util-linux/Config.in
package/util-linux/util-linux.mk

index cfb245123d5c0901fbc37813ddf801dcd020ad8e..e957f848bb886b60caacbc1f3b8b84776f09037e 100644 (file)
@@ -207,7 +207,6 @@ config BR2_PACKAGE_UTIL_LINUX_MORE
        bool "more"
        depends on BR2_USE_MMU # fork()
        select BR2_PACKAGE_NCURSES
-       select BR2_PACKAGE_NCURSES_WCHAR if BR2_USE_WCHAR
        help
          File perusal filter for crt viewing
 
@@ -253,7 +252,6 @@ config BR2_PACKAGE_UTIL_LINUX_PG
        bool "pg"
        depends on BR2_USE_MMU # fork()
        select BR2_PACKAGE_NCURSES
-       select BR2_PACKAGE_NCURSES_WCHAR if BR2_USE_WCHAR
        help
          Browse pagewise through text files
 
@@ -300,7 +298,6 @@ config BR2_PACKAGE_UTIL_LINUX_SETPRIV
 config BR2_PACKAGE_UTIL_LINUX_SETTERM
        bool "setterm"
        select BR2_PACKAGE_NCURSES
-       select BR2_PACKAGE_NCURSES_WCHAR if BR2_USE_WCHAR
        help
          Set terminal attributes
 
@@ -313,14 +310,12 @@ config BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT
 config BR2_PACKAGE_UTIL_LINUX_TUNELP
        bool "tunelp"
        select BR2_PACKAGE_NCURSES
-       select BR2_PACKAGE_NCURSES_WCHAR if BR2_USE_WCHAR
        help
          Set various parameters for the lp device
 
 config BR2_PACKAGE_UTIL_LINUX_UL
        bool "ul"
        select BR2_PACKAGE_NCURSES
-       select BR2_PACKAGE_NCURSES_WCHAR if BR2_USE_WCHAR
        help
          Do underlining
 
index 414465cff6958d87b11f154a345cfab687c6f8c3..51ece90b63d6fdf198be2efb2f1d144e06e67894 100644 (file)
@@ -45,21 +45,21 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 UTIL_LINUX_DEPENDENCIES += busybox
 endif
 
-ifeq ($(BR2_USE_WCHAR),y)
-UTIL_LINUX_CONF_OPTS += --enable-widechar
-else
-UTIL_LINUX_CONF_OPTS += --disable-widechar
-endif
-
-ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
+ifeq ($(BR2_PACKAGE_NCURSES),y)
 UTIL_LINUX_DEPENDENCIES += ncurses
+ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
 UTIL_LINUX_CONF_OPTS += --with-ncursesw
 UTIL_LINUX_CONF_ENV += NCURSESW5_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
-else ifeq ($(BR2_PACKAGE_NCURSES):$(BR2_USE_WCHAR),y:)
-UTIL_LINUX_DEPENDENCIES += ncurses
-UTIL_LINUX_CONF_OPTS += --without-ncursesw --with-ncurses
+else
+UTIL_LINUX_CONF_OPTS += --without-ncursesw --with-ncurses --disable-widechar
 UTIL_LINUX_CONF_ENV += NCURSES5_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
+endif
+else
+ifeq ($(BR2_USE_WCHAR),y)
+UTIL_LINUX_CONF_OPTS += --enable-widechar
 else
+UTIL_LINUX_CONF_OPTS += --disable-widechar
+endif
 UTIL_LINUX_CONF_OPTS += --without-ncursesw --without-ncurses
 endif