ports/92714: [PATCH] benchmarks/iozone: update to 3.259
Jeffrey H. Johnson
CPE1704TKS at bellsouth.net
Thu Feb 2 02:20:07 UTC 2006
>Number: 92714
>Category: ports
>Synopsis: [PATCH] benchmarks/iozone: update to 3.259
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 02 02:20:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jeffrey H. Johnson
>Release: FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD offworld.cqasys.com 6.0-STABLE FreeBSD 6.0-STABLE #21: Wed Jan 18 22:35:45 EST 2006
>Description:
- Update to 3.259
- Honor build environment CC and CFLAGS
- OPTIONS to support threading using pthreads
This patch should supercede the previous patch I submitted as PR #92134 (update to 3.257)
Added file(s):
- files/patch-makefile
Port maintainer (jmz at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- iozone-3.259.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/benchmarks/iozone/Makefile /usr/home/trn/port-work/iozone/Makefile
--- /usr/ports/benchmarks/iozone/Makefile Mon Oct 24 07:22:13 2005
+++ /usr/home/trn/port-work/iozone/Makefile Wed Feb 1 21:06:46 2006
@@ -6,7 +6,7 @@
#
PORTNAME= iozone
-PORTVERSION= 3.248
+PORTVERSION= 3.259
PORTREVISION= 0
CATEGORIES= benchmarks
MASTER_SITES= http://www.iozone.org/src/current/
@@ -27,9 +27,20 @@
MAN1= iozone.1
PLIST_FILES= bin/iozone
+OPTIONS= THREADS "Enable threading (uses pthreads)" on
+
+.include <bsd.port.pre.mk>
+
+.if defined (WITH_THREADS)
+CFLAGS+= -pthread
+MAKE_ENV= LDFLAGS=-lpthread
+.else
+CFLAGS+=-DNO_THREADS
+.endif
+
do-install:
${STRIP_CMD} ${WRKSRC}/iozone
${INSTALL_PROGRAM} ${WRKSRC}/iozone ${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 ${PREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/benchmarks/iozone/distinfo /usr/home/trn/port-work/iozone/distinfo
--- /usr/ports/benchmarks/iozone/distinfo Sun Jan 22 03:20:05 2006
+++ /usr/home/trn/port-work/iozone/distinfo Wed Feb 1 20:25:32 2006
@@ -1,3 +1,4 @@
-MD5 (iozone3_248.tar) = d77c52d18fc721019dbdf58178441cee
-SHA256 (iozone3_248.tar) = 54af0e33fafca9bc5b237969bb52f32006e684a894cd66402c3749fe94d6c473
-SIZE (iozone3_248.tar) = 1474560
+MD5 (iozone3_259.tar) = 809178a5f106e33aa92bc97933e9021d
+SHA256 (iozone3_259.tar) = 9525ff6cba4b587e770afcad7871c32864688ab6ee337f819cd45ca7b0775801
+SIZE (iozone3_259.tar) = 1484800
+RMD160 (iozone3_259.tar) = e334aab83db9dde7adaec908a5fa0c70a240c04e
diff -ruN --exclude=CVS /usr/ports/benchmarks/iozone/files/patch-makefile /usr/home/trn/port-work/iozone/files/patch-makefile
--- /usr/ports/benchmarks/iozone/files/patch-makefile Wed Dec 31 19:00:00 1969
+++ /usr/home/trn/port-work/iozone/files/patch-makefile Wed Feb 1 21:06:29 2006
@@ -0,0 +1,32 @@
+--- makefile.orig Fri Jan 20 09:02:11 2006
++++ makefile Wed Feb 1 20:59:35 2006
+@@ -9,12 +9,12 @@
+ # convex, FreeBSD, OpenBSD, OSFV3, OSFV4, OSFV5, SCO
+ # SCO_Unixware_gcc,NetBSD,TRU64, Mac OS X
+
+-CC = cc
++#CC = cc
+ C89 = c89
+ GCC = gcc
+ CCS = /usr/ccs/bin/cc
+ NACC = /opt/ansic/bin/cc
+-CFLAGS =
++#CFLAGS =
+
+ all:
+ @echo ""
+@@ -914,10 +914,10 @@
+ @echo ""
+ @echo "Build iozone for FreeBSD"
+ @echo ""
+- $(CC) -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
+- -DNAME='"freebsd"' -DSHARED_MEM $(CFLAGS) iozone.c -o iozone_freebsd.o
+- $(CC) -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \
+- -DSHARED_MEM $(CFLAGS) libbif.c -o libbif.o
++ ${CC} -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C \
++ -DNAME='"freebsd"' -DSHARED_MEM iozone.c -o iozone_freebsd.o
++ ${CC} -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C \
++ -DSHARED_MEM libbif.c -o libbif.o
+
+ iozone_macosx.o: iozone.c libbif.c
+ @echo ""
--- iozone-3.259.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list