app-benchmarks/stress-ng: bump to version 0.10.13
authorConrad Kostecki <conikost@gentoo.org>
Fri, 13 Dec 2019 23:56:07 +0000 (00:56 +0100)
committerConrad Kostecki <conikost@gentoo.org>
Fri, 13 Dec 2019 23:59:54 +0000 (00:59 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
app-benchmarks/stress-ng/Manifest
app-benchmarks/stress-ng/files/stress-ng-0.10.13-makefile.patch [new file with mode: 0644]
app-benchmarks/stress-ng/stress-ng-0.10.13.ebuild [new file with mode: 0644]

index 592135dc508535763a910b45351d62a47031fe49..9015dc1f9eb6ece4e722b8ff28efaba7c640d45d 100644 (file)
@@ -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 (file)
index 0000000..b6a8554
--- /dev/null
@@ -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 (file)
index 0000000..342e1b2
--- /dev/null
@@ -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
+}