Bug#971114: wordgrinder: FTBFS: src/c/arch/unix/cursesw/dpy.c:219:8: error: ‘KEY_EVENT’ undeclared (first use in this function); did you mean ‘KEY_SLEFT’?

2020-09-27 Thread David Given
It looks like ncurses has dropped KEY_EVENT:
https://invisible-island.net/ncurses/NEWS.html#index-t20200817

I'll fix this upstream and produce a new package --- it's about time anyway.

On Sun, 27 Sep 2020 at 20:51, Lucas Nussbaum  wrote:

> Source: wordgrinder
> Version: 0.7.2-1
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20200926 ftbfs-bullseye
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
> Relevant part (hopefully):
> > cc -MMD -MF .obj/lua-5.3-curses-release/src/c/arch/unix/cursesw/dpy.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3
> -I/usr/include/lua5.3   -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED
> -D_XOPEN_SOURCE -D_GNU_SOURCE -I/usr/include/minizip -c
> src/c/arch/unix/cursesw/dpy.c -o
> .obj/lua-5.3-curses-release/src/c/arch/unix/cursesw/dpy.o
> > : warning: "_XOPEN_SOURCE" redefined
> > : note: this is the location of the previous definition
> > src/c/arch/unix/cursesw/dpy.c: In function ‘dpy_getkeyname’:
> > src/c/arch/unix/cursesw/dpy.c:219:8: error: ‘KEY_EVENT’ undeclared
> (first use in this function); did you mean ‘KEY_SLEFT’?
> >   219 |   case KEY_EVENT: return "KEY_EVENT";
> >   |^
> >   |KEY_SLEFT
> > src/c/arch/unix/cursesw/dpy.c:219:8: note: each undeclared identifier is
> reported only once for each function it appears in
> > [14/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/main.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3
> -I/usr/include/lua5.3   -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED
> -D_XOPEN_SOURCE -D_GNU_SOURCE -I/usr/include/minizip -c src/c/main.c -o
> .obj/lua-5.3-curses-release/src/c/main.o
> > : warning: "_XOPEN_SOURCE" redefined
> > : note: this is the location of the previous definition
> > [15/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/lua.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3
> -I/usr/include/lua5.3   -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED
> -D_XOPEN_SOURCE -D_GNU_SOURCE -I/usr/include/minizip -c src/c/lua.c -o
> .obj/lua-5.3-curses-release/src/c/lua.o
> > : warning: "_XOPEN_SOURCE" redefined
> > : note: this is the location of the previous definition
> > [16/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/screen.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3
> -I/usr/include/lua5.3   -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED
> -D_XOPEN_SOURCE -D_GNU_SOURCE -I/usr/include/minizip -c src/c/screen.c -o
> .obj/lua-5.3-curses-release/src/c/screen.o
> > : warning: "_XOPEN_SOURCE" redefined
> > : note: this is the location of the previous definition
> > [17/82] cc -MMD -MF .obj/lua-5.3-x11-release/.obj/luascripts.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/X11 -Os
> -I/usr/include/lua5.3 -I/usr/include/lua5.3   -DARCH='"unix"'
> -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE
> -I/usr/include/minizip -c .obj/luascripts.c -o
> .obj/lua-5.3-x11-release/.obj/luascripts.o
> > [18/82] cc -MMD -MF .obj/lua-5.3-curses-release/.obj/luascripts.o.d
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2
> -fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat
> -Werror=format-security -g -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT
> -DNOCRYPT -Isrc/c -Wall -Wno-unused-function -ffunction-sections
> -fdata-sections -Werror=implicit-function-declaration --std=gnu99
> 

Bug#971114: wordgrinder: FTBFS: src/c/arch/unix/cursesw/dpy.c:219:8: error: ‘KEY_EVENT’ undeclared (first use in this function); did you mean ‘KEY_SLEFT’?

2020-09-27 Thread Lucas Nussbaum
Source: wordgrinder
Version: 0.7.2-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200926 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> cc -MMD -MF .obj/lua-5.3-curses-release/src/c/arch/unix/cursesw/dpy.o.d 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -D_DEFAULT_SOURCE 
> -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3 -I/usr/include/lua5.3   
> -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE 
> -I/usr/include/minizip -c src/c/arch/unix/cursesw/dpy.c -o 
> .obj/lua-5.3-curses-release/src/c/arch/unix/cursesw/dpy.o
> : warning: "_XOPEN_SOURCE" redefined
> : note: this is the location of the previous definition
> src/c/arch/unix/cursesw/dpy.c: In function ‘dpy_getkeyname’:
> src/c/arch/unix/cursesw/dpy.c:219:8: error: ‘KEY_EVENT’ undeclared (first use 
> in this function); did you mean ‘KEY_SLEFT’?
>   219 |   case KEY_EVENT: return "KEY_EVENT";
>   |^
>   |KEY_SLEFT
> src/c/arch/unix/cursesw/dpy.c:219:8: note: each undeclared identifier is 
> reported only once for each function it appears in
> [14/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/main.o.d -Wdate-time 
> -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -D_DEFAULT_SOURCE 
> -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3 -I/usr/include/lua5.3   
> -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE 
> -I/usr/include/minizip -c src/c/main.c -o 
> .obj/lua-5.3-curses-release/src/c/main.o
> : warning: "_XOPEN_SOURCE" redefined
> : note: this is the location of the previous definition
> [15/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/lua.o.d -Wdate-time 
> -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -D_DEFAULT_SOURCE 
> -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3 -I/usr/include/lua5.3   
> -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE 
> -I/usr/include/minizip -c src/c/lua.c -o 
> .obj/lua-5.3-curses-release/src/c/lua.o
> : warning: "_XOPEN_SOURCE" redefined
> : note: this is the location of the previous definition
> [16/82] cc -MMD -MF .obj/lua-5.3-curses-release/src/c/screen.o.d -Wdate-time 
> -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -D_DEFAULT_SOURCE 
> -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3 -I/usr/include/lua5.3   
> -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE 
> -I/usr/include/minizip -c src/c/screen.c -o 
> .obj/lua-5.3-curses-release/src/c/screen.o
> : warning: "_XOPEN_SOURCE" redefined
> : note: this is the location of the previous definition
> [17/82] cc -MMD -MF .obj/lua-5.3-x11-release/.obj/luascripts.o.d -Wdate-time 
> -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -I/usr/include/freetype2 
> -I/usr/include/libpng16 -I/usr/include/X11 -Os -I/usr/include/lua5.3 
> -I/usr/include/lua5.3   -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED 
> -D_XOPEN_SOURCE -D_GNU_SOURCE -I/usr/include/minizip -c .obj/luascripts.c -o 
> .obj/lua-5.3-x11-release/.obj/luascripts.o
> [18/82] cc -MMD -MF .obj/lua-5.3-curses-release/.obj/luascripts.o.d 
> -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security -g 
> -DVERSION='"0.7.2"' -DFILEFORMAT=7 -DNOUNCRYPT -DNOCRYPT -Isrc/c -Wall 
> -Wno-unused-function -ffunction-sections -fdata-sections 
> -Werror=implicit-function-declaration --std=gnu99 -D_DEFAULT_SOURCE 
> -D_XOPEN_SOURCE=600 -Os -I/usr/include/lua5.3 -I/usr/include/lua5.3   
> -DARCH='"unix"' -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE -D_GNU_SOURCE 
> -I/usr/include/minizip -c .obj/luascripts.c -o 
> .obj/lua-5.3-curses-release/.obj/luascripts.o
>