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
This commit is contained in:
parent
f9680e5821
commit
fd2028db3f
@ -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 <jsafrane@redhat.com> - 1:5.7.3-6
|
||||
- Recompile with -Wformat (#1242766)
|
||||
|
||||
* Fri Jun 26 2015 Jan Safranek <jsafrane@redhat.com> - 1:5.7.3-5
|
||||
- Fixed snmpstatus crashing when receiving invalid response (#1233738)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user