On 2023-04-17 17:09 -0700, Steve Langasek wrote:

> Package: libncurses-dev
> Version: 6.4-2
> Severity: normal
>
> The libncurses-dev package ships several header files that can't be
> compiled, because they depend on ncurses_cfg.h which is not available.
>
> $ grep -rl ncurses_cfg /usr/include/
> /usr/include/tic.h
> /usr/include/curses.h
> /usr/include/nc_tparm.h
> $

The curses.h file is a false positive, as ncurses_cfg.h is only
mentioned inside a comment:

,----
| $  grep -A2 -B1 ncurses_cfg /usr/include/curses.h
| /*
|  * We cannot define these in ncurses_cfg.h, since they require parameters to 
be
|  * passed (that is non-portable).
|  */
`----

The other two files indeed #include the non-existent ncurses_cfg.h file.
Perhaps surprisingly, this is actually done on purpose, as mentioned in
the upstream NEWS file:

,----
| 20170722
|       + add dependency upon ncurses_cfg.h to tic's header-files; any program
|         using tic-library will have to supply this file.  Legacy tack
|         versions supply this file; ongoing tack development has dropped the
|         dependency upon tic-library and new releases will not be affected.
`----

Supplying an empty ncurses_cfg.h file might be sufficient for your
purposes, but I don't know what these are.

Cheers,
       Sven

Reply via email to