diff --git a/fix-compilation-open-argument.patch b/fix-compilation-open-argument.patch new file mode 100644 index 0000000..943a513 --- /dev/null +++ b/fix-compilation-open-argument.patch @@ -0,0 +1,11 @@ +--- iperf-3.0.3/src/iperf_api.c 2014-03-26 23:36:38.000000000 +0530 ++++ iperf-3.0.3.patch/src/iperf_api.c 2014-06-09 23:31:46.183346802 +0530 +@@ -2215,7 +2215,7 @@ iperf_new_stream(struct iperf_test *test + sp->rcv = test->protocol->recv; + + if (test->diskfile_name != (char*) 0) { +- sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC)); ++ sp->diskfile_fd = open(test->diskfile_name, test->sender ? O_RDONLY : (O_WRONLY|O_CREAT|O_TRUNC), S_IRUSR|S_IWUSR); + if (sp->diskfile_fd == -1) { + i_errno = IEFILE; + munmap(sp->buffer, sp->test->settings->blksize); diff --git a/iperf3.spec b/iperf3.spec index 20a1794..907bff5 100644 --- a/iperf3.spec +++ b/iperf3.spec @@ -1,12 +1,13 @@ Name: iperf3 Version: 3.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Measurement tool for TCP/UDP bandwidth performance Group: Applications/Internet License: BSD URL: http://github.com/esnet/iperf Source0: http://stats.es.net/software/iperf-%{version}.tar.gz +Patch0: fix-compilation-open-argument.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: libuuid-devel @@ -26,6 +27,7 @@ developing applications that use %{name}. %prep %setup -q -n iperf-%{version} +%patch0 -p1 %build %configure --disable-static @@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Tue Jun 10 2014 Susant Sahani - 3.0.3-5 +- fix compilation BZ #1106803 + * Sat Jun 07 2014 Fedora Release Engineering - 3.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild