From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/iozone/
Date: Sun, 22 Dec 2024 09:49:11 +0000 (UTC) [thread overview]
Message-ID: <1734860435.47b95946a0e7e310acc3b342f2aa5d321a26387c.sam@gentoo> (raw)
commit: 47b95946a0e7e310acc3b342f2aa5d321a26387c
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 22 09:40:35 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 09:40:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47b95946
app-benchmarks/iozone: build fixes
* Build with LFS (append-lfs-flags) to fix Modern C issue, hits
releng builds
* Build w/ -std=gnu17 as fails w/ -std=gnu23 (default in GCC 15)
Closes: https://bugs.gentoo.org/942587
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-benchmarks/iozone/iozone-3.506-r1.ebuild | 78 ++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
diff --git a/app-benchmarks/iozone/iozone-3.506-r1.ebuild b/app-benchmarks/iozone/iozone-3.506-r1.ebuild
new file mode 100644
index 000000000000..fb3c81a83541
--- /dev/null
+++ b/app-benchmarks/iozone/iozone-3.506-r1.ebuild
@@ -0,0 +1,78 @@
+# 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)"
+
+ # bug #942587
+ append-lfs-flags
+
+ append-cflags -std=gnu17
+
+ # 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
+}
next reply other threads:[~2024-12-22 9:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-22 9:49 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 11:08 [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/iozone/ Sam James
2024-12-12 11:08 Sam James
2024-11-01 15:48 Arthur Zamarin
2024-10-27 2:08 Sam James
2024-10-27 2:08 Sam James
2022-10-18 11:05 Jakov Smolić
2022-03-19 22:51 David Seifert
2022-01-05 10:01 David Seifert
2021-09-07 2:44 Sam James
2021-03-03 21:04 Sergei Trofimovich
2021-01-07 15:07 Sam James
2021-01-07 10:09 Sam James
2021-01-04 15:32 Sam James
2020-12-24 10:03 Agostino Sarubbo
2019-02-14 18:45 Thomas Deutschmann
2018-11-28 2:07 Thomas Deutschmann
2018-05-30 18:02 Mikle Kolyada
2018-05-26 12:51 David Seifert
2018-05-17 21:18 Sergei Trofimovich
2018-05-11 22:43 Sergei Trofimovich
2018-04-20 6:54 Sergei Trofimovich
2018-04-17 22:09 Thomas Deutschmann
2018-04-16 22:54 Aaron Bauman
2017-12-28 15:07 David Seifert
2017-10-08 11:00 Michał Górny
2015-12-21 15:09 Patrick Lauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1734860435.47b95946a0e7e310acc3b342f2aa5d321a26387c.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox