riscv: add luajit riscv support patch

*add luajit riscv support patch

Signed-off-by: luojun <luojun.oerv@isrc.iscas.ac.cn>
(cherry picked from commit 7afffb8e912cf8d58cdd28a88bc47b457a5c5bc6)
This commit is contained in:
Jer6y 2024-04-02 15:06:43 +08:00 committed by openeuler-sync-bot
parent df4ca1e7be
commit 0ea5821854
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