2 Commits

Author SHA256 Message Date
39743e1de7 Accepting request 1252018 from benchmark
OBS-URL: https://build.opensuse.org/request/show/1252018
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wrk?expand=0&rev=7
2025-03-11 19:45:55 +00:00
8555ba6819 Accepting request 1251668 from home:bmwiedemann:branches:benchmark
Add reproducible.patch to create deterministic lua bytecode
and use system luajit to have the 'd' (deterministic) option available

OBS-URL: https://build.opensuse.org/request/show/1251668
OBS-URL: https://build.opensuse.org/package/show/benchmark/wrk?expand=0&rev=14
2025-03-11 10:40:08 +00:00
3 changed files with 21 additions and 0 deletions

13
reproducible.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: wrk-4.2.0/Makefile
===================================================================
--- wrk-4.2.0.orig/Makefile
+++ wrk-4.2.0/Makefile
@@ -61,7 +61,7 @@ $(ODIR):
$(ODIR)/bytecode.c: src/wrk.lua $(DEPS)
@echo LUAJIT $<
- @$(SHELL) -c 'PATH="obj/bin:$(PATH)" luajit -b "$(CURDIR)/$<" "$(CURDIR)/$@"'
+ @$(SHELL) -c 'luajit -bd "$(CURDIR)/$<" "$(CURDIR)/$@"'
$(ODIR)/version.o:
@echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 7 12:11:58 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to create deterministic lua bytecode
- use system luajit to have the 'd' (deterministic) option available
-------------------------------------------------------------------
Tue Jan 10 16:06:46 UTC 2023 - Andrea Manzini <andrea.manzini@suse.com>

View File

@@ -25,6 +25,8 @@ Group: Productivity/Networking/Web/Utilities
URL: https://github.com/wg/wrk
Source: https://github.com/wg/wrk/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: wrk-4.2.0_distrofixes.patch
Patch1: reproducible.patch
BuildRequires: luajit-devel
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: pkgconfig(openssl)