summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rothe <corsair@gentoo.org>2005-01-09 11:40:12 +0000
committerMarkus Rothe <corsair@gentoo.org>2005-01-09 11:40:12 +0000
commitb18238911946bf283eb99de23fc6fa56509870f2 (patch)
treed4e97d9c4df634a11afed5fa9b0d443f16d28377 /app-benchmarks/iozone
parentAdded missing parentheses in SRC_URI/*DEPEND/LICENSE. (diff)
downloadhistorical-b18238911946bf283eb99de23fc6fa56509870f2.tar.gz
historical-b18238911946bf283eb99de23fc6fa56509870f2.tar.bz2
historical-b18238911946bf283eb99de23fc6fa56509870f2.zip
added ppc64 patch
Diffstat (limited to 'app-benchmarks/iozone')
-rw-r--r--app-benchmarks/iozone/ChangeLog8
-rw-r--r--app-benchmarks/iozone/Manifest13
-rw-r--r--app-benchmarks/iozone/files/digest-iozone-3.226-r11
-rw-r--r--app-benchmarks/iozone/files/iozone-3.226-ppc64.patch38
-rw-r--r--app-benchmarks/iozone/iozone-3.226-r1.ebuild85
5 files changed, 139 insertions, 6 deletions
diff --git a/app-benchmarks/iozone/ChangeLog b/app-benchmarks/iozone/ChangeLog
index 656ce86aa10e..b3b4432906bd 100644
--- a/app-benchmarks/iozone/ChangeLog
+++ b/app-benchmarks/iozone/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-benchmarks/iozone
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/iozone/ChangeLog,v 1.14 2005/01/01 12:04:20 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/iozone/ChangeLog,v 1.15 2005/01/09 11:40:12 corsair Exp $
+
+*iozone-3.226-r1 (09 Jan 2005)
+
+ 09 Jan 2005; Markus Rothe <corsair@gentoo.org>
+ +files/iozone-3.226-ppc64.patch, +iozone-3.226-r1.ebuild:
+ Added ppc64 make rule patch
*iozone-3.226 (25 Nov 2004)
diff --git a/app-benchmarks/iozone/Manifest b/app-benchmarks/iozone/Manifest
index 918f42ac978a..643a10f04f2f 100644
--- a/app-benchmarks/iozone/Manifest
+++ b/app-benchmarks/iozone/Manifest
@@ -1,9 +1,12 @@
-MD5 32adf466e4c26cfa55b052e7b77857ba ChangeLog 2494
+MD5 3019772a3d5a51fd2fff2a196bc6183b ChangeLog 2663
+MD5 d3882936d3b970d563f377204805d482 iozone-3.221-r1.ebuild 2076
+MD5 d398facdb9adae0bf653425178f7089d iozone-3.221.ebuild 1959
MD5 6d796b061ed1c1337ef157a5f74dab35 metadata.xml 403
MD5 7943d53cc21d392cee22e71231e479ad iozone-3.226.ebuild 1967
-MD5 d398facdb9adae0bf653425178f7089d iozone-3.221.ebuild 1959
-MD5 d3882936d3b970d563f377204805d482 iozone-3.221-r1.ebuild 2076
-MD5 12fc9646500c0b8c87299cfd1e222779 files/digest-iozone-3.226 61
-MD5 2f97f7c83ee517e3716bfe9273022e21 files/digest-iozone-3.221 61
+MD5 97ebb7935ec505dd507d5b8734791275 iozone-3.226-r1.ebuild 2144
MD5 19fa5141eb3eec9357704d234cdc2d31 files/3.221-gcc.patch 469
+MD5 2f97f7c83ee517e3716bfe9273022e21 files/digest-iozone-3.221 61
MD5 2f97f7c83ee517e3716bfe9273022e21 files/digest-iozone-3.221-r1 61
+MD5 12fc9646500c0b8c87299cfd1e222779 files/digest-iozone-3.226 61
+MD5 28d68364294fafbeadf3f599f4ae4abd files/iozone-3.226-ppc64.patch 1484
+MD5 12fc9646500c0b8c87299cfd1e222779 files/digest-iozone-3.226-r1 61
diff --git a/app-benchmarks/iozone/files/digest-iozone-3.226-r1 b/app-benchmarks/iozone/files/digest-iozone-3.226-r1
new file mode 100644
index 000000000000..b7bc8cc1b303
--- /dev/null
+++ b/app-benchmarks/iozone/files/digest-iozone-3.226-r1
@@ -0,0 +1 @@
+MD5 e27979fea8aae7e68ff24a2d609d86d2 iozone3_226.tar 1433600
diff --git a/app-benchmarks/iozone/files/iozone-3.226-ppc64.patch b/app-benchmarks/iozone/files/iozone-3.226-ppc64.patch
new file mode 100644
index 000000000000..55a37e9d840f
--- /dev/null
+++ b/app-benchmarks/iozone/files/iozone-3.226-ppc64.patch
@@ -0,0 +1,38 @@
+--- src/current/makefile.orig 2005-01-09 10:25:35.580175176 +0100
++++ src/current/makefile 2005-01-09 12:27:35.732213656 +0100
+@@ -175,6 +175,16 @@
+ -D_LARGEFILE64_SOURCE -Dlinux \
+ iozone_linux-powerpc.o libasync.o libbif.o -lpthread \
+ -lrt -o iozone
++
++#
++# GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O
++#
++linux-powerpc64: iozone_linux-powerpc64.o libbif.o libasync.o
++ $(CC) -O3 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -DASYNC_IO \
++ -D_LARGEFILE64_SOURCE -Dlinux \
++ iozone_linux-powerpc64.o libasync.o libbif.o -lpthread \
++ -lrt -o iozone
++
+ #
+ # GNU 'C' compiler Linux build for sparc chip with threads, largefiles, async I/O
+ #
+@@ -625,6 +635,18 @@
+ $(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
+ -D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o
+
++iozone_linux-powerpc64.o: iozone.c libbif.c libasync.c
++ @echo ""
++ @echo "Building iozone for Linux PowerPC64"
++ @echo ""
++ $(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DNAME='"linux-powerpc64"' \
++ -DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
++ -o iozone_linux-powerpc64.o
++ $(CC) -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
++ -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
++ $(CC) -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
++ -D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o
++
+ iozone_linux-sparc.o: iozone.c libbif.c libasync.c
+ @echo ""
+ @echo "Building iozone for Linux Sparc"
diff --git a/app-benchmarks/iozone/iozone-3.226-r1.ebuild b/app-benchmarks/iozone/iozone-3.226-r1.ebuild
new file mode 100644
index 000000000000..88ec0c8d42c7
--- /dev/null
+++ b/app-benchmarks/iozone/iozone-3.226-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/iozone/iozone-3.226-r1.ebuild,v 1.1 2005/01/09 11:40:12 corsair Exp $
+
+# TODO
+# -> linux-arm (32bit) <-
+# -> linux-AMD64 (64bit) <-
+# -> linux-ia64 (64bit) <-
+# -> linux-powerpc (32bit) <-
+# -> linux-powerpc64 (64bit) <-
+# -> linux-S390 (32bit) <-
+# -> linux-S390X (64bit) <-
+#
+# -> freebsd (32bit) <-
+# -> macosx (32bit) <-
+# -> netbsd (32bit) <-
+# -> openbsd (32bit) <-
+# -> openbsd-threads (32bit) <-
+#
+# ~ia64 ~s390 alpha(?) x86-fbsd
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Filesystem benchmarking program"
+HOMEPAGE="http://www.iozone.org/"
+SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="sys-devel/gcc
+ >=sys-apps/sed-4
+ virtual/libc"
+RDEPEND="virtual/libc"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${PN}${PV/./_}.tar
+ epatch ${FILESDIR}/${P}-ppc64.patch
+}
+
+
+src_compile() {
+ cd src/current
+
+ # Options FIX
+ sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \
+ -e "s:-O3 -Dunix:${CFLAGS} -Dunix:g" makefile
+
+ case ${ARCH} in
+ x86|alpha) 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";;
+ x86-fbsd) PLATFORM="freebsd";;
+ *) PLATFORM="linux-${ARCH}";;
+ esac
+
+ emake ${PLATFORM} || die "Compile failed"
+}
+
+src_install() {
+ dosbin src/current/iozone || die
+ dodoc docs/I*
+ dodoc docs/Run_rules.doc
+ dodoc src/current/Changes.txt
+ doman docs/iozone.1
+
+ insinto /usr/share/doc/${PF}
+ cd src/current
+ doins Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem
+
+ prepall
+}
+
+src_test() {
+ cd ${T}
+ ${S}/src/current/iozone testfile || die "self test failed"
+}