import qatzip-1.0.9-1.el9
This commit is contained in:
parent
538c81cd33
commit
17ec35f630
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/qatzip-1.0.7.tar.gz
|
SOURCES/qatzip-1.0.9.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
68952cc3974023fcbfba40e81aa1648b44c0e086 SOURCES/qatzip-1.0.7.tar.gz
|
50c6dfb8f3eb44bd098588ffcbbe84911346bbc0 SOURCES/qatzip-1.0.9.tar.gz
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
--- utils/qzip.c.orig
|
|
||||||
+++ utils/qzip.c
|
|
||||||
@@ -469,9 +469,8 @@ int makeOutName(const char *in_name, const char *out_name,
|
|
||||||
* parent directory. */
|
|
||||||
void mkPath(char *path, const char *dirpath, char *file)
|
|
||||||
{
|
|
||||||
- if (strlen(dirpath) + strlen(file) + 1 < MAX_PATH_LEN) {
|
|
||||||
- snprintf(path, MAX_PATH_LEN, "%s/%s", dirpath, file);
|
|
||||||
- } else {
|
|
||||||
+ if (snprintf(path, MAX_PATH_LEN, "%s/%s", dirpath, file) >= MAX_PATH_LEN) {
|
|
||||||
+ /* truncation occurred */
|
|
||||||
assert(0);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
--- configure.orig 2022-02-08 17:54:38.857757054 +0100
|
|
||||||
+++ configure 2022-02-08 18:09:34.392172703 +0100
|
|
||||||
@@ -142,15 +142,15 @@ includedir=${includedir:-$prefix/include
|
|
||||||
mandir=${mandir:-$prefix/share/man}
|
|
||||||
|
|
||||||
# define CFLAGS and LDFLAGS if no environment variables defined
|
|
||||||
-if test -z ${CFLAGS}; then
|
|
||||||
- CFLAGS='-Wall -Werror -std=gnu99 -pedantic -fstack-protector -fPIE -fPIC -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv'
|
|
||||||
+if test -z "${CFLAGS}"; then
|
|
||||||
+ CFLAGS="-Wall -Werror -std=gnu99 -pedantic -fstack-protector-strong -fPIE -fPIC -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv"
|
|
||||||
else
|
|
||||||
- CFLAGS+=" -Wall -Werror -std=gnu99 -pedantic -fstack-protector -fPIE -fPIC"
|
|
||||||
+ CFLAGS+=" -Wall -Werror -std=gnu99 -pedantic -fstack-protector-strong -fPIE -fPIC"
|
|
||||||
fi
|
|
||||||
-if test -z ${LDFLAGS}; then
|
|
||||||
- LDFLAGS='-fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack'
|
|
||||||
+if test -z "${LDFLAGS}"; then
|
|
||||||
+ LDFLAGS="-fstack-protector-strong -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
|
|
||||||
else
|
|
||||||
- LDFLAGS+=" -fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
|
|
||||||
+ LDFLAGS+=" -fstack-protector-strong -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# try to build 32 or 64 bit system binary
|
|
@ -1,26 +1,24 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
%global githubname QATzip
|
%global githubname QATzip
|
||||||
%global libqatzip_soversion 1
|
%global libqatzip_soversion 3
|
||||||
|
|
||||||
Name: qatzip
|
Name: qatzip
|
||||||
Version: 1.0.7
|
Version: 1.0.9
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Intel QuickAssist Technology (QAT) QATzip Library
|
Summary: Intel QuickAssist Technology (QAT) QATzip Library
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://github.com/intel/%{githubname}
|
URL: https://github.com/intel/%{githubname}
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc >= 4.8.5
|
BuildRequires: gcc >= 4.8.5
|
||||||
BuildRequires: zlib-devel >= 1.2.7
|
BuildRequires: zlib-devel >= 1.2.7
|
||||||
BuildRequires: qatlib-devel >= 21.08.0
|
BuildRequires: qatlib-devel >= 22.07.0
|
||||||
|
BuildRequires: autoconf automake libtool make lz4-devel
|
||||||
# The purpose of the package is to support hardware that only exists on x86_64 platforms
|
# The purpose of the package is to support hardware that only exists on x86_64 platforms
|
||||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1987280
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1987280
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64
|
||||||
|
|
||||||
Patch0: 1-fix-snprintf-truncation.patch
|
|
||||||
Patch1: 2-add-strong-stack-prot.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
QATzip is a user space library which builds on top of the Intel
|
QATzip is a user space library which builds on top of the Intel
|
||||||
QuickAssist Technology user space library, to provide extended
|
QuickAssist Technology user space library, to provide extended
|
||||||
@ -53,9 +51,10 @@ applications that use the QATzip APIs.
|
|||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
|
|
||||||
|
autoreconf -vif
|
||||||
./configure \
|
./configure \
|
||||||
--bindir=%{_bindir} \
|
--bindir=%{_bindir} \
|
||||||
--sharedlib-dir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--includedir=%{_includedir} \
|
--includedir=%{_includedir} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@ -65,6 +64,8 @@ applications that use the QATzip APIs.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
rm %{buildroot}/%{_libdir}/libqatzip.a
|
||||||
|
rm %{buildroot}/%{_libdir}/libqatzip.la
|
||||||
rm -vf %{buildroot}%{_mandir}/*.pdf
|
rm -vf %{buildroot}%{_mandir}/*.pdf
|
||||||
|
|
||||||
# Check section is not available for these functional and performance tests require special hardware.
|
# Check section is not available for these functional and performance tests require special hardware.
|
||||||
@ -76,8 +77,7 @@ rm -vf %{buildroot}%{_mandir}/*.pdf
|
|||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%license LICENSE*
|
%license LICENSE*
|
||||||
%{_libdir}/libqatzip.so.%{libqatzip_soversion}
|
%{_libdir}/libqatzip.so.%{libqatzip_soversion}*
|
||||||
%{_libdir}/libqatzip.so.%{version}
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc docs/QATzip-man.pdf
|
%doc docs/QATzip-man.pdf
|
||||||
@ -85,6 +85,10 @@ rm -vf %{buildroot}%{_mandir}/*.pdf
|
|||||||
%{_libdir}/libqatzip.so
|
%{_libdir}/libqatzip.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 08 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.9-1
|
||||||
|
- Rebuild for qatzip v1.0.9 (bz 2047744)
|
||||||
|
- Update to require qatlib-devel >= 22.07.0 due to soversion bump
|
||||||
|
|
||||||
* Wed Feb 09 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.7-1
|
* Wed Feb 09 2022 Vladis Dronov <vdronov@redhat.com> - 1.0.7-1
|
||||||
- Rebuild for qatzip v1.0.7
|
- Rebuild for qatzip v1.0.7
|
||||||
- Fix snprintf truncation check (bz 2046925)
|
- Fix snprintf truncation check (bz 2046925)
|
||||||
|
Loading…
Reference in New Issue
Block a user