diff --git a/netperf.spec b/netperf.spec index 0dc74bc6f5f889fc2efccf901c1f5d2be6ef0e78..269037558e3298f401ad31e43ce3b83c605ce65d 100644 --- a/netperf.spec +++ b/netperf.spec @@ -2,13 +2,14 @@ Name: netperf Version: 2.7.0 -Release: 6 +Release: 7 Summary: A Performance benchmark testing tool fro TCP/UDP License: MIT URL: http://github.com/HewlettPackard/netperf Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz Patch1: netperf-fix-multiple-definition.patch +Patch2: netserver-suppress-debug-log-by-default.patch BuildRequires: gcc texinfo texinfo-tex @@ -20,6 +21,7 @@ netperf is a collection of many different network performance benchmarking tool %prep %setup -q -n %{name}-%{name}-%{version} %patch1 +%patch2 %build %configure @@ -53,6 +55,9 @@ netperf is a collection of many different network performance benchmarking tool %{_mandir}/man1/* %changelog +* Thu Apr 18 2024 baiguo - 2.7.0-7 +- netserver: suppress debug log by default + * Fri Nov 11 2022 xu_ping - 2.7.0-6 - change source pac diff --git a/netserver-suppress-debug-log-by-default.patch b/netserver-suppress-debug-log-by-default.patch new file mode 100644 index 0000000000000000000000000000000000000000..bc1541493aeeaed79f03ec71c79e0da37c759f1d --- /dev/null +++ b/netserver-suppress-debug-log-by-default.patch @@ -0,0 +1,25 @@ +From ef83b1fda6a95a675f60e4d01ecbdf9d4f9d7fd2 Mon Sep 17 00:00:00 2001 +From: Marcelo Ricardo Leitner +Date: Thu, 18 Apr 2024 21:01:19 +0800 +Subject: [PATCH] netserver: suppress debug log by default + +--- + src/netserver.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git ./src/netserver.c ./src/netserver.c +index 9534722..b8b8c49 100644 +--- ./src/netserver.c ++++ ./src/netserver.c +@@ -196,7 +196,7 @@ int daemon_parent = 0; + int not_inetd; + int want_daemonize; + int spawn_on_accept; +-int suppress_debug = 0; ++int suppress_debug = 1; + + extern char *optarg; + extern int optind, opterr; +-- +2.27.0 +