!12 [sync] PR-10: add riscv luajit patch support

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-04-05 08:23:12 +00:00 committed by Gitee
commit a604f0f6f2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 34792 additions and 2 deletions

View File

@ -0,0 +1,12 @@
Index: wrk-4.2.0/Makefile
===================================================================
--- wrk-4.2.0.orig/Makefile
+++ wrk-4.2.0/Makefile
@@ -87,7 +87,6 @@ $(ODIR)/$(OPENSSL): deps/$(OPENSSL).tar.
$(ODIR)/lib/libluajit-5.1.a: $(ODIR)/$(LUAJIT)
@echo Building LuaJIT...
@$(MAKE) -C $< PREFIX=$(abspath $(ODIR)) BUILDMODE=static install
- @cd $(ODIR)/bin && ln -s luajit-2.1.0-beta3 luajit
$(ODIR)/lib/libssl.a: $(ODIR)/$(OPENSSL)
@echo Building OpenSSL...

34768
luajit-riscv.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,18 @@
Name: wrk
Version: 4.2.0
Release: 1
Release: 2
Summary: Modern HTTP benchmarking tool
License: Apache-2.0
URL: https://github.com/wg/wrk
Source0: https://github.com/wg/wrk/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: wrk-4.2.0_distrofixes.patch
Patch1: fix-wrk-version-or-v-error.patch
BuildRequires: pkgconf openssl-devel
Patch2: luajit-riscv-makefile.patch
BuildRequires: pkgconf openssl-devel unzip
Source24300: luajit-riscv.patch
%description
wrk is a modern HTTP benchmarking tool capable of generating significant
load when run on a single multi-core CPU. It combines a multithreaded
@ -20,6 +25,8 @@ scripts.
%autosetup -p1
%build
make obj/LuaJIT-2.1
patch -p1 -E < %{S:24300}
%make_build OPTFLAGS="%{optflags}" WITH_OPENSSL=%{_prefix}
%install
@ -31,6 +38,9 @@ install -D -m 0755 wrk %{buildroot}%{_bindir}/wrk
%{_bindir}/wrk
%changelog
* Mon Mar 25 2024 luojun <luojun.oerv@isrc.iscas.ac.cn> - 4.2.0-2
- add riscv luajit support patch
* Wed Oct 25 2023 liyanan <liyanan61@h-parners.com> - 4.2.0-1
- Update to 4.2.0