From 8206b9d322ce4b1fe9ec12e6edd831f7dc2ec337 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 30 Apr 2019 17:23:28 +0000 Subject: community/stress-ng: moved from testing --- .../0001-Remove-GLOB_ONLYDIR-for-musl.patch | 42 ---------------------- testing/stress-ng/APKBUILD | 34 ------------------ 2 files changed, 76 deletions(-) delete mode 100644 testing/stress-ng/0001-Remove-GLOB_ONLYDIR-for-musl.patch delete mode 100644 testing/stress-ng/APKBUILD (limited to 'testing') diff --git a/testing/stress-ng/0001-Remove-GLOB_ONLYDIR-for-musl.patch b/testing/stress-ng/0001-Remove-GLOB_ONLYDIR-for-musl.patch deleted file mode 100644 index 14248a06f0..0000000000 --- a/testing/stress-ng/0001-Remove-GLOB_ONLYDIR-for-musl.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 3109c91234f71966d9488aedb285746ef12b44fd Mon Sep 17 00:00:00 2001 -From: Olliver Schinagl -Date: Mon, 4 Mar 2019 07:34:19 +0100 -Subject: [PATCH] Remove GLOB_ONLYDIR for musl - -The GNU specific flag to glob 'GLOB_ONLYDIR' is a hint for glob that the -caller is only interested in directories, and so glob can do some -internal performance optimizations. It does NOT mean glob WILL only -return directories, the caller is still responsible for checking this. - -As musl does not support this GNU extension, lets just remove it. - -Signed-off-by: Olliver Schinagl ---- - core-cache.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/core-cache.c b/core-cache.c -index 7fe4a354..52411f84 100644 ---- a/core-cache.c -+++ b/core-cache.c -@@ -465,7 +465,7 @@ static int get_cpu_cache_details(cpu_t *cpu, const char *cpu_path) - - (void)strncat(glob_path, GLOB_PATTERN_INDEX_PREFIX, - sizeof(glob_path) - len - 1); -- ret2 = glob(glob_path, GLOB_ONLYDIR, NULL, &globbuf); -+ ret2 = glob(glob_path, 0, NULL, &globbuf); - if (ret2 != 0) { - if (warn_once(WARN_ONCE_NO_CACHE)) - pr_err("glob on regex \"%s\" failed: %d\n", -@@ -535,7 +535,7 @@ cpus_t * get_all_cpu_cache_details(void) - return NULL; - } - -- ret = glob(GLOB_PATTERN, GLOB_ONLYDIR, NULL, &globbuf); -+ ret = glob(GLOB_PATTERN, 0, NULL, &globbuf); - if (ret != 0) { - pr_err("glob on regex \"%s\" failed: %d\n", - GLOB_PATTERN, ret); --- -2.20.1 - diff --git a/testing/stress-ng/APKBUILD b/testing/stress-ng/APKBUILD deleted file mode 100644 index 426597192b..0000000000 --- a/testing/stress-ng/APKBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Contributor: Olliver Schinagl -# Maintainer: Olliver Schinagl -pkgname=stress-ng -pkgver=0.09.57 -pkgrel=0 -pkgdesc="stress-ng will stress test a computer system in various selectable ways." -url="https://kernel.ubuntu.com/~cking/stress-ng/" -arch="all" -license="GPL-2.0-or-later" -options="!check" # tests are not portable -makedepends=" - linux-headers - libaio-dev - libbsd-dev - lksctp-tools-dev - zlib-dev -" -subpackages="$pkgname-doc" -source=" - https://kernel.ubuntu.com/~cking/tarballs/stress-ng/stress-ng-$pkgver.tar.xz - 0001-Remove-GLOB_ONLYDIR-for-musl.patch -" - -build() { - make -} - -package() { - make DESTDIR="${pkgdir}" \ - JOBDIR="/usr/share/doc/${pkgname}/example-jobs/" install -} - -sha512sums="5c3bd06be0f66a6bbb88393b3d22400b5a307e4c45e27d7cb15502370b0873ec11c911aa31fa066400152169ec5bea29c1c0260899dedbc640fbef09ee672cb5 stress-ng-0.09.57.tar.xz -8b648cdeced325a04c494e84be78182a941ce4c11327c3c0c24bff2caf399ff09a8e88ad19b564f1eb614e9cdc1560377075ec866d90d17a55cb45498b0c3a0d 0001-Remove-GLOB_ONLYDIR-for-musl.patch" -- cgit v1.2.3