Update to qatlib 23.02.0

Resolves: rhbz#2084283

Signed-off-by: Vladis Dronov <vdronov@redhat.com>
This commit is contained in:
Vladis Dronov 2023-03-07 12:26:52 +01:00
parent efe8663ee2
commit 10c74cb4d5
7 changed files with 46 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/qatlib-22.07.0.tar.gz SOURCES/qatlib-23.02.0.tar.gz
/qatlib-22.07.0.tar.gz /qatlib-23.02.0.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -3,7 +3,7 @@
%global libqat_soversion 3 %global libqat_soversion 3
%global libusdm_soversion 0 %global libusdm_soversion 0
Name: qatlib Name: qatlib
Version: 22.07.0 Version: 23.02.0
Release: 1%{?dist} Release: 1%{?dist}
Summary: Intel QuickAssist user space library Summary: Intel QuickAssist user space library
# The entire source code is released under BSD. # The entire source code is released under BSD.
@ -11,7 +11,7 @@ Summary: Intel QuickAssist user space library
License: BSD and (BSD or GPLv2) License: BSD and (BSD or GPLv2)
URL: https://github.com/intel/%{name} URL: https://github.com/intel/%{name}
Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/intel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel yasm BuildRequires: systemd gcc make autoconf automake libtool systemd-devel openssl-devel zlib-devel nasm
Requires(pre): shadow-utils Requires(pre): shadow-utils
Recommends: qatlib-service Recommends: qatlib-service
# https://bugzilla.redhat.com/show_bug.cgi?id=1897661 # https://bugzilla.redhat.com/show_bug.cgi?id=1897661
@ -55,11 +55,11 @@ This package contains a daemon that manages QAT resources for the Intel
QuickAssist Technology user space library (qatlib). QuickAssist Technology user space library (qatlib).
%prep %prep
%autosetup %autosetup -p1
%build %build
autoreconf -vif autoreconf -vif
%configure %configure --enable-legacy-algorithms
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
@ -95,6 +95,7 @@ exit 0
%files devel %files devel
%{_libdir}/libqat.so %{_libdir}/libqat.so
%{_libdir}/libusdm.so %{_libdir}/libusdm.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/qat %{_includedir}/qat
%files tests %files tests
@ -129,6 +130,9 @@ exit 0
%{_mandir}/man8/qat_init.sh.8* %{_mandir}/man8/qat_init.sh.8*
%changelog %changelog
* Fri Mar 03 2023 Vladis Dronov <vdronov@redhat.com> - 23.02.0-1
- Update to qatlib 23.02.0 (bz 2084283)
* Fri Jul 22 2022 Vladis Dronov <vdronov@redhat.com> - 22.07.0-1 * Fri Jul 22 2022 Vladis Dronov <vdronov@redhat.com> - 22.07.0-1
- Update to qatlib 22.07 (bz 2040743) - Update to qatlib 22.07 (bz 2040743)
- Moved qat.service to separate rpm - Moved qat.service to separate rpm

View File

@ -1 +1 @@
SHA512 (qatlib-22.07.0.tar.gz) = 66d7bb66070eaaa11d47637bb56dce1108ab72f66736f82af207c82bd2c552be80d24fcfb840c2cb41df57142559ab4c502fc4365f56db0c3aa994264d5105fa SHA512 (qatlib-23.02.0.tar.gz) = b97452b9fa701ca684ad96777cf3af992b01e77b7e26f14e6a0a13ba0e699630ab49affb12fdaca39b3522895122e87c17c3acd034ce44a69032331aeac8fd92

13
tests/README Normal file
View File

@ -0,0 +1,13 @@
these tests should be configured as BaseOS CI tests (not as OSCI tests), as
they require an x86_64 machine with QAT_4XXX (or later) hardware, so should
be run in Beaker.
see: https://docs.engineering.redhat.com/display/RTT/Onboarding+gating+tests
and: https://docs.engineering.redhat.com/pages/viewpage.action?pageId=53110084
and: https://docs.engineering.redhat.com/display/RTT/Creating+and+Updating+beaker+test
see https://bugzilla.redhat.com/show_bug.cgi?id=1725444#c31 for the details.
QATlib includes some sample codes that can be used to do a sanity check.
However they require a platform with QAT_4XXX. The sample codes reside now
in qatlib-tests package in CRB. You can use cpa_sample_code for a general
sanity test.

6
tests/nulltest.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# we cannot the this since there is no machine with QAT_4XXX hardware in Beaker as of now
# Intel promised us to provide OtherQA for qatlib, qatengine and QAT kernel patchsets
echo QATLIB nulltest is PASS
exit 0

10
tests/tests.yml Normal file
View File

@ -0,0 +1,10 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- nulltest:
dir: .
run: nulltest.sh