From fd2028db3f5e32152c4c339d1a0fa8fba93ed59b Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Tue, 14 Jul 2015 14:18:10 +0200 Subject: [PATCH] Recompile with -Wformat perl/*/Makefile.PL removes -Wall from CFLAGS. gcc then complains 'error: -Wformat-security ignored without -Wformat'. This patch adds extra -Wformat to CFLAGS, making gcc happy. Resolves: #1242766 --- net-snmp.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net-snmp.spec b/net-snmp.spec index c6d3fb9..7f3bd9d 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -11,7 +11,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7.3 -Release: 5%{?dist} +Release: 6%{?dist} Epoch: 1 License: BSD @@ -236,7 +236,7 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib" %configure \ --disable-static --enable-shared \ - --with-cflags="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT" \ + --with-cflags="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT -Wformat" \ --with-ldflags="-Wl,-z,relro -Wl,-z,now" \ --with-sys-location="Unknown" \ --with-logfile="/var/log/snmpd.log" \ @@ -517,6 +517,9 @@ rm -rf ${RPM_BUILD_ROOT} %endif %changelog +* Tue Jul 14 2015 Jan Safranek - 1:5.7.3-6 +- Recompile with -Wformat (#1242766) + * Fri Jun 26 2015 Jan Safranek - 1:5.7.3-5 - Fixed snmpstatus crashing when receiving invalid response (#1233738)