!11 [sync] PR-10: add riscv luajit patch support
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
a6cbe9959d
12
luajit-riscv-makefile.patch
Normal file
12
luajit-riscv-makefile.patch
Normal 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
34768
luajit-riscv.patch
Normal file
File diff suppressed because it is too large
Load Diff
14
wrk.spec
14
wrk.spec
@ -1,13 +1,18 @@
|
|||||||
Name: wrk
|
Name: wrk
|
||||||
Version: 4.2.0
|
Version: 4.2.0
|
||||||
Release: 1
|
Release: 2
|
||||||
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: wrk-4.2.0_distrofixes.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
|
Patch2: luajit-riscv-makefile.patch
|
||||||
|
|
||||||
|
BuildRequires: pkgconf openssl-devel unzip
|
||||||
|
|
||||||
|
Source24300: luajit-riscv.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
wrk is a modern HTTP benchmarking tool capable of generating significant
|
wrk is a modern HTTP benchmarking tool capable of generating significant
|
||||||
load when run on a single multi-core CPU. It combines a multithreaded
|
load when run on a single multi-core CPU. It combines a multithreaded
|
||||||
@ -20,6 +25,8 @@ scripts.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
make obj/LuaJIT-2.1
|
||||||
|
patch -p1 -E < %{S:24300}
|
||||||
%make_build OPTFLAGS="%{optflags}" WITH_OPENSSL=%{_prefix}
|
%make_build OPTFLAGS="%{optflags}" WITH_OPENSSL=%{_prefix}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -31,6 +38,9 @@ install -D -m 0755 wrk %{buildroot}%{_bindir}/wrk
|
|||||||
%{_bindir}/wrk
|
%{_bindir}/wrk
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Oct 25 2023 liyanan <liyanan61@h-parners.com> - 4.2.0-1
|
||||||
- Update to 4.2.0
|
- Update to 4.2.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user