Fix compilation with -Werror=format-security (bug #1037231)
This commit is contained in:
parent
8a866fc34b
commit
ed386189b9
12
openmpi-format.patch
Normal file
12
openmpi-format.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up openmpi-1.7.3/ompi/mca/btl/usnic/btl_usnic_module.c.format openmpi-1.7.3/ompi/mca/btl/usnic/btl_usnic_module.c
|
||||||
|
--- openmpi-1.7.3/ompi/mca/btl/usnic/btl_usnic_module.c.format 2013-10-01 16:13:44.000000000 -0600
|
||||||
|
+++ openmpi-1.7.3/ompi/mca/btl/usnic/btl_usnic_module.c 2013-12-03 16:35:41.206022575 -0700
|
||||||
|
@@ -826,7 +826,7 @@ static void usnic_stats_callback(int fd,
|
||||||
|
}
|
||||||
|
|
||||||
|
strncat(str, tmp, sizeof(str) - strlen(str) - 1);
|
||||||
|
- opal_output(0, str);
|
||||||
|
+ opal_output(0, "%s", str);
|
||||||
|
|
||||||
|
if (mca_btl_usnic_component.stats_relative) {
|
||||||
|
usnic_stats_reset(module);
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: openmpi%{?_cc_name_suffix}
|
Name: openmpi%{?_cc_name_suffix}
|
||||||
Version: 1.7.3
|
Version: 1.7.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Open Message Passing Interface
|
Summary: Open Message Passing Interface
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: BSD, MIT and Romio
|
License: BSD, MIT and Romio
|
||||||
@ -31,6 +31,9 @@ Source1: openmpi.module.in
|
|||||||
Source2: macros.openmpi
|
Source2: macros.openmpi
|
||||||
# Patch to use system ltdl for tests
|
# Patch to use system ltdl for tests
|
||||||
Patch1: openmpi-ltdl.patch
|
Patch1: openmpi-ltdl.patch
|
||||||
|
# Patch to fix compilation with -Werror=format-security
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1037231
|
||||||
|
Patch2: openmpi-format.patch
|
||||||
|
|
||||||
BuildRequires: gcc-gfortran
|
BuildRequires: gcc-gfortran
|
||||||
#sparc 64 doesn't have valgrind
|
#sparc 64 doesn't have valgrind
|
||||||
@ -110,6 +113,7 @@ Contains development headers and libraries for openmpi
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n openmpi-%{version}
|
%setup -q -n openmpi-%{version}
|
||||||
%patch1 -p1 -b .ltdl
|
%patch1 -p1 -b .ltdl
|
||||||
|
%patch2 -p1 -b .format
|
||||||
# Make sure we don't use the local libltdl library
|
# Make sure we don't use the local libltdl library
|
||||||
rm -r opal/libltdl
|
rm -r opal/libltdl
|
||||||
|
|
||||||
@ -232,6 +236,9 @@ make check
|
|||||||
%{_sysconfdir}/rpm/macros.%{namearch}
|
%{_sysconfdir}/rpm/macros.%{namearch}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 2 2013 Orion Poplawski <orion@cora.nwra.com> 1.7.3-2
|
||||||
|
- Fix compilation with -Werror=format-security (bug #1037231)
|
||||||
|
|
||||||
* Sun Oct 20 2013 Orion Poplawski <orion@cora.nwra.com> 1.7.3-1
|
* Sun Oct 20 2013 Orion Poplawski <orion@cora.nwra.com> 1.7.3-1
|
||||||
- Update to 1.7.3
|
- Update to 1.7.3
|
||||||
- Upstream no longer ships license incompatible files
|
- Upstream no longer ships license incompatible files
|
||||||
|
Loading…
Reference in New Issue
Block a user