From d64393154e28c583de1cc7216350a7c833dd0f41 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Sat, 29 Aug 2020 09:36:23 +1000 Subject: [PATCH] New package: stressapptest-1.0.9. --- srcpkgs/stressapptest/patches/musl.patch | 20 ++++++++++++++++++++ srcpkgs/stressapptest/template | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/stressapptest/patches/musl.patch create mode 100644 srcpkgs/stressapptest/template diff --git a/srcpkgs/stressapptest/patches/musl.patch b/srcpkgs/stressapptest/patches/musl.patch new file mode 100644 index 00000000000..bc2c333ab89 --- /dev/null +++ b/srcpkgs/stressapptest/patches/musl.patch @@ -0,0 +1,20 @@ +--- src/sat.cc 2021-01-13 09:41:59.963038539 +1100 ++++ src/sat.cc 2021-01-13 09:42:56.376419216 +1100 +@@ -1485,6 +1485,7 @@ + // Return the worst case (largest) cache line size of the various levels of + // cache actually prsent in the machine. + int Sat::CacheLineSize() { ++#ifdef _SC_LEVEL1_DCACHE_LINESIZE + int max_linesize = sysconf(_SC_LEVEL1_DCACHE_LINESIZE); + int linesize = sysconf(_SC_LEVEL2_CACHE_LINESIZE); + if (linesize > max_linesize) max_linesize = linesize; +@@ -1493,6 +1494,9 @@ + linesize = sysconf(_SC_LEVEL4_CACHE_LINESIZE); + if (linesize > max_linesize) max_linesize = linesize; + return max_linesize; ++#else ++ return 0; ++#endif + } + + // Notify and reap worker threads. diff --git a/srcpkgs/stressapptest/template b/srcpkgs/stressapptest/template new file mode 100644 index 00000000000..e78b04c7c73 --- /dev/null +++ b/srcpkgs/stressapptest/template @@ -0,0 +1,11 @@ +# Template file for 'stressapptest' +pkgname=stressapptest +version=1.0.9 +revision=1 +build_style=gnu-configure +short_desc="Stressful Application Test - userspace memory and IO test" +maintainer="fosslinux " +license="Apache-2.0" +homepage="https://github.com/stressapptest/stressapptest" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=2ba470587ad4f6ae92057d427c3a2a2756e5f10bd25cd91e62eaef55a40b30a1