From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 567CF1580FD for ; Sun, 22 Dec 2024 09:49:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B358E038D; Sun, 22 Dec 2024 09:49:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45020E041F for ; Sun, 22 Dec 2024 09:49:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E27B334069F for ; Sun, 22 Dec 2024 09:49:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A9C717A1 for ; Sun, 22 Dec 2024 09:49:11 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1734860435.47b95946a0e7e310acc3b342f2aa5d321a26387c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-benchmarks/iozone/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-benchmarks/iozone/iozone-3.506-r1.ebuild X-VCS-Directories: app-benchmarks/iozone/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 47b95946a0e7e310acc3b342f2aa5d321a26387c X-VCS-Branch: master Date: Sun, 22 Dec 2024 09:49:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a8710dfd-b244-45aa-84ec-20ecf5f121d6 X-Archives-Hash: 6f257cf1eb740aaf36678c8ce23bbe19 commit: 47b95946a0e7e310acc3b342f2aa5d321a26387c Author: Sam James gentoo org> AuthorDate: Sun Dec 22 09:40:35 2024 +0000 Commit: Sam James gentoo 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 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 +}