summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2019-12-14 00:56:07 +0100
committerConrad Kostecki <conikost@gentoo.org>2019-12-14 00:59:54 +0100
commit68fe4382f23d4f5937721b06ca47179cb4989880 (patch)
treefe8b4a9d85b422655eec2b48b6707cdca2ae7153 /app-benchmarks
parentsys-fs/zfs-kmod: revbump 0.8.2, fix O_TMPFILE umask ignore (diff)
downloadgentoo-68fe4382f23d4f5937721b06ca47179cb4989880.tar.gz
gentoo-68fe4382f23d4f5937721b06ca47179cb4989880.tar.bz2
gentoo-68fe4382f23d4f5937721b06ca47179cb4989880.zip
app-benchmarks/stress-ng: bump to version 0.10.13
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/stress-ng/Manifest1
-rw-r--r--app-benchmarks/stress-ng/files/stress-ng-0.10.13-makefile.patch61
-rw-r--r--app-benchmarks/stress-ng/stress-ng-0.10.13.ebuild38
3 files changed, 100 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest
index 592135dc5085..9015dc1f9eb6 100644
--- a/app-benchmarks/stress-ng/Manifest
+++ b/app-benchmarks/stress-ng/Manifest
@@ -1 +1,2 @@
DIST stress-ng-0.10.12.tar.xz 408952 BLAKE2B f0894073c651f0defe35af0e916db4d60c211ea0b485cb574bf79ceaaa2794eada28dcf8e8cbee3747a6991d61ec829b0a3e5049e5cad540fc95e63ba33a38cc SHA512 d8b169adcea823113165ba3beabddd72cbd9e6780d39a52e459508ca088c50a5102eeca344e16f4e40d72d77f8135e3c5b973b07d55246ccb2a252806217e529
+DIST stress-ng-0.10.13.tar.xz 409940 BLAKE2B fffeaedd999a0887955674f3883f65124eb13814cf284ab1bd7c7dec34380cd381026d9217c9f949a7c0c2227c8b9558409153d0feff01473a6c9f49730f89b4 SHA512 97e8a7ce5dc5e428c26b0d4eeb1350c43c1043aa7dbf591112768c33e208bafe9df7fe737c9a912f0b4296d64e4b27b81131b459c356aca95bc8856e8b939639
diff --git a/app-benchmarks/stress-ng/files/stress-ng-0.10.13-makefile.patch b/app-benchmarks/stress-ng/files/stress-ng-0.10.13-makefile.patch
new file mode 100644
index 000000000000..b6a8554cdde2
--- /dev/null
+++ b/app-benchmarks/stress-ng/files/stress-ng-0.10.13-makefile.patch
@@ -0,0 +1,61 @@
+--- stress-ng-0.10.13.orig/Makefile 2019-12-09 13:42:13.000000000 +0100
++++ stress-ng-0.10.13/Makefile 2019-12-14 00:51:33.390034647 +0100
+@@ -21,7 +21,7 @@
+ # Codename "systematic system smasher"
+ #
+
+-CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99
++CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -std=gnu99
+
+ #
+ # Pedantic flags
+@@ -359,12 +359,10 @@
+ .o: stress-ng.h Makefile
+
+ .c.o: stress-ng.h Makefile $(SRC)
+- @echo "CC $<"
+- @$(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CFLAGS) -c -o $@ $<
+
+ stress-ng: $(OBJS)
+- @echo "LD $@"
+- @$(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -o $@
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -o $@
+ @sync
+
+ makeconfig:
+@@ -385,7 +383,7 @@
+ sed '$$ s/.$$//' >> apparmor-data.c
+ @echo "};" >> apparmor-data.c
+ @echo "const size_t g_apparmor_data_len = sizeof(g_apparmor_data);" >> apparmor-data.c
+- @echo "CC $<"
++ echo "CC $<"
+ @$(CC) -c apparmor-data.c -o apparmor-data.o
+ @rm -rf apparmor-data.c apparmor-data.bin
+
+@@ -401,12 +399,12 @@
+ core-perf.o: core-perf.c core-perf-event.c
+ @$(CC) $(CFLAGS) -E core-perf-event.c | grep "PERF_COUNT" | sed 's/,/ /' | \
+ awk {'print "#define _SNG_" $$1 " (1)"'} > core-perf-event.h
+- @echo CC $<
+- @$(CC) $(CFLAGS) -c -o $@ $<
++ echo CC $<
++ $(CC) $(CFLAGS) -c -o $@ $<
+
+ stress-vecmath.o: stress-vecmath.c
+- @echo CC $<
+- @$(CC) $(CFLAGS) -fno-builtin -c -o $@ $<
++ echo CC $<
++ $(CC) $(CFLAGS) -fno-builtin -c -o $@ $<
+ @touch stress-ng.c
+
+ $(OBJS): stress-ng.h Makefile
+@@ -455,7 +453,7 @@
+ mkdir -p ${DESTDIR}${BINDIR}
+ cp stress-ng ${DESTDIR}${BINDIR}
+ mkdir -p ${DESTDIR}${MANDIR}
+- cp stress-ng.1.gz ${DESTDIR}${MANDIR}
++ cp stress-ng.1 ${DESTDIR}${MANDIR}
+ mkdir -p ${DESTDIR}${JOBDIR}
+ cp -rp example-jobs/*.job ${DESTDIR}${JOBDIR}
+ mkdir -p ${DESTDIR}${BASHDIR}
diff --git a/app-benchmarks/stress-ng/stress-ng-0.10.13.ebuild b/app-benchmarks/stress-ng/stress-ng-0.10.13.ebuild
new file mode 100644
index 000000000000..342e1b2caa46
--- /dev/null
+++ b/app-benchmarks/stress-ng/stress-ng-0.10.13.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Stress test for a computer system with various selectable ways"
+HOMEPAGE="https://kernel.ubuntu.com/~cking/stress-ng/"
+SRC_URI="https://kernel.ubuntu.com/~cking/tarballs/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-libs/libaio
+ dev-libs/libbsd
+ dev-libs/libgcrypt:0=
+ net-misc/lksctp-tools
+ sys-apps/attr
+ sys-apps/keyutils:=
+ sys-libs/libapparmor
+ sys-libs/libcap
+ sys-libs/zlib
+"
+
+RDEPEND="${DEPEND}"
+
+DOCS=( "README" "README.Android" "TODO" "syscalls.txt" )
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+src_compile() {
+ tc-export CC
+
+ default
+}