diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-10-30 23:24:13 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-10-30 23:43:02 +0100 |
commit | 52bc9443c8e57b964a8325a9209d851461bc8b69 (patch) | |
tree | d710e74f25a2b4bfb92b0a24e826d3eb221f5fa5 /app-benchmarks | |
parent | dev-libs/libxml2: Drop old versions (diff) | |
download | gentoo-52bc9443c8e57b964a8325a9209d851461bc8b69.tar.gz gentoo-52bc9443c8e57b964a8325a9209d851461bc8b69.tar.bz2 gentoo-52bc9443c8e57b964a8325a9209d851461bc8b69.zip |
app-benchmarks/stress-ng: bump to version 0.11.23
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/files/stress-ng-0.11.23-makefile.patch | 60 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.11.23.ebuild | 41 |
3 files changed, 102 insertions, 0 deletions
diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index 1e292ca6e337..5aa292834115 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1,2 @@ DIST stress-ng-0.11.22.tar.xz 495692 BLAKE2B 738883d59f4054d650de33f67ddf1e4a27625631e22295e3df00ba115d229a1f747e1b2948313beca55af160010683c20f4acad02eb2231c0a908af6534b266e SHA512 1685c7eb675bae1f751d8dbeb20dcd4ce753c564524d773dd6a396ace83bd94558425a3557d7d8cb86b87fb9a477069f85b81aec41649db3ccee2a32422b2546 +DIST stress-ng-0.11.23.tar.xz 499540 BLAKE2B ccba08bdb756737e782f896fe364869e4f939f7c8e9d5a02f8138d85f3d1922740100a58d9652169735eab994ab89df331b97bb08b588a721a6b1a8511fab937 SHA512 1642e6ea8ee75e400d5ea4e40d61384f9a895cd489715be1107d6cd06eea2274ac0b32320cabe806d0f919efbea8061848d9c9c4bdc5980704e7a2db45c9be70 diff --git a/app-benchmarks/stress-ng/files/stress-ng-0.11.23-makefile.patch b/app-benchmarks/stress-ng/files/stress-ng-0.11.23-makefile.patch new file mode 100644 index 000000000000..77687d2a1141 --- /dev/null +++ b/app-benchmarks/stress-ng/files/stress-ng-0.11.23-makefile.patch @@ -0,0 +1,60 @@ +--- a/Makefile ++++ b/Makefile +@@ -21,7 +21,7 @@ + # Codename "synthetic system strainer" + # + +-CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99 ++CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -std=gnu99 + + # + # Pedantic flags +@@ -364,12 +364,10 @@ + .o: stress-ng.h Makefile + + .c.o: +- @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: +@@ -390,8 +388,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 + + # +@@ -419,12 +416,10 @@ + @$(CC) $(CFLAGS) -E core-perf-event.c | $(GREP) "PERF_COUNT" | \ + sed 's/,/ /' | sed s/'^ *//' | \ + awk {'print "#define _SNG_" $$1 " (1)"'} > core-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 $@ $< + + $(OBJS): stress-ng.h Makefile + +@@ -478,7 +473,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.11.23.ebuild b/app-benchmarks/stress-ng/stress-ng-0.11.23.ebuild new file mode 100644 index 000000000000..a01d58d2dda5 --- /dev/null +++ b/app-benchmarks/stress-ng/stress-ng-0.11.23.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit optfeature 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 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=" + dev-libs/libaio + dev-libs/libbsd + dev-libs/libgcrypt:0= + sys-apps/attr + sys-apps/keyutils:= + sys-libs/libcap + sys-libs/zlib +" + +RDEPEND="${DEPEND}" + +DOCS=( "README" "README.Android" "TODO" "syscalls.txt" ) + +PATCHES=( "${FILESDIR}/${PN}-0.11.23-makefile.patch" ) + +src_compile() { + tc-export CC + + default +} + +pkg_postinst() { + optfeature "AppArmor support" sys-libs/libapparmor + optfeature "SCTP support" net-misc/lksctp-tools +} |