Package: src:bc Version: bc 1.07.1-3 Severity: serious Tags: sid trixie patch
bc fails to build with abi=time64, which turns on -Werror=implicit-function-declaration.
* Avoid -Wimplicit-function-declaration warnings. diff -Nru bc-1.07.1/debian/patches/no-implicit-function-declaration.diff bc-1.07.1/debian/patches/no-implicit-function-declaration.diff --- bc-1.07.1/debian/patches/no-implicit-function-declaration.diff 1970-01-01 01:00:00.000000000 +0100 +++ bc-1.07.1/debian/patches/no-implicit-function-declaration.diff 2024-03-03 13:40:56.000000000 +0100 @@ -0,0 +1,50 @@ +--- a/dc/dc.c ++++ b/dc/dc.c +@@ -47,6 +47,7 @@ + #include <unistd.h> + #include "dc.h" + #include "dc-proto.h" ++#include "number.h" + + #ifndef EXIT_SUCCESS /* C89 <stdlib.h> */ + # define EXIT_SUCCESS 0 +--- a/dc/eval.c ++++ b/dc/eval.c +@@ -41,6 +41,7 @@ + #endif + #include "dc.h" + #include "dc-proto.h" ++#include "number.h" + + typedef enum {DC_FALSE, DC_TRUE} dc_boolean; + +--- a/dc/misc.c ++++ b/dc/misc.c +@@ -47,6 +47,7 @@ + #include <getopt.h> + #include "dc.h" + #include "dc-proto.h" ++#include "number.h" + + #ifndef EXIT_FAILURE /* C89 <stdlib.h> */ + # define EXIT_FAILURE 1 +--- a/dc/stack.c ++++ b/dc/stack.c +@@ -33,6 +33,7 @@ + #include "dc.h" + #include "dc-proto.h" + #include "dc-regdef.h" ++#include "number.h" + + /* an oft-used error message: */ + #define Empty_Stack do{ \ +--- a/dc/string.c ++++ b/dc/string.c +@@ -45,6 +45,7 @@ + #endif + #include "dc.h" + #include "dc-proto.h" ++#include "number.h" + + /* here is the completion of the dc_string type: */ + struct dc_string { diff -Nru bc-1.07.1/debian/patches/series bc-1.07.1/debian/patches/series --- bc-1.07.1/debian/patches/series 2019-12-05 20:35:54.000000000 +0100 +++ bc-1.07.1/debian/patches/series 2024-03-03 13:38:34.000000000 +0100 @@ -5,3 +5,4 @@ 06_read_dcrc.diff 07_bc_man.diff 08_no-make-circular-dependencies.diff +no-implicit-function-declaration.diff