From 866e836cd1e0805e888e7f89854b0b5c35d06fc8 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 db27790..30b1ec4 100644 --- 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 @@ -74,7 +75,7 @@ Name: %{orig_name}%{?name_suffix} Version: %{major_version}.%{minor_version}.%{patch_version} -Release: %{baserelease}%{?relsuf}%{?dist} +Release: %{baserelease}%{?relsuf}%{anolis_release}%{?dist} Summary: Cross-platform make system # most sources are BSD @@ -172,6 +173,11 @@ BuildRequires: desktop-file-utils BuildRequires: %{name}-rpm-macros %endif +# 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} @@ -512,6 +518,9 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %changelog +* Thu Nov 18 2021 Weitao Zhou - 3.18.2-11.0.1 +- Require libarchive >= 3.3.3 to fix crash by libarchive incompatible abi + * Thu Jun 03 2021 sguelton@redhat.com - 3.18.2-11 - Minimal libarchive req (#1965373) -- Gitee