diff options
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/iozone/iozone-3.506-r1.ebuild | 78 | ||||
-rw-r--r-- | app-benchmarks/iozone/iozone-3.506.ebuild | 2 | ||||
-rw-r--r-- | app-benchmarks/siege/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch | 32 | ||||
-rw-r--r-- | app-benchmarks/siege/siege-4.1.7.ebuild | 55 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/Manifest | 2 | ||||
-rw-r--r-- | app-benchmarks/stress-ng/stress-ng-0.18.09.ebuild (renamed from app-benchmarks/stress-ng/stress-ng-0.18.06.ebuild) | 2 |
7 files changed, 169 insertions, 3 deletions
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 +} diff --git a/app-benchmarks/iozone/iozone-3.506.ebuild b/app-benchmarks/iozone/iozone-3.506.ebuild index 2c1e908e92ef..f9f4a8c781d1 100644 --- a/app-benchmarks/iozone/iozone-3.506.ebuild +++ b/app-benchmarks/iozone/iozone-3.506.ebuild @@ -12,7 +12,7 @@ S="${WORKDIR}/${PN}${PV/./_}" LICENSE="freedist" SLOT="0" -KEYWORDS="amd64 ~arm ppc ppc64 ~riscv ~sparc ~x86" +KEYWORDS="amd64 arm ppc ppc64 ~riscv ~sparc x86" PATCHES=( "${FILESDIR}"/${PN}-3.506-include-function-parameters.patch diff --git a/app-benchmarks/siege/Manifest b/app-benchmarks/siege/Manifest index 7f228b900871..f706816b7abe 100644 --- a/app-benchmarks/siege/Manifest +++ b/app-benchmarks/siege/Manifest @@ -1 +1,2 @@ DIST siege-4.1.6.tar.gz 527103 BLAKE2B aea71c93d0243113f8d9087ab4ea02ad1c64e10d8a10918139473ba865230a8e945d5371f19234bce22c95f8a412f68e94792ea0ea00eb451f208a17a37467f4 SHA512 cc674c9dc33aac35988708cd73b5061343cb1939e8a10b4dc50ceab42e65647b58557b6f3b48a03f5c992109bcac233425bf363e1f899135cfd9333d2517cfb2 +DIST siege-4.1.7.tar.gz 543447 BLAKE2B a4a5e7290ddace57f69a70d38bbcc901fb7651084840635981ea8b26c6bfc829215b03814a4b283709516a3994bd62f9e19fc304604249347b53238527108b97 SHA512 b7a842433410c7425c20308515db35151346249bd6886f9a36ef57c839ee974e05147792bff0fa72c3284dcb30b603fd6122c78f3220e144c688f41ebec9fec5 diff --git a/app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch b/app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch new file mode 100644 index 000000000000..ba11315a3960 --- /dev/null +++ b/app-benchmarks/siege/files/siege-4.1.7-clang16-build-fix.patch @@ -0,0 +1,32 @@ +Bug: https://bugs.gentoo.org/894338 +--- a/src/cookies.c ++++ b/src/cookies.c +@@ -66,7 +66,7 @@ + BOOLEAN + cookies_add(COOKIES this, char *str, char *host) + { +- size_t id = pthread_self(); ++ size_t id = (size_t) pthread_self(); + NODE *cur = NULL; + NODE *pre = NULL; + NODE *new = NULL; +@@ -174,7 +174,7 @@ + time_t now; + struct tm tm; + char oreo[MAX_COOKIES_SIZE]; +- size_t id = pthread_self(); ++ size_t id = (size_t) pthread_self(); + + memset(oreo, '\0', sizeof oreo); + tmp = time(NULL); +--- a/src/ftp.c ++++ b/src/ftp.c +@@ -151,7 +151,7 @@ + { + size_t len; + char *file; +- size_t id = pthread_self(); ++ size_t id = (size_t) pthread_self(); + int num = 2; + char **parts; + diff --git a/app-benchmarks/siege/siege-4.1.7.ebuild b/app-benchmarks/siege/siege-4.1.7.ebuild new file mode 100644 index 000000000000..26e8142ae9ad --- /dev/null +++ b/app-benchmarks/siege/siege-4.1.7.ebuild @@ -0,0 +1,55 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools bash-completion-r1 + +DESCRIPTION="HTTP regression testing and benchmarking utility" +HOMEPAGE="https://www.joedog.org/siege-home https://github.com/JoeDog/siege" +SRC_URI="https://download.joedog.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~x86 ~x64-macos" +IUSE="ssl" + +RDEPEND=" + sys-libs/zlib + ssl? ( dev-libs/openssl:0= ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-clang16-build-fix.patch +) + +src_prepare() { + default + # bundled macros break recent libtool + # remove /usr/lib from LDFLAGS, bug #732886 + sed -i \ + -e '/AC_PROG_SHELL/d' \ + -e 's/SSL_LDFLAGS="-L.*lib"/SSL_LDFLAGS=""/g' \ + -e 's/Z_LDFLAGS="-L.*lib"/Z_LDFLAGS=""/g' \ + configure.ac || die "Failed to sed configure.ac" + rm *.m4 || die "failed to remove bundled macros" + eautoreconf +} + +src_configure() { + local myconf=( $(use_with ssl ssl "${EPREFIX}/usr") ) + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${ED}" install + dodoc AUTHORS ChangeLog INSTALL README* doc/siegerc doc/urls.txt + + newbashcomp "${FILESDIR}/${PN}".bash-completion "${PN}" +} + +pkg_postinst() { + elog "An example ~/.siegerc file has been installed in" + elog "${EPREFIX}/usr/share/doc/${PF}/" +} diff --git a/app-benchmarks/stress-ng/Manifest b/app-benchmarks/stress-ng/Manifest index bf1adb553cc0..83feee01b9fa 100644 --- a/app-benchmarks/stress-ng/Manifest +++ b/app-benchmarks/stress-ng/Manifest @@ -1 +1 @@ -DIST stress-ng-0.18.06.tar.gz 6683654 BLAKE2B fafea2c51b05e314118fd4d4551ecfbfb3ea6a256e6986290ed90ed9b9fe060e6fc558aafc40ea64b7d53afe6bc642f00be2e08348aa491d442b9371eebf2851 SHA512 f0ab899cbc4e8419fa174a45f655b4c607fdfbc09e15e98fe7d297dcd5411ae2c9580d439bf550503e577497ec62a272e9762af5e6160b6645d4587dab87f8e6 +DIST stress-ng-0.18.09.tar.gz 6710486 BLAKE2B 9b73a783110e116869601ce31c08896470eae13ae03277c60f39e498a6fea4ff6b8784e1561cca772294022540a159a51f438ca117bb6e1ab40371dfe677e1c6 SHA512 6d3131d4509491a29dd72342b5a71946ad71e48f49c5d85e430346f96ecf30a639364fbeb60805b275415b313c0661964b1d43bd508efa3e3a305631c08370e7 diff --git a/app-benchmarks/stress-ng/stress-ng-0.18.06.ebuild b/app-benchmarks/stress-ng/stress-ng-0.18.09.ebuild index 0dcbc1e87678..e228cb2832dc 100644 --- a/app-benchmarks/stress-ng/stress-ng-0.18.06.ebuild +++ b/app-benchmarks/stress-ng/stress-ng-0.18.09.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 |