summaryrefslogtreecommitdiff
path: root/benchmarks/dbench
diff options
context:
space:
mode:
authorjoerg <joerg>2005-11-06 19:39:49 +0000
committerjoerg <joerg>2005-11-06 19:39:49 +0000
commitc1a693dc90087b77e2471d724b10170a19597eaf (patch)
tree6742091589cae089f067fe0a084a613d75d15a76 /benchmarks/dbench
parent0438f6cb750ac96c7256b0bceec0a3168d12d352 (diff)
downloadpkgsrc-c1a693dc90087b77e2471d724b10170a19597eaf.tar.gz
Use O_FSYNC instead of O_SYNC on DragonFly. Disable extattr_get_file
on DragonFly, the semantic is different and it isn't very useful in the current form.
Diffstat (limited to 'benchmarks/dbench')
-rw-r--r--benchmarks/dbench/distinfo5
-rw-r--r--benchmarks/dbench/patches/patch-aa14
-rw-r--r--benchmarks/dbench/patches/patch-ac13
3 files changed, 25 insertions, 7 deletions
diff --git a/benchmarks/dbench/distinfo b/benchmarks/dbench/distinfo
index 90d33b3529e..8549539a644 100644
--- a/benchmarks/dbench/distinfo
+++ b/benchmarks/dbench/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.8 2005/10/10 08:35:54 xtraeme Exp $
+$NetBSD: distinfo,v 1.9 2005/11/06 19:39:49 joerg Exp $
SHA1 (dbench-3.03.tar.gz) = 9261e6c3d800ee6822be579ac37a9d531a03e4c2
RMD160 (dbench-3.03.tar.gz) = 1fc311e3d598f25b96448002006a94e24ae8424a
Size (dbench-3.03.tar.gz) = 2076982 bytes
-SHA1 (patch-aa) = b2a134ef7650bef60551972f5c3c0209d6d41112
+SHA1 (patch-aa) = 462f50ac9d529d788f165556846df88b8d8765c6
SHA1 (patch-ab) = 5a26819bffe3a20c31e88846d327e3af92144833
+SHA1 (patch-ac) = 19fe1e5d1957c711a2eec8c12290074238ffc773
diff --git a/benchmarks/dbench/patches/patch-aa b/benchmarks/dbench/patches/patch-aa
index f4fdd5ee386..dc5e73bfd3a 100644
--- a/benchmarks/dbench/patches/patch-aa
+++ b/benchmarks/dbench/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.4 2005/09/25 10:40:18 rillig Exp $
+$NetBSD: patch-aa,v 1.5 2005/11/06 19:39:49 joerg Exp $
---- fileio.c.orig Mon Dec 13 03:47:59 2004
-+++ fileio.c Sat Sep 24 23:06:17 2005
-@@ -19,6 +19,10 @@
+--- fileio.c.orig 2004-12-13 02:47:59.000000000 +0000
++++ fileio.c
+@@ -19,6 +19,14 @@
*/
#include "dbench.h"
@@ -10,10 +10,14 @@ $NetBSD: patch-aa,v 1.4 2005/09/25 10:40:18 rillig Exp $
+#include <sys/aio.h>
+#define fdatasync fsync
+#endif
++
++#ifdef __DragonFly__
++#define O_SYNC O_FSYNC
++#endif
#define MAX_FILES 200
-@@ -375,12 +379,14 @@ void nb_qfileinfo(struct child_struct *c
+@@ -375,12 +383,14 @@ void nb_qfileinfo(struct child_struct *c
void nb_qfsinfo(struct child_struct *child, int level, const char *status)
{
diff --git a/benchmarks/dbench/patches/patch-ac b/benchmarks/dbench/patches/patch-ac
new file mode 100644
index 00000000000..081e1b0b849
--- /dev/null
+++ b/benchmarks/dbench/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2005/11/06 19:39:49 joerg Exp $
+
+--- system.c.orig 2005-11-06 19:15:46.000000000 +0000
++++ system.c
+@@ -30,7 +30,7 @@ ssize_t sys_getxattr (const char *path,
+ {
+ #if defined(HAVE_GETXATTR)
+ return getxattr(path, name, value, size);
+-#elif defined(HAVE_EXTATTR_GET_FILE)
++#elif defined(HAVE_EXTATTR_GET_FILE) && !defined(__DragonFly__)
+ char *s;
+ int attrnamespace = (strncmp(name, "system", 6) == 0) ?
+ EXTATTR_NAMESPACE_SYSTEM : EXTATTR_NAMESPACE_USER;