From 88a6c850e0a4f8a80af6e4cdea4eecc3ab6e21bd Mon Sep 17 00:00:00 2001 From: xingwei Date: Wed, 24 May 2023 03:09:31 +0000 Subject: [PATCH] remove pcre dependency (cherry picked from commit 7c23d1a35b56feab7c2cc4caf1a4cae6b7f1e857) --- net-snmp.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/net-snmp.spec b/net-snmp.spec index 4db1a15..a21eee9 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -3,7 +3,7 @@ Name: net-snmp Version: 5.9.1 -Release: 5 +Release: 6 Epoch: 1 Summary: SNMP Daemon License: BSD @@ -58,7 +58,7 @@ Patch41: backport-CVE-2022-44792_CVE-2022-44793.patch %{?systemd_requires} BuildRequires: systemd gcc openssl-devel bzip2-devel elfutils-devel libselinux-devel -BuildRequires: elfutils-libelf-devel rpm-devel perl-devel perl(ExtUtils::Embed) procps pcre-devel +BuildRequires: elfutils-libelf-devel rpm-devel perl-devel perl(ExtUtils::Embed) procps BuildRequires: python3-devel python3-setuptools chrpath mariadb-connector-c-devel net-tools BuildRequires: perl(TAP::Harness) lm_sensors-devel autoconf automake Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) @@ -144,7 +144,7 @@ MIBS="host agentx smux \ ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \ sctp-mib rmon-mib etherlike-mib" MIBS="$MIBS ucd-snmp/lmsensorsMib" -%configure --enable-shared --enable-as-needed --enable-embedded-perl \ +%configure --with-pcre=no --enable-shared --enable-as-needed --enable-embedded-perl \ --enable-ipv6 --enable-local-smux --enable-mfd-rewrites \ --enable-ucd-snmp-compatibility --sysconfdir=%{_sysconfdir} \ --with-cflags="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT" \ @@ -334,6 +334,12 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test %{_mandir}/man1/fixproc* %changelog +* Wed May 24 2023 xingwei - 1:5.9.1-6 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:remove pcre dependency + * Fri Dec 30 2022 gaihuiying - 1:5.9.1-5 - Type:CVE - CVE:CVE-2022-44792 CVE-2022-44793 -- Gitee