diff options
Diffstat (limited to 'app-benchmarks/tiobench')
-rw-r--r-- | app-benchmarks/tiobench/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/tiobench/files/tiobench-0.4.2-fix-perl-shebang.patch | 51 | ||||
-rw-r--r-- | app-benchmarks/tiobench/files/tiobench-0.4.2-gcc5.patch | 48 | ||||
-rw-r--r-- | app-benchmarks/tiobench/tiobench-0.4.2.ebuild | 44 |
4 files changed, 0 insertions, 144 deletions
diff --git a/app-benchmarks/tiobench/Manifest b/app-benchmarks/tiobench/Manifest index 6daa7daf8e3..b03b34088b9 100644 --- a/app-benchmarks/tiobench/Manifest +++ b/app-benchmarks/tiobench/Manifest @@ -1,2 +1 @@ -DIST tiobench-0.4.2.tar.gz 32182 BLAKE2B f3c0f78daac0dc8c38de2049f8edfce7443fb43a6aacf31a0b5c12abf80ec0ae4c03b1bd25f954db261027c16dfb73fdffe970a730a853caf25763579c2e7170 SHA512 02e82d86ee889a366c1a00d4fb49f63d926e44ba6e2f297212479a5c13abe008b62c12d44483de7e971b5ebf875d5c07847f1d69dd11b2e87a050e27d8f9f09f DIST tiobench-0.5.0.tar.gz 32897 BLAKE2B 31abe72515b8fe9c846fb8406d47292a8068ab27a6a37d3544a65a84174c6e301e19b95740896e45689ffc2dbb5b12a0927ff5147f98f8b7820bba411957239c SHA512 5e21555b4f76153537eda3e2eb4a22e40b7223870126aee64e78f9ee417b9ba8555f186b46c1e1d71b15c8512970295d57029da4ae0ce438785476ce27d7c0b5 diff --git a/app-benchmarks/tiobench/files/tiobench-0.4.2-fix-perl-shebang.patch b/app-benchmarks/tiobench/files/tiobench-0.4.2-fix-perl-shebang.patch deleted file mode 100644 index 900472d80dd..00000000000 --- a/app-benchmarks/tiobench/files/tiobench-0.4.2-fix-perl-shebang.patch +++ /dev/null @@ -1,51 +0,0 @@ -Fix perl shebangs, in order to be maximally compatible with Gentoo Prefix. -Rationale: https://blogs.gentoo.org/mgorny/2016/02/08/a-quick-note-on-portable-shebangs/ - ---- a/scripts/makeimages.pl -+++ b/scripts/makeimages.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/env perl - - # Author: James Manning <jmm@users.sf.net> - # This software may be used and distributed according to the terms of -@@ -8,6 +8,7 @@ - # Perl wrapper for calling tiobench.pl and displaying results - # graphically using gnuplot - -+use warnings; - use strict; - - my $args = join(" ",@ARGV); ---- a/scripts/tiosum.pl -+++ b/scripts/tiosum.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/env perl - # Author: Randy Hron <rwhron (at) earthlink dot net> - # This software may be used and distributed according to the terms of - # the GNU General Public License, http://www.gnu.org/copyleft/gpl.html -@@ -6,6 +6,7 @@ - # Summarize output of tiobench2.pl for multiple kernels/runs. - # Assumes logfiles created with: - # ./tiobench2.pl > tiobench-`uname -r` 2> tiobench-`uname -r`.err -+use warnings; - use strict; - $|++; - ---- a/tiobench.pl -+++ b/tiobench.pl -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!/usr/bin/env perl - - # Author: James Manning <jmm at users.sf.net> - # Author: Randy Hron <rwhron at earthlink dot net> -@@ -9,6 +9,7 @@ - # Perl wrapper for calling the tiotest executable multiple times - # with varying sets of parameters as instructed - -+use warnings; - use strict; - use Getopt::Long; - diff --git a/app-benchmarks/tiobench/files/tiobench-0.4.2-gcc5.patch b/app-benchmarks/tiobench/files/tiobench-0.4.2-gcc5.patch deleted file mode 100644 index e1bf89b87ec..00000000000 --- a/app-benchmarks/tiobench/files/tiobench-0.4.2-gcc5.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/crc32.c b/crc32.c -index bae7384..a22fc5d 100644 ---- a/crc32.c -+++ b/crc32.c -@@ -72,10 +72,9 @@ static const unsigned long crctab[256] = { - 0xA2F33668, 0xBCB4666D, 0xB8757BDA, 0xB5365D03, 0xB1F740B4 - }; - --inline --unsigned long crc32( const void* buffer, -- unsigned long length, -- unsigned long crc) -+unsigned long crc32(const void* buffer, -+ unsigned long length, -+ unsigned long crc) - { - const unsigned char* cp = (const unsigned char*)buffer; - -diff --git a/crc32.h b/crc32.h -index 62b3433..cb9b96f 100644 ---- a/crc32.h -+++ b/crc32.h -@@ -18,9 +18,8 @@ - #ifndef CRC32_H - #define CRC32_H - --inline --unsigned long crc32( const void* const buffer, -- unsigned long length, -- unsigned long crc); -+unsigned long crc32(const void* const buffer, -+ unsigned long length, -+ unsigned long crc); - - #endif -diff --git a/tiotest.c b/tiotest.c -index c23ceb4..bb73fcb 100644 ---- a/tiotest.c -+++ b/tiotest.c -@@ -1392,7 +1392,7 @@ static int do_mmap_read_operation(void *loc, ThreadData *d) - - if(crc != d->bufferCrc) - { -- fprintf(stderr, "Thread(%lu) mmap consistency check failed at 0x%x\n", d->myNumber, (unsigned int)loc); -+ fprintf(stderr, "Thread(%lu) mmap consistency check failed at 0x%p\n", d->myNumber, loc); - return -1; - } - } diff --git a/app-benchmarks/tiobench/tiobench-0.4.2.ebuild b/app-benchmarks/tiobench/tiobench-0.4.2.ebuild deleted file mode 100644 index 339da5860de..00000000000 --- a/app-benchmarks/tiobench/tiobench-0.4.2.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -DESCRIPTION="Portable, robust, fully-threaded I/O benchmark program" -HOMEPAGE="https://github.com/mkuoppal/tiobench" -SRC_URI="https://github.com/mkuoppal/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86" -IUSE="" - -RDEPEND="dev-lang/perl" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${P}-gcc5.patch - "${FILESDIR}"/${P}-fix-perl-shebang.patch -) - -src_prepare() { - default - sed -i \ - -e "s:/usr/local/bin:${EPREFIX}/usr/sbin:" tiobench.pl \ - || die "sed tiobench.pl failed" -} - -src_compile() { - emake \ - CC="$(tc-getCC)" \ - LINK="$(tc-getCC)" \ - DEFINES="-DLARGEFILES" \ - CFLAGS="${CFLAGS}" \ - LDFLAGS="${LDFLAGS}" -} - -src_install() { - dosbin tiotest tiobench.pl scripts/tiosum.pl - einstalldocs -} |