summaryrefslogtreecommitdiff
path: root/app-benchmarks/wrk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-02 14:09:07 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-02 14:09:07 +0100
commitb17a3ef12038de50228bade1f05502c74e135321 (patch)
tree9026dffec53f92cba48ca9a500a4f778e6304380 /app-benchmarks/wrk
parent3cf7c3ef441822c889356fd1812ebf2944a59851 (diff)
gentoo resync : 02.09.2020
Diffstat (limited to 'app-benchmarks/wrk')
-rw-r--r--app-benchmarks/wrk/Manifest4
-rw-r--r--app-benchmarks/wrk/files/wrk-4.1.0-r1-makefile.patch37
-rw-r--r--app-benchmarks/wrk/files/wrk-4.1.0-r2-makefile.patch63
-rw-r--r--app-benchmarks/wrk/wrk-4.1.0-r2.ebuild11
4 files changed, 68 insertions, 47 deletions
diff --git a/app-benchmarks/wrk/Manifest b/app-benchmarks/wrk/Manifest
index 73029fa4f805..4cf772213c67 100644
--- a/app-benchmarks/wrk/Manifest
+++ b/app-benchmarks/wrk/Manifest
@@ -1,4 +1,4 @@
-AUX wrk-4.1.0-r1-makefile.patch 963 BLAKE2B de7fea198e9e9366f763d2c0d25d1ff5ee2d91791eb7404ac19ceb75dd7f80f0ded3b3c97708c0b23105a42bd47f4750f1337ab8046a095e57ef0ec67d7bf9a6 SHA512 3dbdc1cc3bd74131ac91a211bf6e46754feac5f73b93d64f04f53e7e3acf285f349a8d21a6744b443aa9533d619073729187fe26a97faa03bafa6d99543c5dab
+AUX wrk-4.1.0-r2-makefile.patch 1503 BLAKE2B b6af00447a19a1fba571e662a4e9abac812909c2fb309b298d922f1ad7d63a78c626f57f125371dabc65e27758f938f1b3c6a69d56a801dca5296a99a0fd9e1c SHA512 195301271570e539d5ee009315fcda1c1280fc6ca0de0eb89a66bb39bacfae721e7d7d03ab212f01ad0ac331502732350a67da52217ae24cb87a85d12dbb8650
DIST wrk-4.1.0.tar.gz 6478125 BLAKE2B d64c172819a32b874e5351ef1088a66af7eb76ae34421577f817f14797a5711665adb8074e90a80e511139a889d4c960dc91caa5855bbd67038229307ef93ed2 SHA512 2c8d05f8e40c3a6234bc1c2862157764532a39046860210fe512c260c2b940e1e3120b831d0721c936c7bca474574600cda1f4c949b53738199d98102e32cb1a
-EBUILD wrk-4.1.0-r2.ebuild 915 BLAKE2B f9ca7c5a90d171154de70c1c8899a3548ea763604527741ee35af53c87a29c8cc626e84df84d7a912681b865df695dfe8deb0e8ad9972ad19c9653f4c507c4a6 SHA512 2e112f88ec54cf24de6a07d4dbc3a544f45d350b1fa35fd6f917952dd34630f49619269f34601e84a3b51d3929a41419089ba112d797ca9b113e76cf0168aba7
+EBUILD wrk-4.1.0-r2.ebuild 911 BLAKE2B 5487c95c9c6b4764214a9919c95e10c29312223a44328c375836675e3f0049ba4a09d4c4401523d2160a381326fa6cf5e268bebe0336dd1a770a9e07cdcca7cf SHA512 0c9e01a168a4c29b2a25618256fe0a1e55516dfa3ffc5015809c954bb2e3a260896e31e92e014bcf2909476ddcadd9bd74e0770cf4e23361e62efcac7d3eb778
MISC metadata.xml 753 BLAKE2B 394af58d15030f33d953c4afae440cad777ba3e5fb4f95ec4a06cc6124929365bbcb2117734e7bb6e3d45cf9a42acee152a556f280fcf04244c0d8103e8f161f SHA512 5e262656536bd745faca708024430a5fc321dfea12ab61fdf74bae90df9b1d8237737db5a09afffdbfa278e29a9eb250292c2023263e4540f3fdd4cfe4984ade
diff --git a/app-benchmarks/wrk/files/wrk-4.1.0-r1-makefile.patch b/app-benchmarks/wrk/files/wrk-4.1.0-r1-makefile.patch
deleted file mode 100644
index 6e7dd317b8fb..000000000000
--- a/app-benchmarks/wrk/files/wrk-4.1.0-r1-makefile.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- a/Makefile 2018-01-21 07:00:58.000000000 +0100
-+++ b/Makefile 2018-11-09 11:58:57.000000000 +0100
-@@ -1,4 +1,4 @@
--CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
-+CFLAGS += -std=c99 -Wall -D_REENTRANT
- LIBS := -lpthread -lm -lssl -lcrypto
-
- TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
-@@ -24,7 +24,7 @@
-
- ODIR := obj
- OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o $(ODIR)/version.o
--LIBS := -lluajit-5.1 $(LIBS)
-+LIBS := $(shell pkg-config luajit --libs) $(LIBS)
-
- DEPS :=
- CFLAGS += -I$(ODIR)/include
-@@ -51,8 +51,7 @@
- $(RM) -rf $(BIN) obj/*
-
- $(BIN): $(OBJ)
-- @echo LINK $(BIN)
-- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
-+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
-
- $(OBJ): config.h Makefile $(DEPS) | $(ODIR)
-
-@@ -67,8 +66,7 @@
- @echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -
-
- $(ODIR)/%.o : %.c
-- @echo CC $<
-- @$(CC) $(CFLAGS) -c -o $@ $<
-+ $(CC) $(CFLAGS) -c -o $@ $<
-
- # Dependencies
-
diff --git a/app-benchmarks/wrk/files/wrk-4.1.0-r2-makefile.patch b/app-benchmarks/wrk/files/wrk-4.1.0-r2-makefile.patch
new file mode 100644
index 000000000000..85de3eaf3c3e
--- /dev/null
+++ b/app-benchmarks/wrk/files/wrk-4.1.0-r2-makefile.patch
@@ -0,0 +1,63 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+-CFLAGS += -std=c99 -Wall -O2 -D_REENTRANT
+-LIBS := -lpthread -lm -lssl -lcrypto
++CFLAGS += -std=c99 -Wall -D_REENTRANT
++LIBS := -lm -lssl -lcrypto -lpthread
+
+ TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
+
+@@ -24,15 +24,13 @@
+
+ ODIR := obj
+ OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o $(ODIR)/version.o
+-LIBS := -lluajit-5.1 $(LIBS)
++LIBS := $(shell pkg-config luajit --libs) $(LIBS)
+
+ DEPS :=
+ CFLAGS += -I$(ODIR)/include
+-LDFLAGS += -L$(ODIR)/lib
+
+ ifneq ($(WITH_LUAJIT),)
+ CFLAGS += -I$(WITH_LUAJIT)/include
+- LDFLAGS += -L$(WITH_LUAJIT)/lib
+ else
+ CFLAGS += -I$(ODIR)/include/luajit-2.1
+ DEPS += $(ODIR)/lib/libluajit-5.1.a
+@@ -40,7 +38,6 @@
+
+ ifneq ($(WITH_OPENSSL),)
+ CFLAGS += -I$(WITH_OPENSSL)/include
+- LDFLAGS += -L$(WITH_OPENSSL)/lib
+ else
+ DEPS += $(ODIR)/lib/libssl.a
+ endif
+@@ -51,15 +48,14 @@
+ $(RM) -rf $(BIN) obj/*
+
+ $(BIN): $(OBJ)
+- @echo LINK $(BIN)
+- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ $(OBJ): config.h Makefile $(DEPS) | $(ODIR)
+
+ $(ODIR):
+ @mkdir -p $@
+
+-$(ODIR)/bytecode.o: src/wrk.lua
++$(ODIR)/bytecode.c: src/wrk.lua
+ @echo LUAJIT $<
+ @$(SHELL) -c 'PATH=obj/bin:$(PATH) luajit -b $(CURDIR)/$< $(CURDIR)/$@'
+
+@@ -67,8 +63,7 @@
+ @echo 'const char *VERSION="$(VER)";' | $(CC) -xc -c -o $@ -
+
+ $(ODIR)/%.o : %.c
+- @echo CC $<
+- @$(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CFLAGS) -c -o $@ $<
+
+ # Dependencies
+
diff --git a/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild
index 23ba20045cbb..34bc8be4849a 100644
--- a/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild
+++ b/app-benchmarks/wrk/wrk-4.1.0-r2.ebuild
@@ -32,14 +32,9 @@ BDEPEND="
virtual/pkgconfig
"
-DOCS=(
- "CHANGES"
- "NOTICE"
- "README.md"
- "SCRIPTING"
-)
-
-PATCHES=( "${FILESDIR}/${P}-r1-makefile.patch" )
+DOCS=( "CHANGES" "NOTICE" "README.md" "SCRIPTING" )
+
+PATCHES=( "${FILESDIR}/${P}-r2-makefile.patch" )
src_compile() {
myemakeargs=(