From 3461a3d164837d852130a2de0aa465b17bfcf780 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 12 Jul 2021 08:15:57 -0400 Subject: [PATCH] Fix build due to -Werror --- 001-libkcapi-1.3.0-werror.patch | 13 +++++++++++++ libkcapi.spec | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 001-libkcapi-1.3.0-werror.patch diff --git a/001-libkcapi-1.3.0-werror.patch b/001-libkcapi-1.3.0-werror.patch new file mode 100644 index 0000000..e1fd9ba --- /dev/null +++ b/001-libkcapi-1.3.0-werror.patch @@ -0,0 +1,13 @@ +diff -uPr libkcapi-1.3.0/lib/doc/bin/docproc.c libkcapi-1.3.0.werror/lib/doc/bin/docproc.c +--- libkcapi-1.3.0/lib/doc/bin/docproc.c 2021-04-18 11:55:57.000000000 -0400 ++++ libkcapi-1.3.0.werror/lib/doc/bin/docproc.c 2021-07-12 08:13:21.812438118 -0400 +@@ -361,7 +361,8 @@ + { + char *vec[4]; /* kerneldoc -list file NULL */ + pid_t pid; +- ssize_t ret, i, count, start; ++ ssize_t ret, i, count; ++ unsigned int start; + char real_filename[PATH_MAX + 1]; + int pipefd[2]; + char *data, *str; diff --git a/libkcapi.spec b/libkcapi.spec index 66e68a2..58ea165 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -135,6 +135,8 @@ Source1: https://www.chronox.de/%{name}/%{name}-%{version}.tar.xz.asc Source2: sha512hmac-openssl.sh Source3: fipshmac-openssl.sh +Patch1: 001-libkcapi-1.3.0-werror.patch + BuildRequires: bash BuildRequires: coreutils BuildRequires: gcc