From: Arkadiusz Miƛkiewicz Date: Sat, 16 Feb 2013 21:53:58 +0000 (+0100) Subject: - build fixed X-Git-Tag: auto/th/iperf3-3.0.3-1~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=8553f232681c6dd0663bcc08bfd0c9aeb4551feb;p=packages%2Fiperf3.git - build fixed --- diff --git a/iperf3-Werror.patch b/iperf3-Werror.patch new file mode 100644 index 0000000..dbec207 --- /dev/null +++ b/iperf3-Werror.patch @@ -0,0 +1,48 @@ +--- iperf-3.0b4/src/iperf_api.c~ 2010-08-03 01:15:27.000000000 +0200 ++++ iperf-3.0b4/src/iperf_api.c 2013-02-16 22:53:05.882124239 +0100 +@@ -48,15 +48,15 @@ + void + usage() + { +- fprintf(stderr, usage_short); ++ fprintf(stderr, "%s", usage_short); + } + + + void + usage_long() + { +- fprintf(stderr, usage_long1); +- fprintf(stderr, usage_long2); ++ fprintf(stderr, "%s", usage_long1); ++ fprintf(stderr, "%s", usage_long2); + } + + +@@ -347,7 +347,7 @@ + test->reverse = 1; + break; + case 'v': +- printf(version); ++ printf("%s", version); + exit(0); + case 'h': + default: +@@ -1163,7 +1163,7 @@ + case DISPLAY_RESULTS: + /* print final summary for all intervals */ + +- printf(report_bw_header); ++ printf("%s", report_bw_header); + + start_time = 0.; + sp = SLIST_FIRST(&test->streams); +@@ -1256,7 +1256,7 @@ + return; + } + if (sp == SLIST_FIRST(&test->streams)) { +- printf(report_bw_header); ++ printf("%s", report_bw_header); + } + + unit_snprintf(ubuf, UNIT_LEN, (double) (ir->bytes_transferred), 'A'); diff --git a/iperf3.spec b/iperf3.spec index a846097..68807ae 100644 --- a/iperf3.spec +++ b/iperf3.spec @@ -11,6 +11,7 @@ License: BSD-like Group: Networking/Utilities Source0: http://iperf.googlecode.com/files/iperf-%{version}b4.tar.gz # Source0-md5: fde024a200b064b54accd1959f7e642e +Patch0: %{name}-Werror.patch URL: http://code.google.com/p/iperf/ BuildRequires: libstdc++-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -28,6 +29,7 @@ with iperf2. %prep %setup -q -n %{orgname}-%{version}%{beta} +%patch0 -p1 %build %configure