diff options
Diffstat (limited to 'app-benchmarks/stress-ng')
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/files/stress-ng-0.09.40-makefile.patch | 64 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.09.40.ebuild | 28 |
3 files changed, 93 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index 1a8470dac5e5..881a0ee24e77 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.09.38.tar.xz 355252 BLAKE2B 9382d48af5fa7fbb9128887d484688045cf033a2f5997898209f530ef6c27ea27c5271666247a9c650f4dd66bd2add93586dd5beb19f6509f78b9e355791cf27 SHA512 b3f3d03151cd5afaa267eb028ec9f450d8dccec851de0f16fe8d83e81b7a8e9572b7c556e1fab4ecc57c56829e6d30023716708f15b9156af146a0c72ae4ddf8 +DIST stress-ng-0.09.40.tar.xz 358268 BLAKE2B 4c52af04ea4579c53ac2e44a32322f2b4a962e78a44fea088ae1046e6e4d9e77c3b8110864d02088c99379d12f0f4edab29bc8be5102c6a8dd0f27ff4ed20c31 SHA512 f60057596e80488d3160e984c547471fb7874e76bb13d5d57407336d2770ed480902c05b013c7e27e682ca84954daa7fd9a4bbe2b45b3307ba3361ec747a21d6 diff --git a/app-benchmarks/stress-ng/files/stress-ng-0.09.40-makefile.patch b/app-benchmarks/stress-ng/files/stress-ng-0.09.40-makefile.patch new file mode 100644 index 000000000000..e3478e8ced84 --- /dev/null +++ b/app-benchmarks/stress-ng/files/stress-ng-0.09.40-makefile.patch @@ -0,0 +1,64 @@ +--- a/Makefile 2018-09-12 18:12:22.000000000 +0200 ++++ b/Makefile 2018-09-16 02:06:13.000000000 +0200 +@@ -21,7 +21,7 @@ + # Codename "portable pressure producer" + # + +-CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99 -pipe ++CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -std=gnu99 + + # + # Pedantic flags +@@ -338,12 +338,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) -lc -o $@ ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -lc -o $@ + @sync + + makeconfig: +@@ -364,8 +362,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 $<" +- @$(CC) -c apparmor-data.c -o apparmor-data.o ++ $(CC) -c apparmor-data.c -o apparmor-data.o + @rm -rf apparmor-data.c apparmor-data.bin + + # +@@ -380,12 +377,10 @@ + perf.o: perf.c perf-event.c + @$(CC) $(CFLAGS) -E perf-event.c | grep "PERF_COUNT" | sed 's/,/ /' | \ + awk {'print "#define _SNG_" $$1 " (1)"'} > perf-event.h +- @echo CC $< +- @$(CC) $(CFLAGS) -c -o $@ $< ++ $(CC) $(CFLAGS) -c -o $@ $< + + stress-vecmath.o: stress-vecmath.c +- @echo CC $< +- @$(CC) $(CFLAGS) -fno-builtin -c -o $@ $< ++ $(CC) $(CFLAGS) -fno-builtin -c -o $@ $< + @touch stress-ng.c + + $(OBJS): stress-ng.h Makefile +@@ -429,10 +424,10 @@ + ./stress-ng --seq 0 -t 15 --pathological --verbose --times --tz --metrics + + .PHONY: install +-install: stress-ng stress-ng.1.gz ++install: stress-ng + 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} diff --git a/app-benchmarks/stress-ng/stress-ng-0.09.40.ebuild b/app-benchmarks/stress-ng/stress-ng-0.09.40.ebuild new file mode 100644 index 000000000000..66c8efa4f87c --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.09.40.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="Stress test for a computer system with various selectable ways" +HOMEPAGE="http://kernel.ubuntu.com/~cking/stress-ng/" +SRC_URI="http://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" ) |