From ae91bbfdb2049c8f5621c369e95f056cb81107a6 Mon Sep 17 00:00:00 2001 From: jadawin Date: Sat, 8 Jan 2011 16:13:25 +0000 Subject: - Add patch to fix a race condition - Bump PORTREVISION PR: ports/153763 Submitted by: Julien Laffaye (maintainer) --- benchmarks/dbench/Makefile | 2 +- benchmarks/dbench/distinfo | 1 - benchmarks/dbench/files/patch-dbench.c | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 benchmarks/dbench/files/patch-dbench.c (limited to 'benchmarks/dbench') diff --git a/benchmarks/dbench/Makefile b/benchmarks/dbench/Makefile index a19c801e0ea0..edb683c747fb 100644 --- a/benchmarks/dbench/Makefile +++ b/benchmarks/dbench/Makefile @@ -7,7 +7,7 @@ PORTNAME= dbench PORTVERSION= 4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= benchmarks MASTER_SITES= SAMBA MASTER_SITE_SUBDIR= ../../ftp/tridge/dbench diff --git a/benchmarks/dbench/distinfo b/benchmarks/dbench/distinfo index acb35cbd9bfa..fb675d473e42 100644 --- a/benchmarks/dbench/distinfo +++ b/benchmarks/dbench/distinfo @@ -1,3 +1,2 @@ -MD5 (dbench-4.0.tar.gz) = 1fe56ff71b9a416f8889d7150ac54da4 SHA256 (dbench-4.0.tar.gz) = 6001893f34e68a3cfeb5d424e1f2bfef005df96a22d86f35dc770c5bccf3aa8a SIZE (dbench-4.0.tar.gz) = 2055359 diff --git a/benchmarks/dbench/files/patch-dbench.c b/benchmarks/dbench/files/patch-dbench.c new file mode 100644 index 000000000000..c5a1fb4e8390 --- /dev/null +++ b/benchmarks/dbench/files/patch-dbench.c @@ -0,0 +1,20 @@ +--- ./dbench.c.orig 2011-01-07 14:33:29.000000000 +0000 ++++ ./dbench.c 2011-01-07 14:36:43.000000000 +0000 +@@ -304,7 +304,7 @@ + exit(1); + } + +- semctl(barrier,0,IPC_RMID); ++ //semctl(barrier,0,IPC_RMID); + + fn(&children[i*options.clients_per_process], options.loadfile); + _exit(0); +@@ -334,7 +334,7 @@ + exit(1); + } + +- semctl(barrier,0,IPC_RMID); ++ //semctl(barrier,0,IPC_RMID); + + signal(SIGALRM, sig_alarm); + alarm(PRINT_FREQ); -- cgit