From 090bf239dd07def080c87d4efdab8b2cd2cdb7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sat, 17 Feb 2018 11:01:56 +0100 Subject: [PATCH] Add patch to fix build with -Werror --- ...sher_fix_Werror_implicit-fallthrough.patch | 25 +++++++++++++++++++ libkcapi.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 libkcapi-1.0.3-kcapi-hasher_fix_Werror_implicit-fallthrough.patch diff --git a/libkcapi-1.0.3-kcapi-hasher_fix_Werror_implicit-fallthrough.patch b/libkcapi-1.0.3-kcapi-hasher_fix_Werror_implicit-fallthrough.patch new file mode 100644 index 0000000..e02405e --- /dev/null +++ b/libkcapi-1.0.3-kcapi-hasher_fix_Werror_implicit-fallthrough.patch @@ -0,0 +1,25 @@ +From 53775cd61f8e4a538cf057b73d91f510ef11fbaa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= +Date: Sat, 17 Feb 2018 10:54:22 +0100 +Subject: [PATCH] kcapi-hasher: Fix -Werror=implicit-fallthrough + +--- + apps/kcapi-hasher.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/apps/kcapi-hasher.c b/apps/kcapi-hasher.c +index bb4ac92..f7b056d 100644 +--- a/apps/kcapi-hasher.c ++++ b/apps/kcapi-hasher.c +@@ -758,10 +758,10 @@ int main(int argc, char *argv[]) + usage(argv[0]); + ret = 0; + goto out; +- } + case 7: + bsd_style = 1; + break; ++ } + break; + + case 'v': diff --git a/libkcapi.spec b/libkcapi.spec index 2f8016b..36cd8f4 100644 --- a/libkcapi.spec +++ b/libkcapi.spec @@ -80,7 +80,7 @@ Name: libkcapi Version: %{vmajor}.%{vminor}.%{vpatch} -Release: 4%{?dist} +Release: 5%{?dist} Summary: User space interface to the Linux Kernel Crypto API License: BSD or GPLv2 @@ -94,6 +94,7 @@ Patch2: %{giturl}/commit/63855e3e2414afbe232e5ea2e4bdfb03b786344a.patch# Patch3: %{giturl}/commit/b9bced05dae319c6a00c2adce8953d468404a95c.patch#/%{name}-1.0.3-autotools_full_path.patch Patch4: %{giturl}/commit/ba147c9cce460c29076968c9e9e1a3828c0e9143.patch#/%{name}-1.0.3-hasher_test_hmaccalc_path.patch Patch5: %{giturl}/commit/bc7c26efe5ab5c7644fac421b2fb6b1b687c4d0e.patch#/%{name}-1.0.3-test_invocation_fix_bash_coding_error.patch +Patch6: %{giturl}/pull/37.patch#/%{name}-1.0.3-kcapi-hasher_fix_Werror_implicit-fallthrough.patch BuildRequires: clang BuildRequires: coreutils @@ -411,6 +412,9 @@ popd %changelog +* Sat Feb 17 2018 Björn Esser - 1.0.3-5 +- Add patch to fix build with -Werror + * Wed Feb 07 2018 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild