- debian/rules: Work around FTBFS with gcc9 -Wno-error=format-truncation on ppc64
Would look like:
src/madwifi.c:522:62: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 114 [-Werror=format-truncation=]
522 | snprintf(vl.type_instance, sizeof(vl.type_instance), "%s-%s", ti1, ti2);
| ^~
......
684 | submit_derive(dev, "node_stat", "ns_rx_beacons", mac,
| ~~~
In file included from /usr/include/stdio.h:867,
from ./src/daemon/collectd.h:49,
from src/madwifi.c:89:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 15 and 142 bytes into a destination of size 128
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/madwifi.c:522:64: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
522 | snprintf(vl.type_instance, sizeof(vl.type_instance), "%s-%s", ti1, ti2);
| ^
In file included from /usr/include/stdio.h:867,
from ./src/daemon/collectd.h:49,
from src/madwifi.c:89:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 2 or more bytes (assuming 129) into a destination of size 128
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/madwifi.c:522:62: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size 120 [-Werror=format-truncation=]
522 | snprintf(vl.type_instance, sizeof(vl.type_instance), "%s-%s", ti1, ti2);
| ^~
In file included from /usr/include/stdio.h:867,
from ./src/daemon/collectd.h:49,
from src/madwifi.c:89:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 9 and 136 bytes into a destination of size 128
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Signed-off-by: Christian Ehrhardt <email address hidden>
- debian/rules: Work around FTBFS with glibc 2.30 with -Wno-cpp
In file included from src/contextswitch.c:30:
/usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning
"The <sys/sysctl.h> header is deprecated and will be removed."
[-Werror=cpp] 21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
| ^~~~~~~ cc1: all warnings being treated as errors
Lets ignore the error for now until upstream has fixed it.
The overrride was only tried with gcc9, so lets add it inside the gcc9 section that already exists in d/rules.
Signed-off-by: Christian Ehrhardt <email address hidden>