[oe-commits] org.oe.dev iozone3: added version 263

hrw commit openembedded-commits at lists.openembedded.org
Mon Oct 30 08:06:35 UTC 2006


iozone3: added version 263
IOzone is a filesystem benchmark tool. It has own license which does not allow
to distribute derivative works based on this work. 
This recipe adds patch which change source code to get one util built for ARM
platform. Upstream author gave us permission to do it as this patch will get
included in next release.

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: 4318caf9077f65f56c1df5e0e5b5f038b587a267
ViewMTN: http://monotone.openembedded.org/revision.psp?id=4318caf9077f65f56c1df5e0e5b5f038b587a267
Files:
1
packages/iozone3
packages/iozone3/iozone3
packages/iozone3/iozone3/copyright.txt
packages/iozone3/iozone3/fileop-arm.patch
packages/iozone3/iozone3_263.bb
Diffs:

#
# mt diff -r3801da8949cd9a863b2d7f5750175028da057484 -r4318caf9077f65f56c1df5e0e5b5f038b587a267
#
# 
# 
# add_dir "packages/iozone3"
# 
# add_dir "packages/iozone3/iozone3"
# 
# add_file "packages/iozone3/iozone3/copyright.txt"
#  content [0cde9aa473d3822094fa25cda09a220fc007baa1]
# 
# add_file "packages/iozone3/iozone3/fileop-arm.patch"
#  content [a10d66c104764c3fd74b3c3efaa7787b0e087d4c]
# 
# add_file "packages/iozone3/iozone3_263.bb"
#  content [52424275ebe80c8772c74162293f20f4b0ad65f4]
# 
============================================================
--- packages/iozone3/iozone3/copyright.txt	0cde9aa473d3822094fa25cda09a220fc007baa1
+++ packages/iozone3/iozone3/copyright.txt	0cde9aa473d3822094fa25cda09a220fc007baa1
@@ -0,0 +1,62 @@
+LICENSE:
+
+ Copyright 1991, 1992, 1994, 1998, 1999, 2002   William D. Norcott
+
+ License to freely use and distribute this software is hereby granted 
+ by the author, subject to the condition that this copyright notice 
+ remains intact.  The author retains the exclusive right to publish 
+ derivative works based on this work, including, but not limited to
+ revised versions of this work.
+
+
+
+Below is author reply to question about distributing iozone3 in
+OpenEmbedded:
+
+========================================================================
+
+Marcin,
+
+        Re-distribution is permitted as long as the copyright is
+    maintained and the source code is not changed. I do not
+    see a problem with your mods to enable fileop for Linux-arm,
+    as these mods have been returned to the Iozone folks,
+    and they have been accepted for inclusion in the next
+    release :-)
+
+Thank you for your contribution,
+Don Capps
+
+----- Original Message ----- 
+From: "Marcin Juszkiewicz" <firma at hrw.one.pl>
+To: "Don Capps" <don.capps2 at verizon.net>; "William D. Norcott" 
+<wnorcott at us.oracle.com>
+Sent: Sunday, October 29, 2006 4:55 PM
+Subject: iozone3 263 patch for arm and License question
+
+
+> Morning
+>
+> I want to include iozone3 in OpenEmbedded [1] metadata to give it for
+> other developers. Currently OE is used to build few distributions for
+> misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
+> machines (PDA, settopbox, devboards, desktops, thin clients, routers).
+>
+> According to your distribution of derivations is forbidden. Packaging
+> iozone3 in OpenEmbedded will not involve any source code changes. But
+> when I was building it for ARM I discovered that fileop binary was not
+> built - so I created patch for it (attached). Not yet tested it on target
+> device.
+>
+> Thus, I seek your written permission via e-mail to distribute a package of
+> the unmodified source code and also a package of the pre-compiled binary.
+> Your copyright statement will be included in the package.
+>
+>
+> 1. http://www.openembedded.org/
+>
+> Regards
+> -- 
+> JID: hrw-jabber.org
+> OpenEmbedded developer/consultant
+
============================================================
--- packages/iozone3/iozone3/fileop-arm.patch	a10d66c104764c3fd74b3c3efaa7787b0e087d4c
+++ packages/iozone3/iozone3/fileop-arm.patch	a10d66c104764c3fd74b3c3efaa7787b0e087d4c
@@ -0,0 +1,29 @@
+Index: current/makefile
+===================================================================
+--- current.orig/makefile	2006-10-14 21:42:36.000000000 +0200
++++ current/makefile	2006-10-14 21:40:02.000000000 +0200
+@@ -190,9 +190,10 @@
+ #
+ # GNU 'C' compiler Linux build with threads, largefiles, async I/O
+ #
+-linux-arm:	iozone_linux-arm.o  libbif.o libasync.o
++linux-arm:	iozone_linux-arm.o  libbif.o libasync.o fileop_linux-arm.o
+ 	$(CC) -O3 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
+ 		-lrt -lpthread -o iozone
++	$(CC)  -O3 -Dlinux fileop_linux-arm.o -o fileop
+ 
+ #
+ # GNU 'C' compiler Linux build with threads, largefiles, async I/O 
+@@ -725,6 +726,12 @@
+ 	@echo ""
+ 	$(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-AMD64.o
+ 
++fileop_linux-arm.o:	fileop.c
++	@echo ""
++	@echo "Building fileop for Linux-arm"
++	@echo ""
++	$(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-arm.o
++
+ fileop_windows.o: fileop.c
+ 	@echo ""
+ 	@echo "Building fileop for Windows"
============================================================
--- packages/iozone3/iozone3_263.bb	52424275ebe80c8772c74162293f20f4b0ad65f4
+++ packages/iozone3/iozone3_263.bb	52424275ebe80c8772c74162293f20f4b0ad65f4
@@ -0,0 +1,100 @@
+DESCRIPTION = "Filesystem and Disk Benchmarking Tool"
+HOMEPAGE = "http://www.iozone.org/"
+AUTHOR = "Don Capps <don.capps2 at verizon.net>, William D. Norcott <wnorcott at us.oracle.com>"
+SECTION = "console/tests"
+LICENSE = "${PN}"
+
+SRC_URI = "http://www.iozone.org/src/current/iozone3_263.tar \
+	   file://copyright.txt \
+           file://fileop-arm.patch;patch=1"
+
+S = "${WORKDIR}/${PN}_${PV}/src/current/"
+
+EXTRA_OEMAKE = "linux-arm CC='${CC}'"
+
+do_install() {
+       install -d ${D}${bindir} \
+                  ${D}${mandir}/man1 \
+		  ${D}${datadir}/doc/${PN}/examples
+
+       install -m 0755 ${S}/iozone ${D}${bindir}
+       install -m 0755 ${S}/fileop ${D}${bindir}
+       install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/iozone.1 ${D}${mandir}/man1/
+       install -m 0644 ${WORKDIR}/copyright.txt ${D}${datadir}/doc/${PN}/
+
+       install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${PN}/examples
+       install -m 0644 ${S}/client_list ${D}${datadir}/doc/${PN}/examples
+       install -m 0644 ${S}/Gnuplot.txt ${D}${datadir}/doc/${PN}/examples
+
+       install -m 0755 ${S}/Generate_Graphs ${D}${datadir}/doc/${PN}/examples
+       install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${PN}/examples
+       install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${PN}/examples
+
+       install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/Iozone_ps.gz ${D}${datadir}/doc/${PN}/
+       install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${PN}/
+       install -m 0644 ${WORKDIR}/${PN}_${PV}/docs/Run_rules.doc ${D}${datadir}/doc/${PN}/
+}
+
+FILES_${PN} += "${datadir}/doc/${PN}/copyright.txt"
+
+# LICENSE:
+#
+#  Copyright 1991, 1992, 1994, 1998, 1999, 2002   William D. Norcott
+# 
+#  License to freely use and distribute this software is hereby granted 
+#  by the author, subject to the condition that this copyright notice 
+#  remains intact.  The author retains the exclusive right to publish 
+#  derivative works based on this work, including, but not limited to
+#  revised versions of this work.
+#
+
+#
+# Below is author reply to question about distributing iozone3 in
+# OpenEmbedded:
+#
+# ========================================================================
+#
+# Marcin,
+# 
+#         Re-distribution is permitted as long as the copyright is
+#     maintained and the source code is not changed. I do not
+#     see a problem with your mods to enable fileop for Linux-arm,
+#     as these mods have been returned to the Iozone folks,
+#     and they have been accepted for inclusion in the next
+#     release :-)
+# 
+# Thank you for your contribution,
+# Don Capps
+# 
+# ----- Original Message ----- 
+# From: "Marcin Juszkiewicz" <firma at hrw.one.pl>
+# To: "Don Capps" <don.capps2 at verizon.net>; "William D. Norcott" 
+# <wnorcott at us.oracle.com>
+# Sent: Sunday, October 29, 2006 4:55 PM
+# Subject: iozone3 263 patch for arm and License question
+# 
+# 
+# > Morning
+# >
+# > I want to include iozone3 in OpenEmbedded [1] metadata to give it for
+# > other developers. Currently OE is used to build few distributions for
+# > misc platforms: ARM, SH3, SH4, x86, PowerPC and different types of
+# > machines (PDA, settopbox, devboards, desktops, thin clients, routers).
+# >
+# > According to your distribution of derivations is forbidden. Packaging
+# > iozone3 in OpenEmbedded will not involve any source code changes. But
+# > when I was building it for ARM I discovered that fileop binary was not
+# > built - so I created patch for it (attached). Not yet tested it on target
+# > device.
+# >
+# > Thus, I seek your written permission via e-mail to distribute a package of
+# > the unmodified source code and also a package of the pre-compiled binary.
+# > Your copyright statement will be included in the package.
+# >
+# >
+# > 1. http://www.openembedded.org/
+# >
+# > Regards
+# > -- 
+# > JID: hrw-jabber.org
+# > OpenEmbedded developer/consultant






More information about the Openembedded-commits mailing list