The package rpms/libkcapi.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/libkcapi.git/commit/?id=f5e419506....
Change:
-%ifarch %{power64}
Thanks.
Full change:
============
commit f5e41950602f9565b4702374a56e7dd4258fc5fc
Author: Ondrej Mosnacek <omosnace(a)redhat.com>
Date: Sat Jul 27 22:11:15 2019 +0200
Remove no longer needed ppc64 workaround
The kernel bug causing failures on ppc64le is now fixed in recent/stable
kernels [1], so we can remove the workaround.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
Signed-off-by: Ondrej Mosnacek <omosnace(a)redhat.com>
diff --git a/libkcapi.spec b/libkcapi.spec
index 35753ee..aa40f1d 100644
--- a/libkcapi.spec
+++ b/libkcapi.spec
@@ -285,10 +285,6 @@ net.core.optmem_max = %{sysctl_optmem_max}
EOF
%endif
-%ifarch %{power64}
-%{__sed} -i -e 's!exit \$failures!#&!' test/kcapi-enc-test.sh
-%endif
-
%{_bindir}/autoreconf -fiv
@@ -452,6 +448,7 @@ popd
%changelog
* Sat Jul 27 2019 Ondrej Mosnek <omosnace(a)redhat.com> - 1.1.4-6
- Backport patch to fix test failure on aarch64
+- Remove no longer needed ppc64 workaround
* Sat Jul 27 2019 Ondrej Mosnek <omosnace(a)redhat.com> - 1.1.4-5
- Backport patch to fix tests
commit 3d486e6132dfbd11ddf33512ca6caad2b5e1564c
Author: Ondrej Mosnacek <omosnace(a)redhat.com>
Date: Sat Jul 27 22:08:39 2019 +0200
Backport patch to fix test failure on aarch64
Another patch needed to fix failing tests...
Signed-off-by: Ondrej Mosnacek <omosnace(a)redhat.com>
diff --git a/003-fix-test-case.patch b/003-fix-test-case.patch
new file mode 100644
index 0000000..44521b3
--- /dev/null
+++ b/003-fix-test-case.patch
@@ -0,0 +1,35 @@
+From b455bb77dcf7a38bb881898efcd5122aa61e68cc Mon Sep 17 00:00:00 2001
+From: Stephan Mueller <smueller(a)chronox.de>
+Date: Mon, 27 May 2019 13:21:03 +0200
+Subject: [PATCH] fix test case
+
+- fix possible mem leak
+
+- fix counting of available memory
+
+Signed-off-by: Stephan Mueller <smueller(a)chronox.de>
+---
+ test/kcapi-main.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/test/kcapi-main.c b/test/kcapi-main.c
+index 46cce51..bce21b7 100644
+--- a/test/kcapi-main.c
++++ b/test/kcapi-main.c
+@@ -282,6 +282,7 @@ static int fuzz_init_test(unsigned int size)
+
+ if (get_random(name, size, 0)) {
+ printf("get_random call failed\n");
++ free(name);
+ return 1;
+ }
+
+@@ -1016,7 +1017,7 @@ static int cavs_sym_stream(struct kcapi_cavs *cavs_test, uint32_t
loops,
+ }
+
+ outiov.iov_base = (uint8_t *)outiov.iov_base + ret;
+- outiov.iov_len += ret;
++ outiov.iov_len -= ret;
+ outptr += ret;
+ }
+
diff --git a/libkcapi.spec b/libkcapi.spec
index ed39ebd..35753ee 100644
--- a/libkcapi.spec
+++ b/libkcapi.spec
@@ -97,7 +97,7 @@ bin/kcapi-hasher -n fipshmac -d "$lib_path"/fipscheck
\\\
Name: libkcapi
Version: %{vmajor}.%{vminor}.%{vpatch}
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: User space interface to the Linux Kernel Crypto API
License: BSD or GPLv2
@@ -108,6 +108,7 @@ Source1:
http://www.chronox.de/%{name}/%{name}-%{version}.tar.xz.asc
Patch0: %{giturl}/commit/52620ec798a5.patch#/000-Fix-build-with-gcc-8.2.x.patch
Patch1: 001-workaround-cppcheck-bug.patch
Patch2:
%{giturl}/commit/4529c9d05836.patch#/002-Enable-testing-on-kernels-5.0.patch
+Patch3: %{giturl}/commit/b455bb77dcf7.patch#/003-fix-test-case.patch
BuildRequires: clang
BuildRequires: coreutils
@@ -449,6 +450,9 @@ popd
%changelog
+* Sat Jul 27 2019 Ondrej Mosnek <omosnace(a)redhat.com> - 1.1.4-6
+- Backport patch to fix test failure on aarch64
+
* Sat Jul 27 2019 Ondrej Mosnek <omosnace(a)redhat.com> - 1.1.4-5
- Backport patch to fix tests