!9 Update to 4.2.0
From: @lyn1001 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
df4ca1e7be
@ -1,22 +0,0 @@
|
|||||||
From 4521b0de64177b030dc946adf1f6e1622bea85fc Mon Sep 17 00:00:00 2001
|
|
||||||
From: hht8 <huanghaitao12138@163.com>
|
|
||||||
Date: Mon, 28 Jun 2021 17:03:12 +0800
|
|
||||||
Subject: [PATCH] 1
|
|
||||||
|
|
||||||
---
|
|
||||||
Makefile | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index d555f0a..2a4c264 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -1,4 +1,4 @@
|
|
||||||
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
|
|
||||||
+CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT $(OPTFLAGS)
|
|
||||||
LIBS := -lpthread -lm -lssl -lcrypto
|
|
||||||
|
|
||||||
TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
|
|
||||||
--
|
|
||||||
2.23.0
|
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ index 2d0ac84..20e79ec 100644
|
|||||||
#include "ae.h"
|
#include "ae.h"
|
||||||
#include "http_parser.h"
|
#include "http_parser.h"
|
||||||
|
|
||||||
+#define VERSION "4.1.0"
|
+#define VERSION "4.2.0"
|
||||||
#define RECVBUF 8192
|
#define RECVBUF 8192
|
||||||
|
|
||||||
#define MAX_THREAD_RATE_S 10000000
|
#define MAX_THREAD_RATE_S 10000000
|
||||||
|
|||||||
BIN
wrk-4.1.0.tar.gz
BIN
wrk-4.1.0.tar.gz
Binary file not shown.
BIN
wrk-4.2.0.tar.gz
Normal file
BIN
wrk-4.2.0.tar.gz
Normal file
Binary file not shown.
19
wrk-4.2.0_distrofixes.patch
Normal file
19
wrk-4.2.0_distrofixes.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
diff --color -ur wrk-4.2.0.orig/Makefile wrk-4.2.0/Makefile
|
||||||
|
--- wrk-4.2.0.orig/Makefile 2021-02-07 08:13:05.000000000 +0100
|
||||||
|
+++ wrk-4.2.0/Makefile 2023-01-10 17:01:58.610896091 +0100
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
|
||||||
|
+CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT $(OPTFLAGS)
|
||||||
|
LIBS := -lm -lssl -lcrypto -lpthread
|
||||||
|
|
||||||
|
TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
|
||||||
|
@@ -67,8 +67,7 @@
|
||||||
|
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -
|
||||||
|
|
||||||
|
$(ODIR)/%.o : %.c
|
||||||
|
- @echo CC $<
|
||||||
|
- @$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
|
||||||
9
wrk.spec
9
wrk.spec
@ -1,11 +1,11 @@
|
|||||||
Name: wrk
|
Name: wrk
|
||||||
Version: 4.1.0
|
Version: 4.2.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Modern HTTP benchmarking tool
|
Summary: Modern HTTP benchmarking tool
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/wg/wrk
|
URL: https://github.com/wg/wrk
|
||||||
Source0: https://github.com/wg/wrk/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/wg/wrk/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Patch0: Make-the-debug-package-compile.patch
|
Patch0: wrk-4.2.0_distrofixes.patch
|
||||||
Patch1: fix-wrk-version-or-v-error.patch
|
Patch1: fix-wrk-version-or-v-error.patch
|
||||||
BuildRequires: pkgconf openssl-devel
|
BuildRequires: pkgconf openssl-devel
|
||||||
%description
|
%description
|
||||||
@ -31,6 +31,9 @@ install -D -m 0755 wrk %{buildroot}%{_bindir}/wrk
|
|||||||
%{_bindir}/wrk
|
%{_bindir}/wrk
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 25 2023 liyanan <liyanan61@h-parners.com> - 4.2.0-1
|
||||||
|
- Update to 4.2.0
|
||||||
|
|
||||||
* Thu Oct 14 2021 wangyue <wangyue92@huawei.com> - 4.1.0-2
|
* Thu Oct 14 2021 wangyue <wangyue92@huawei.com> - 4.1.0-2
|
||||||
- fix wrk --version/-v error
|
- fix wrk --version/-v error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user