Source: pms
Version: 0.42-1
Severity: serious
Tags: ftbfs

pms fails to build from source, because ncurses added format string
annotations. A non-parallel build in unstable now ends as follows:

| g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
-DLOCALE_DIR=\""/usr/share/locale"\" -c -o display.o `test -f 'src/display.cpp' 
|| echo './'`src/display.cpp
| src/display.cpp: In function ‘void colprint(pms_window*, int, int, color*, 
const char*, ...)’:
| src/display.cpp:1703:40: error: format not a string literal and no format 
arguments [-Werror=format-security]
|  1703 |                                 wprintw(w->h(), _(output.c_str()));
|       |                                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from src/pms.h:46,
|                  from src/display.cpp:26:
| src/display.cpp:1737:59: error: format not a string literal and no format 
arguments [-Werror=format-security]
|  1737 |                                         wprintw(w->h(), _(buf));
|       |                                                           ^~~
| src/i18n.h:31:22: note: in definition of macro ‘_’
|    31 | #define _(x) gettext(x)
|       |                      ^
| src/display.cpp:1745:59: error: format not a string literal and no format 
arguments [-Werror=format-security]
|  1745 |                                         wprintw(w->h(), _(buf));
|       |                                                           ^~~
| src/i18n.h:31:22: note: in definition of macro ‘_’
|    31 | #define _(x) gettext(x)
|       |                      ^
| src/display.cpp:1756:59: error: format not a string literal and no format 
arguments [-Werror=format-security]
|  1756 |                                         wprintw(w->h(), _(buf));
|       |                                                           ^~~
| src/i18n.h:31:22: note: in definition of macro ‘_’
|    31 | #define _(x) gettext(x)
|       |                      ^
| src/display.cpp:1790:32: error: format not a string literal and no format 
arguments [-Werror=format-security]
|  1790 |                         wprintw(w->h(), _(output.c_str()));
|       |                         ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc1plus: some warnings being treated as errors
| make[2]: *** [Makefile:470: display.o] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [Makefile:235: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:4: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Helmut

Reply via email to