Benchmarks: Add sysbench

This commit is contained in:
Akshit Gaur 2026-02-06 17:26:04 +00:00 committed by Jeremy Soller
parent 9004c052db
commit fc325708b7
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,24 @@
[source]
git = "https://github.com/akopytov/sysbench.git"
patches = ["redox.patch"]
script = """
DYNAMIC_INIT
autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal
"""
[build]
template = "custom"
dependencies = ["luajit"]
script = """
DYNAMIC_INIT
export CFLAGS+=" -I${COOKBOOK_SYSROOT}/include/luajit-2.1"
COOKBOOK_CONFIGURE_FLAGS+=(
--without-mysql
--with-system-luajit
)
cookbook_configure
"""
[package]
dependencies = ["luajit"]

View File

@ -0,0 +1,11 @@
--- a/src/lua/internal/Makefile.am
+++ b/src/lua/internal/Makefile.am
@@ -26,7 +26,7 @@ SUFFIXES = .lua .lua.h
.lua.lua.h:
@echo "Creating $@ from $<"
- @var=$$(echo $< | sed 's/\./_/g') && \
+ @var=$$(basename $< | sed 's/\./_/g') && \
( echo "unsigned char $${var}[] =" && \
sed -e 's/\\/\\\\/g' \
-e 's/"/\\"/g' \