From cbb154012ce77f43c9f5dfd25456495de62695d7 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen Date: Thu, 20 Jul 2023 13:12:36 +0200 Subject: [PATCH] spec: only patch bundled dateutil on x86_64 --- fence-agents.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fence-agents.spec b/fence-agents.spec index 7f0c612..d8f5844 100644 --- a/fence-agents.spec +++ b/fence-agents.spec @@ -60,7 +60,7 @@ Name: fence-agents Summary: Set of unified programs capable of host isolation ("fencing") Version: 4.10.0 -Release: 49%{?alphatag:.%{alphatag}}%{?dist} +Release: 50%{?alphatag:.%{alphatag}}%{?dist} License: GPLv2+ and LGPLv2+ URL: https://github.com/ClusterLabs/fence-agents Source0: https://fedorahosted.org/releases/f/e/fence-agents/%{name}-%{version}.tar.gz @@ -430,9 +430,11 @@ sed -i -e "/^import awscli.clidriver/isys.path.insert(0, '/usr/lib/%{name}/suppo # regular patch doesnt work in build-section # Patch1000 +%ifarch x86_64 pushd support /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 < %{_sourcedir}/bz2217902-fix-bundled-dateutil-CVE-2007-4559.patch popd +%endif ./autogen.sh %{configure} --disable-libvirt-qmf-plugin PYTHONPATH="support/aliyun:support/aws:support/azure:support/google:support/common" \ @@ -1470,7 +1472,7 @@ are located on corosync cluster nodes. %endif %changelog -* Thu Jul 20 2023 Oyvind Albrigtsen - 4.10.0-49 +* Thu Jul 20 2023 Oyvind Albrigtsen - 4.10.0-50 - bundled dateutil: fix tarfile CVE-2007-4559 Resolves: rhbz#2217902 - fence_ipmilan: fix typos in metadata