Bug 13677 - check-lxdialog.sh mixes wide ncurses library with non wide (narrow) ncurses headers
Summary: check-lxdialog.sh mixes wide ncurses library with non wide (narrow) ncurses h...
Status: CLOSED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Configuration (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_configuration@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 19:46 UTC by Arkadiusz Miskiewicz
Modified: 2012-06-12 10:18 UTC (History)
2 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Arkadiusz Miskiewicz 2009-06-29 19:46:10 UTC
make menuconfig menus are black and wide due to check-lxdialog.sh being not smart enough.

Theory:

Wide ncurses can be built with --enable-ext-colors. That option enables 256 color support. Such ncurses have different definitions in some headers. The important thing is that wide headers are incompatible with narrow headers.

Using narrow headers with wide library means no colors! Just black and white ncurses.

Unfortunately check-lxdialog.sh is first trying to use wide ncurses but it doesn't verify that it has wide headers.

On my Linux this means that wide library is used with narrow headers -> no colors in ncurses app (like make menuconfig)

Solution:
1) don't use wide ncurses at all
2) verify that we have wide headers when using wide ncurses, otherwise use narrow ncurses and narrow headers

Note You need to log in before you can comment on or make changes to this bug.