Followup-For: Bug #1066678 Control: tag -1 patch Hi, attached are two patches to fix the missing declaration. Furthermore the generated source code files lacheck.c and lacheck.noflex.c need to be cleaned in order to fix building the package twice in a row but I couldn't quickly inject that into d/clean or d/rules.
Andreas
>From eaf3df4d725facee08964d2329335cf4c2a25cd4 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Sun, 28 Apr 2024 07:41:41 +0200 Subject: [PATCH 1/2] fix building with -Werror=implicit-function-declaration --- debian/patches/missing-prototypes.patch | 13 +++++++++++++ debian/patches/series | 1 + 2 files changed, 14 insertions(+) create mode 100644 debian/patches/missing-prototypes.patch diff --git a/debian/patches/missing-prototypes.patch b/debian/patches/missing-prototypes.patch new file mode 100644 index 0000000..9ff8e8e --- /dev/null +++ b/debian/patches/missing-prototypes.patch @@ -0,0 +1,13 @@ +Author: Andreas Beckmann <a...@debian.org> +Description: fix building with -Werror=implicit-function-declaration + +--- a/lacheck.lex ++++ b/lacheck.lex +@@ -117,6 +117,7 @@ + + #include <stdio.h> + #include <string.h> ++#include <unistd.h> + /* #include <sys/param.h> */ + + /* extern char *realloc(); */ diff --git a/debian/patches/series b/debian/patches/series index 4205e35..1d7082e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ 0002-Fix-check-target-in-Makefile.patch 0003-Makefile-Add-LDFLAGS-to-CC-invocation.patch 0004-Reproducible-build.patch +missing-prototypes.patch -- 2.20.1
>From 407b04f58d221193fa7d3514e8b5109f0c980c3e Mon Sep 17 00:00:00 2001 From: Andreas Beckmann <a...@debian.org> Date: Sun, 28 Apr 2024 07:44:51 +0200 Subject: [PATCH 2/2] add Build-Depends: flex --- debian/control | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index b242e22..c0598a9 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,8 @@ Source: lacheck Priority: optional Section: tex -Build-Depends: debhelper (>= 9), eperl +Build-Depends: debhelper (>= 9), eperl, + flex, Maintainer: Davide G. M. Salvetti <sa...@debian.org> Standards-Version: 3.9.8 Homepage: https://www.ctan.org/tex-archive/support/lacheck/ -- 2.20.1