summaryrefslogtreecommitdiff
path: root/app-benchmarks
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-21 04:04:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-21 04:04:33 +0100
commit3dc4de6331223493015f198dc61854af604da86c (patch)
tree626add8c88d96adf9429cdb19226d9de60e6dafd /app-benchmarks
parentd895362f98ae63a6ed12cd16d3b3df95d6967f25 (diff)
gentoo auto-resync : 21:10:2024 - 04:04:33
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/Manifest.gzbin4846 -> 4849 bytes
-rw-r--r--app-benchmarks/iozone/Manifest3
-rw-r--r--app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch23
-rw-r--r--app-benchmarks/iozone/iozone-3.506.ebuild73
4 files changed, 99 insertions, 0 deletions
diff --git a/app-benchmarks/Manifest.gz b/app-benchmarks/Manifest.gz
index e047570be20d..3fe5f7b6428f 100644
--- a/app-benchmarks/Manifest.gz
+++ b/app-benchmarks/Manifest.gz
Binary files differ
diff --git a/app-benchmarks/iozone/Manifest b/app-benchmarks/iozone/Manifest
index 7420f1c20ab8..7b0f8270d1a5 100644
--- a/app-benchmarks/iozone/Manifest
+++ b/app-benchmarks/iozone/Manifest
@@ -1,4 +1,7 @@
AUX iozone-3.488-gcc10-fno-common.patch 247 BLAKE2B 55ed33492fd2102e865272aa16eb7e0f10e1fdc05b5cd06392c1beb1090eb6c67d992919828941ff34d8582587290c680c8fd5be9240a90c4762211df7511b69 SHA512 2d06d41512e696103cfc8e8b8cf87488ad36fa62e90115754f231717169d33814298342c87a53d36ba6692a479b339b07ed13151d2027f0ab5879498b80e213b
+AUX iozone-3.506-include-function-parameters.patch 813 BLAKE2B b52be1c19d8fe6005946f233f8faf6b0ef022f2ee663665d648d6227283e6bff2a75c7730ed9bbd04fa67d37dbbc32c0d0690328bf7057c1965f9af4f408eda1 SHA512 51c41a7ec1f736ebd43d8239308bbe4416532124d738064b53c9cdd58a73a17758265a24f1e11a8516289f5177280f00e362b37086b642bd30adc1987a7687ba
DIST iozone3_488.tar 1873920 BLAKE2B 60e97d588a273c1af7a8c83ec207593fcf43766f92171774b974aa04a8df690a1a84aae4b448e4a6f9e4e9c7dc3cd98ad327a0ea196779e6dbe3a88326314eaf SHA512 033f9e6e7395fe84ae6f4ae8737544e399ac0f16e82ba95eed2a2d0df52b7efcbe0c9282abc68d3c5b53d859073c74bff2e8c34bc35e1e1cc887ed36ad5d840b
+DIST iozone3_506.tar 1894400 BLAKE2B 7434b691114aa5fabe10d659d47abe60b7efd76b75dff1c6cd0fc9205807f48cb3452022dc300b454acfbcf07df26f972ffa5ff62b51fa858eecb0340fb26402 SHA512 908919aef957ee587e23ab1d29c0e7cdb985caa1ec80ddee0d3fcdad8aa78978de0f8fc83161b37223237119c50e0626a8366ce6b29debefbfee00240e97105e
EBUILD iozone-3.488.ebuild 1610 BLAKE2B 2d7de136d82ccebe3935cb9df1a91debb6d3a678c0487bb27ad724c639f834af09d324644f0faa964df8f02db69d0cb63f529153083ca6ee8129357c82ce9aa2 SHA512 4d9b5796c2b765a0b932c0062d8ab7e04082f713265ee0b7bd8cef7321d25d34eca628b9b9a003707a19f32a13fcfbe706be4914f7b6bdeb7394d89e5e4abd72
+EBUILD iozone-3.506.ebuild 1761 BLAKE2B 3d830c034c310d3bb65d6bc1d9f660883e47c76a241df515b6f4d4991befdf90e4202d626486673c671159be31ee41471731755d656eb6a8c607560854e6fbab SHA512 95861e06886430a130fdd18afb01dfa6806baf679d1c7f2f9d1ed3e32404bc3848744d3a9f13dc9ff5df8f34639889e4c2bc761c064fda17030630cb3573681d
MISC metadata.xml 250 BLAKE2B 0bf33d84e86ff8a3136c4f1c212083d26c325637069dc3fe836c3dc8f14ea05f81c3b00fa9af13ed95009d827254ac3e56267f890575ae56119bc603ed5666b7 SHA512 6adc5af98e2cbdadd61377d191bdf9ce50e9f0b29c87e611b4bb2afc0824878a3fe20e06db970b59e04360d930a333eaf0b6191933f52d9dcffedb59943fe6aa
diff --git a/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch b/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch
new file mode 100644
index 000000000000..6b1421f4bb5e
--- /dev/null
+++ b/app-benchmarks/iozone/files/iozone-3.506-include-function-parameters.patch
@@ -0,0 +1,23 @@
+Clang won't allow an incorrect redeclaration.
+
+iozone.c:1272:9: error: redeclaration of 'pread64' must have the 'overloadable' attribute
+ 1272 | ssize_t pread64();
+ | ^
+/usr/include/bits/unistd.h:66:1: note: previous overload of function is here
+ 66 | pread64 (int __fd, __fortify_clang_overload_arg0 (void *, ,__buf),
+ | ^
+
+--- a/src/current/iozone.c 2023-05-01 06:29:49.000000000 +0300
++++ b/src/current/iozone.c 2024-10-19 08:44:44.697717249 +0300
+@@ -1268,8 +1268,8 @@
+
+ #ifdef HAVE_ANSIC_C
+ #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE)
+-ssize_t pwrite64();
+-ssize_t pread64();
++ssize_t pwrite64(int fd, const void *buf, size_t count, off_t offset);
++ssize_t pread64(int fd, void *buf, size_t count, off_t offset);
+ #endif
+ #if !defined(linux)
+ char *getenv();
+
diff --git a/app-benchmarks/iozone/iozone-3.506.ebuild b/app-benchmarks/iozone/iozone-3.506.ebuild
new file mode 100644
index 000000000000..3a3b81775264
--- /dev/null
+++ b/app-benchmarks/iozone/iozone-3.506.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Filesystem benchmarking program"
+HOMEPAGE="http://www.iozone.org/"
+SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar"
+S="${WORKDIR}/${PN}${PV/./_}"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.506-include-function-parameters.patch
+)
+
+src_prepare() {
+ default
+
+ # Options FIX
+ sed -e '/CC =.*/d' \
+ -e 's:-O[23]:$(CFLAGS):g' \
+ -e 's:-Dlinux:$(LDFLAGS) -Dlinux:g' \
+ -i src/current/makefile || die
+}
+
+src_configure() {
+ tc-export CC
+
+ case ${ARCH} in
+ x86|alpha|riscv) PLATFORM="linux";;
+ arm) PLATFORM="linux-arm";;
+ ppc) PLATFORM="linux-powerpc";;
+ ppc64) PLATFORM="linux-powerpc64";;
+ amd64) PLATFORM="linux-AMD64";;
+ ia64) PLATFORM="linux-ia64";;
+ s390) PLATFORM="linux-S390";;
+ *) PLATFORM="linux-${ARCH}";;
+ esac
+
+ # makefile uses $(GCC) in a few places, probably
+ # by mistake.
+ export GCC="$(tc-getCC)"
+
+ # Otherwise it uses K&R function declaration where ints are sometimes omited
+ # https://bugs.gentoo.org/894334
+ append-cppflags -DHAVE_ANSIC_C
+}
+
+src_compile() {
+ emake -C src/current ${PLATFORM}
+}
+
+src_test() {
+ cd "${T}" || die
+ "${S}"/src/current/iozone testfile || die "self test failed"
+}
+
+src_install() {
+ dosbin src/current/{iozone,fileop}
+
+ # decompress pre-compressed file to make QA check happy
+ gunzip docs/Iozone_ps.gz || die
+
+ dodoc docs/I* docs/Run_rules.doc src/current/Changes.txt
+ doman docs/iozone.1
+ cd src/current || die
+ dodoc Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem
+}