ncmpc: fix build with ncursesw
PATCH 1/1 ncmpc: fix build with ncursesw
Set curses to ncurses as ncurses and ncursesw are the same package in buildroot. Otherwise, build will fail when trying to find ncursesw/curses.h or ncursesw.h.
Fixes:
- http://autobuild.buildroot.net/results/c5bb5f978602896179ff9c58ecf4ced40bb96b57
--- package/ncmpc/ncmpc.mk | 1 + 1 file changed, 1 insertion(+)
package/ncmpc/ncmpc.mk +1 -0
@@ -14,6 +14,7 @@ NCMPC_LICENSE_FILES = COPYING NCMPC_CONF_OPTS += \ --prefix=/usr \ + -Dcurses=ncurses \ --buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \ --cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf
Signature · 1 line
2.14.1
PATCH 1/1 ncmpc: fix build with ncursesw
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Set curses to ncurses as ncurses and ncursesw are the same package in buildroot. Otherwise, build will fail when trying to find
ncursesw/curses.horncursesw.h.
Thanks. I don't find this commit message very clear, so I've rewritten it to this and committed:
When ncurses is built with wide support, we install libncursesw (plus a libncurses symlink) but NOT ncursesw.h, only ncurses.h. This combination confuses the ncmpc build system as it expects a ncursesw.h when it finds libncursesw:
meson.build:92:4: ERROR: Problem encountered: No ncursesw header found
The ncurses/ncursesw logic in the build system is only used to know what header file to #include, and what library to link with. As we already provide a libncurses symlink when building with wide support we can simply force ncmpc to use the ncurses variant.
Signature · 1 line
Bye, Peter Korsgaard