From dca4a9f713699d935c33d3ab66fbe9a68acbb356 Mon Sep 17 00:00:00 2001 From: "yunqi.zwt" Date: Wed, 4 Aug 2021 18:25:13 +0800 Subject: [PATCH] [fix] Require libarchive >= 3.3.3 to fix crash by libarchive incompatible abi execute cmake throwing error: undefined symbol archive_write_add_filter_zstd which is caused by libarchive incompatible abi under different version refer urls: - https://access.redhat.com/solutions/6068431 - https://bugzilla.redhat.com/show_bug.cgi?id=1827927 Signed-off-by: yunqi.zwt Signed-off-by: weitao zhou --- cmake.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cmake.spec b/cmake.spec index af1ecd3..862cfb6 100755 --- a/cmake.spec +++ b/cmake.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # Do we add appdata-files? # consider conditional on whether %%_metainfodir is defined or not instead -- rex %if 0%{?fedora} || 0%{?rhel} > 7 @@ -73,7 +74,7 @@ Name: %{orig_name}%{?name_suffix} Version: %{major_version}.%{minor_version}.2 -Release: %{baserelease}%{?relsuf}%{?dist} +Release: %{baserelease}%{?relsuf}%{anolis_release}%{?dist} Summary: Cross-platform make system # most sources are BSD @@ -189,6 +190,11 @@ BuildRequires: %{name}-rpm-macros %endif BuildRequires: make +# FIX bug: https://bugzilla.redhat.com/show_bug.cgi?id=1827927 +# more info: https://access.redhat.com/solutions/6068431 +%if %{without bundled_libarchive} +Requires: libarchive >= 3.3.3 +%endif Requires: %{name}-data = %{version}-%{release} Requires: %{name}-rpm-macros = %{version}-%{release} Requires: %{name}-filesystem%{?_isa} = %{version}-%{release} @@ -529,6 +535,9 @@ popd %changelog +* Wed Jan 12 2022 Weitao Zhou - 3.20.2-4.0.1 +- Require libarchive >= 3.3.3 to fix crash by libarchive incompatible abi + * Fri Jul 09 2021 sguelton@redhat.com - 3.20.2-4 - Fix update (rhbz#1964407) -- Gitee